:root {
  --teal: #1e5ea8;
  --teal-deep: #12243c;
  --ink: #1a1f28;
  --muted: #5d6774;
  --sand: #efebe3;
  --sand-2: #e2ddd4;
  --cream: #f6f3ee;
  --white: #fffcf8;
  --line: #e4ddd3;
  --gold: #2c6cb0;
  --on-deep: #eef2f6;
  --on-deep-muted: #9aa8b8;
  --shadow: 0 16px 40px rgba(18, 36, 60, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --header: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.14;
  margin: 0 0 0.5em;
}

p { margin: 0 0 0.9em; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--teal);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; color: white; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--teal-deep);
  color: var(--on-deep);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  gap: 18px 28px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 7px 0;
}
.topbar a { color: var(--on-deep); text-decoration: none; }
.topbar a:hover { color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}
.logo span {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-btn,
.nav-link {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 999px;
}
.nav-btn:hover,
.nav-link:hover,
.nav-link.is-active,
.nav-btn.is-active,
.nav-item:hover > .nav-btn {
  background: var(--sand);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px;
  z-index: 40;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.dropdown a:hover { background: var(--sand); color: var(--teal-deep); }

.header-shop { flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal-deep);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid var(--sand-2);
}
.btn-ghost:hover { background: var(--sand); color: var(--teal-deep); }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-full { width: 100%; }

.hero {
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.18fr;
  gap: 48px;
  align-items: center;
  min-height: min(78vh, 680px);
  padding: 28px 0 36px;
}
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px 4px 48px 4px;
  min-height: 420px;
  background: var(--teal-deep);
  align-self: stretch;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  min-height: 420px;
}
.hero-copy {
  padding: 24px 0 12px;
}
.hero-copy > * { max-width: 36rem; }
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  margin-bottom: 16px;
  color: var(--ink);
}
.lead { font-size: 19px; color: var(--muted); max-width: 38rem; }
.hero .lead { color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.panel {
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
}
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 8px 0 48px; }
.points article h2 { font-size: 24px; }
.points p { color: var(--muted); margin: 0; }

.section { padding: 36px 0 12px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }
.section-head a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head a:hover { color: var(--teal); border-color: var(--teal); }

.story-stage {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}
.lead-story {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 100%;
}
.lead-story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.lead-story > div { padding: 22px 24px 26px; display: flex; flex-direction: column; }
.lead-story h3 { font-size: clamp(28px, 3vw, 36px); margin: 0 0 10px; }
.lead-story p { color: var(--muted); flex: 1; }
.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.lead-story:hover .read-more { color: var(--teal); }

.story-side { display: flex; flex-direction: column; gap: 16px; }
.story-side a {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  flex: 1;
  min-height: 0;
}
.story-side img {
  width: 132px;
  height: 100%;
  object-fit: cover;
  min-height: 132px;
}
.story-side > a > div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.story-side h3 { font-size: 20px; margin: 0 0 6px; }
.story-side p { color: var(--muted); margin: 0; font-size: 15px; }

.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  gap: 14px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 10px 18px;
}
.feature-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; min-height: 240px; aspect-ratio: 1; }
.feature-card > div { padding: 0 8px; }
.feature-card h3 { font-size: 26px; }
.price { font-weight: 700; color: var(--teal-deep); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.shop-quiet {
  margin: 48px 0 0;
  padding: 40px 0 28px;
  background: var(--sand);
  border-top: 1px solid var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.shop-quiet .wrap { padding: 0; }
.shop-quiet .featured { gap: 18px; }
.shop-quiet .feature-card {
  background: transparent;
  border: 0;
  padding: 0;
}
.shop-quiet .feature-card img {
  min-height: 150px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
}
.shop-quiet .feature-card h3 { font-size: 22px; }
.shop-quiet .feature-card p { font-size: 15px; color: var(--muted); }
.shop-quiet .price { font-size: 15px; font-weight: 650; }

.know {
  margin: 48px 0 0;
  background: var(--teal-deep);
  color: var(--on-deep);
  padding: 56px max(20px, calc((100vw - var(--max)) / 2));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
}
.know h2 { font-size: clamp(30px, 3.8vw, 44px); }
.know a { color: white; }
.know .eyebrow { color: #8eb6e0; }
.know p { color: var(--on-deep-muted); max-width: 38rem; }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  color: white;
  text-decoration: none;
  display: block;
  background: var(--teal-deep);
}
.tile img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 18px 16px;
  background: linear-gradient(transparent, rgba(18, 36, 60, 0.82));
  font-family: var(--serif);
  font-size: 28px;
  color: white;
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px 20px;
}
.info-panel h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 22px 0 8px;
}
.info-grid article h3 { font-size: 22px; }
.info-grid p { color: var(--muted); margin: 0; }
.info-panel .info-links { margin-top: 18px; color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.card img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.card .body, .card-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 23px; margin: 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .meta { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
blockquote {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 8px;
}
blockquote p { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
blockquote footer { color: var(--muted); font-size: 15px; }

.cta-band {
  margin: 48px 0 0;
  padding: 52px max(20px, calc((100vw - var(--max)) / 2));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--teal-deep);
  color: var(--on-deep);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 3.8vw, 44px); margin: 0 0 8px; color: var(--on-deep); }
.cta-band p { color: var(--on-deep-muted); margin: 0; max-width: 36rem; }
.cta-band .hero-actions { margin-top: 0; }
.cta-band .btn { background: var(--white); color: var(--teal-deep); }
.cta-band .btn:hover { background: var(--sand); color: var(--ink); }
.cta-band .btn-ghost {
  color: var(--on-deep);
  border-color: rgba(238, 242, 246, 0.35);
}
.cta-band .btn-ghost:hover {
  background: rgba(238, 242, 246, 0.1);
  color: white;
}

.page-hero { padding: 40px 0 12px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; padding-bottom: 30px; }
.product-photo { overflow: hidden; }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: var(--sand);
  cursor: pointer;
}
.gallery-thumbs button.is-active { border-color: var(--teal); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.buy {
  border-top: 1px solid var(--line);
  padding: 8px 0 0;
}
.meta { color: var(--gold); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 650; }
.buy h1 { font-size: 36px; }
.price-lg { font-size: 28px; font-weight: 700; color: var(--teal-deep); margin: 0 0 6px; }

.prose h2 { font-size: 32px; margin-top: 1.2em; }
.prose h3 { font-size: 24px; margin-top: 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin: 0.25em 0; }
.prose img.wide {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin: 0 0 1.2em;
}
.ingredients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 28px;
}
.ingredients figure { margin: 0; }
.ingredients img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ingredients figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.note {
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 14px;
  color: var(--ink);
  font-size: 15px;
}

label { display: block; font-size: 14px; font-weight: 650; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 14px; margin-top: 10px; }
.check input { width: auto; margin-top: 4px; }
.check.is-invalid { color: #8c3a32; }
.totals { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals strong { font-size: 17px; }
.form-error { color: #8c3a32; font-size: 14px; margin: 8px 0; min-height: 1.2em; }
.field-error { border-color: #8c3a32; background: #fff7f6; }
.field-hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.field-msg { color: #8c3a32; font-size: 13px; margin: 4px 0 0; }
.field-msg:empty { display: none; }
.form-section {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 4px;
}
.thanks-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  max-width: 680px;
}
.thanks-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.thanks-dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 16px;
  margin: 18px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.thanks-dl dt { color: var(--muted); font-size: 14px; }
.thanks-dl dd { margin: 0; font-size: 15px; }
.order-thanks { max-width: none; margin-top: 18px; }
.order-thanks h2 { font-size: 28px; }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 40px; }
.shop-grid .card img { aspect-ratio: 1; object-fit: contain; background: #fff; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 0;
}
details.faq summary { cursor: pointer; font-weight: 650; }
details.faq p { margin: 10px 0 4px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; padding-bottom: 40px; }

.site-footer {
  margin-top: 0;
  background: var(--teal-deep);
  color: var(--on-deep);
  padding: 48px 0 18px;
}
.site-footer .logo { color: var(--on-deep); }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: white; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.site-footer h2 { font-size: 13px; font-family: var(--sans); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 14px; font-size: 13px; color: var(--on-deep-muted); }
.copyright { font-size: 13px; color: var(--on-deep-muted); }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-grid article {
  background: var(--white);
  padding: 0 0 16px;
  border: 1px solid var(--line);
}
.pain-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--teal-deep); margin-bottom: 14px; }
.pain-grid h3 { padding: 0 16px; font-size: 22px; }
.pain-grid p { padding: 0 16px; color: var(--muted); margin: 0; }
.diagram-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 28px; }
.diagram-grid figure { margin: 0; }
.diagram-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--teal-deep); border: 1px solid var(--line); }
.diagram-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 12px 0 28px; }
.steps article { background: var(--white); border: 1px solid var(--line); padding: 18px 16px 10px; }
.steps span { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 36px; }
.related a {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.related img { width: 86px; height: 86px; object-fit: contain; background: #fff; }
.related div { padding-right: 10px; }
.related strong { display: block; font-size: 15px; }

@media (min-width: 901px) {
  .nav-item:hover > .dropdown,
  .nav-item:focus-within > .dropdown { display: block; }
  .buy { border-top: 0; padding-top: 0; }
  .section > .lead-story {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: none;
    align-items: stretch;
  }
  .section > .lead-story img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-shop { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    max-height: calc(100vh - var(--header));
    overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav-btn, .nav-link { text-align: left; width: 100%; border-radius: 12px; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
    min-width: 0;
    background: transparent;
  }
  .nav-item.open > .dropdown { display: block; }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 8px;
    padding: 8px 0 28px;
  }
  .hero-media { order: -1; min-height: 280px; border-radius: 4px; }
  .hero-media img { min-height: 280px; object-position: 70% 30%; }
  .hero-copy { padding: 20px 0 8px; }
  .featured, .know, .points, .mosaic, .cards, .quotes, .split, .contact-grid, .foot-grid, .shop-grid, .related, .ingredients, .pain-grid, .diagram-grid, .steps, .info-grid, .story-stage, .cards-2 {
    grid-template-columns: 1fr;
  }
  .story-side a { grid-template-columns: 110px 1fr; }
  .story-side img { width: 110px; min-height: 110px; }
  .feature-card { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .thanks-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .thanks-dl dt { margin-top: 8px; }
  .tile, .tile img { min-height: 220px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .topbar-inner { justify-content: flex-start; }
  .mosaic { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
