:root {
  --teal: #1e4d45;
  --teal-deep: #12201e;
  --ink: #1b2430;
  --muted: #5c6568;
  --sand: #efe6d8;
  --sand-2: #e4d8c6;
  --cream: #f7f3ec;
  --white: #ffffff;
  --line: #e2d8cb;
  --gold: #b07945;
  --shadow: 0 18px 40px rgba(27, 36, 48, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1120px;
  --header: 74px;
}

*,
*::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.6;
}

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.02em;
  line-height: 1.15;
  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: #e7f3f1;
  font-size: 13.5px;
}
.topbar-inner {
  display: flex;
  gap: 18px 28px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 8px 0;
}
.topbar a { color: #e7f3f1; text-decoration: none; }
.topbar a:hover { color: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(10px);
  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: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
}
.logo span {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-btn,
.nav-link {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 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: 280px;
  background: white;
  border: 1px solid var(--line);
  padding: 8px;
  z-index: 40;
}
.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);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--teal-deep); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
}
.btn-ghost:hover { background: var(--sand); color: var(--teal-deep); }
.btn-small { padding: 8px 14px; font-size: 15px; }
.btn-full { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 30px;
}
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 12px;
}
.hero h1 { font-size: clamp(40px, 5vw, 62px); margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-media {
  overflow: hidden;
  min-height: 380px;
  background: var(--sand);
  border-radius: 4px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

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

.section { padding: 28px 0 10px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; }

.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: 18px;
  align-items: start;
}
.feature-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; min-height: 240px; aspect-ratio: 1; }
.feature-card h3 { font-size: 28px; }
.price { font-weight: 700; color: var(--teal-deep); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.know {
  margin: 36px 0;
  background: var(--teal-deep);
  color: #f4faf8;
  padding: 48px max(20px, calc((100vw - var(--max)) / 2));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.know h2 { font-size: clamp(32px, 4vw, 46px); }
.know a { color: white; }

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

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body, .card-body { padding: 14px 0 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 24px; margin: 0; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .meta { color: var(--gold); font-size: 13px; letter-spacing: 0.04em; 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: 36px 0 10px;
  padding: 48px max(20px, calc((100vw - var(--max)) / 2));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--sand);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 8px; }
.cta-band .hero-actions { margin-top: 0; }

.page-hero { padding: 36px 0 10px; }
.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: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.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(--cream);
  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; }
.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; }

.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: 40px;
  background: var(--teal-deep);
  color: #e5f2f0;
  padding: 40px 0 18px;
}
.site-footer a { color: #e5f2f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: white; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 22px; }
.site-footer h2 { font-size: 18px; font-family: var(--sans); letter-spacing: 0; }
.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.15); margin-top: 26px; padding-top: 14px; font-size: 13px; color: #c9ddd9; }
.copyright { font-size: 13px; color: #c9ddd9; }

.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;
}
.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; }
}

@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, .featured, .know, .points, .mosaic, .cards, .quotes, .split, .contact-grid, .foot-grid, .shop-grid, .related, .ingredients {
    grid-template-columns: 1fr;
  }
  .feature-card { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-media, .hero-media img { min-height: 240px; }
}

@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; }
}
