:root {
  /* Morish-aligned palette */
  --navy: #213C73;
  --teal: #108474;
  --gold: #EEB01E;
  --ink: #101010;
  --ink-soft: #252627;
  --muted: #A7A7A7;
  --bg: #F2F2F1;
  --surface: #ffffff;
  --border: #e4e4e2;
  --accent: var(--navy);
  --accent-alt: var(--teal);
  --accent-dark: #1a2f5a;
  --highlight: var(--gold);
  --shadow: 0 10px 28px rgba(16, 16, 16, 0.07);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(33, 60, 115, 0.07), transparent 42%),
    radial-gradient(circle at top right, rgba(16, 132, 116, 0.05), transparent 36%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible,
.button:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
}

.nav a:hover { color: var(--navy); }

main.container { padding: 2rem 0 3rem; }

.hero,
.page-header,
.product-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.eyebrow a { color: inherit; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }

h1 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { margin: 0 0 1rem; }
h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48rem;
}

.meta-quiet {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 0.75rem;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

.button-teal {
  background: var(--teal);
}

.button-teal:hover {
  background: #0c6a5e;
}

.button-secondary {
  background: var(--ink-soft);
}

.button-secondary:hover {
  background: var(--ink);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.product-card .product-media {
  margin: -0.15rem -0.15rem 0.35rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #ebebea;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(33, 60, 115, 0.08), rgba(16, 132, 116, 0.1));
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(16, 132, 116, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0.25rem 0;
}

.price-highlight {
  color: var(--ink);
}

.price-highlight span {
  color: var(--gold);
  font-weight: 800;
}

.muted { color: var(--muted); }

.product-card .card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-card .button {
  margin-top: 0;
  width: 100%;
  text-align: center;
}

.product-image {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.product-detail .product-media-lg {
  margin: 1rem 0;
  max-width: 28rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ebebea;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail .product-media-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.messages {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.messages li {
  background: rgba(16, 132, 116, 0.1);
  border: 1px solid rgba(16, 132, 116, 0.25);
  color: var(--ink-soft);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--surface);
}

.site-footer p { margin: 0 0 0.5rem; }

code {
  background: #ebebea;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* Product review + stock note */
.product-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0.5rem;
}

.stock-note {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-left: 4px solid var(--gold);
  background: #fdf6e3;
  color: var(--navy);
  font-weight: 600;
}

.product-review {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2df;
  max-width: 44rem;
}

.product-review h2 { margin-top: 0; }
.product-review h3 { margin: 1.25rem 0 0.35rem; font-size: 1.05rem; color: var(--navy); }

.review-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.review-pair-item {
  padding: 0.25rem 1rem 0.5rem;
  border-radius: var(--radius);
  background: #f4f6fa;
}

.review-pair-item h3 { margin-top: 0.75rem; }

@media (min-width: 48rem) {
  .review-pair { grid-template-columns: 1fr 1fr; }
}

.review-source { font-size: 0.9rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-link { margin: 0; font-weight: 600; }
.review-link a { color: var(--teal); }
.stock-note-sm { font-size: 0.85rem; padding: 0.2rem 0.5rem; margin-bottom: 0.4rem; }
.product-review { scroll-margin-top: 1.5rem; }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 0.3em; }
