:root {
  color-scheme: light;
  --cream: #fff8eb;
  --cream-2: #f7ecd8;
  --paper: #fffdf7;
  --cacao: #2e2118;
  --muted: #725e50;
  --sage: #5f8f66;
  --sage-soft: #dcebdd;
  --berry: #c74868;
  --berry-soft: #fde5ea;
  --honey: #d99a2b;
  --honey-soft: #fff1cc;
  --clay: #a85d3a;
  --line: rgba(83, 58, 41, 0.17);
  --shadow: 0 24px 80px rgba(70, 42, 20, 0.13);
  --radius: 24px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 72, 104, 0.13), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(95, 143, 102, 0.13), transparent 30rem),
    linear-gradient(180deg, #fff4dd 0%, #fffaf0 42%, #f8efe2 100%);
  color: var(--cacao);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(83, 58, 41, 0.12);
  background: rgba(255, 248, 235, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--cacao);
  color: var(--cream);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.topbar nav {
  display: flex;
  gap: 0.35rem;
}

.topbar nav a {
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
}

.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--cacao);
}

main {
  overflow: hidden;
}

.legal-page {
  overflow: visible;
}

.legal-page section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.legal-page h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.legal-page p {
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(1.4rem, 4vw, 4rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 4vw, 4rem);
  z-index: -2;
  border: 1px solid rgba(83, 58, 41, 0.1);
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.88), rgba(255, 248, 235, 0.72) 44%, rgba(255, 248, 235, 0.92)),
    url("https://images.unsplash.com/photo-1499636136210-6f4ee915583e?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 90px rgba(70, 42, 20, 0.11);
}

.hero-copy {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy > * {
  max-width: 620px;
  margin-left: clamp(1rem, 4vw, 2.7rem);
  margin-right: clamp(1rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--berry);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.77rem;
}

.hero-copy .eyebrow {
  color: var(--berry);
}

.hero-copy h1,
.hero-copy .lead {
  color: var(--cacao);
  text-shadow: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: 0;
  max-width: 660px;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.28rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--muted);
}

.finder-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 253, 247, 0.96);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.finder-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.finder-step.compact {
  margin-top: 1.2rem;
}

.finder-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--cacao);
  color: var(--cream);
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.choice-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  color: var(--cacao);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover,
.choice-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(199, 72, 104, 0.55);
  box-shadow: 0 16px 38px rgba(103, 57, 40, 0.15);
}

.choice-card.is-active {
  outline: 3px solid rgba(199, 72, 104, 0.16);
}

.choice-card .photo {
  min-height: 76px;
  background-size: cover;
  background-position: center;
}

.choice-card strong {
  display: block;
  padding: 0.8rem 0.9rem 0.2rem;
}

.choice-card small {
  display: block;
  padding: 0 0.9rem 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.chip-row,
.sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.goal-chip,
.mini-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf1;
  color: var(--cacao);
  padding: 0.68rem 0.9rem;
  font-weight: 850;
}

.goal-chip.is-active,
.mini-pill.is-active {
  border-color: transparent;
  background: var(--cacao);
  color: var(--cream);
}

.finder-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.finder-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.result-jump {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--berry);
  color: #fffaf0;
  padding: 0.82rem 1rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(199, 72, 104, 0.24);
}

.results-band,
.catalog,
.trend-band,
.recipe-band,
.method,
.partner {
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.55;
}

.spotlight-grid,
.product-grid,
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.recipe-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(70, 42, 20, 0.08);
}

.product-card.featured {
  min-height: 100%;
}

.product-photo,
.recipe-photo {
  position: relative;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.product-grid .product-photo {
  min-height: 150px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 950;
}

.photo-badge {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  background: rgba(255, 253, 247, 0.9);
  color: var(--cacao);
}

.badge.good {
  background: var(--sage-soft);
  color: #244d2a;
}

.badge.caution {
  background: var(--honey-soft);
  color: #765018;
}

.badge.watch {
  background: var(--berry-soft);
  color: #7b2638;
}

.product-body,
.recipe-card {
  padding: 1rem;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.verdict {
  color: var(--muted);
  line-height: 1.45;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.8rem 0 0.95rem;
}

.product-card .macro-grid,
.product-card.featured .macro-grid {
  grid-template-columns: repeat(auto-fit, minmax(5.8rem, 1fr));
}

.macro {
  border-radius: 14px;
  background: #f6eddd;
  padding: 0.55rem 0.62rem;
}

.macro span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.macro strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.95rem;
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.flag {
  border-radius: 999px;
  background: #fff4e2;
  padding: 0.38rem 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.open-detail {
  width: 100%;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 16px;
  background: var(--cacao);
  color: var(--cream);
  padding: 0.82rem 1rem;
  font-weight: 950;
}

.open-detail:hover {
  background: #1e1510;
}

.shop-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  border: 1px solid rgba(83, 58, 41, 0.18);
  border-radius: 16px;
  background: #fff7e8;
  color: var(--cacao);
  padding: 0.78rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 950;
}

.shop-link:hover {
  border-color: rgba(199, 72, 104, 0.45);
  color: var(--berry);
}

.shop-link.muted {
  cursor: default;
  background: #f1e5d4;
  color: var(--muted);
}

.shop-link.muted:hover {
  border-color: rgba(83, 58, 41, 0.18);
  color: var(--muted);
}

.shop-link.primary {
  width: auto;
  margin: 0;
  background: var(--berry);
  color: #fffaf0;
}

.shop-link.primary.muted {
  background: #f1e5d4;
  color: var(--muted);
}

.recipe-band {
  background: rgba(255, 253, 247, 0.54);
}

.trend-band {
  background: #fff7e8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.watch-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.86);
  padding: 1rem;
  box-shadow: 0 12px 34px rgba(70, 42, 20, 0.06);
}

.watch-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.watch-card p,
.watch-card span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.watch-card p {
  margin-bottom: 0.7rem;
}

.watch-card span {
  border-radius: 14px;
  background: #f7ead7;
  padding: 0.62rem;
  font-size: 0.86rem;
  font-weight: 750;
}

.recipe-card {
  min-height: 320px;
}

.recipe-card p {
  color: var(--muted);
  line-height: 1.5;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  background: var(--cacao);
  color: var(--cream);
}

.method .eyebrow,
.method p {
  color: #f2d8c4;
}

.partner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  background: #fffaf1;
  border-top: 1px solid var(--line);
}

.partner p {
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  padding: 1.25rem clamp(1rem, 4vw, 4rem) 2rem;
  background: #fffaf1;
  color: var(--muted);
  font-weight: 750;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--berry);
}

.method-grid {
  display: grid;
  gap: 0.8rem;
}

.method-grid article {
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.product-dialog {
  width: min(980px, calc(100vw - 1.5rem));
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--cacao);
  padding: 0;
  box-shadow: 0 28px 100px rgba(20, 12, 8, 0.38);
}

.product-dialog::backdrop {
  background: rgba(46, 33, 24, 0.5);
  backdrop-filter: blur(3px);
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  color: var(--cacao);
  font-size: 1.5rem;
}

.dialog-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 360px;
}

.dialog-photo {
  background-size: cover;
  background-position: center;
}

.dialog-copy {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.dialog-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.dialog-actions span {
  color: var(--muted);
  font-size: 0.83rem;
}

.dialog-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.2rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2.2rem);
}

.dialog-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff9ef;
  padding: 1rem;
}

.dialog-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.source-list {
  display: grid;
  gap: 0.4rem;
}

.source-list a {
  overflow-wrap: anywhere;
  color: #7f3448;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 360px;
  }

  .product-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
    padding: 1rem;
  }

  .hero::before {
    inset: 1rem;
    border-radius: 30px;
  }

  .hero-copy {
    min-height: 330px;
  }

  .hero-copy > * {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .choice-grid,
  .section-head,
  .method,
  .partner,
  .dialog-hero,
  .dialog-sections {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .spotlight-grid,
  .product-grid,
  .recipe-grid,
  .watch-grid {
    grid-template-columns: 1fr;
  }

  .product-card.featured .macro-grid,
  .macro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-jump {
    width: 100%;
  }

  .results-band,
  .catalog,
  .trend-band,
  .recipe-band,
  .method {
    padding: 2rem 1rem;
  }

  .dialog-photo {
    min-height: 240px;
  }
}
