/* Three Porridges — Goldilocks marketing site
   Storybook-editorial: Fraunces display over the app's rounded system type,
   honey gold on warm cream; dark mode mirrors the app's palette. */

:root {
  --paper: #f7f1e6;
  --card: #fdf9f1;
  --ink: #2a2118;
  --ink-soft: #6b5a44;
  --gold: #c8912e;
  --gold-bright: #e3b458;
  --gold-deep: #9a6d1c;
  --line: rgba(42, 33, 24, 0.14);
  --shadow: 0 24px 60px -32px rgba(42, 33, 24, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #201a12;
    --card: #2a2118;
    --ink: #f3ede2;
    --ink-soft: #b9a88e;
    --gold: #e3b458;
    --gold-bright: #f0c878;
    --gold-deep: #c8912e;
    --line: rgba(243, 237, 226, 0.16);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Nunito Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  /* faint paper grain */
  background-image: radial-gradient(rgba(200, 145, 46, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem; font-weight: 640; color: var(--ink);
  text-decoration: none; display: flex; align-items: center; gap: 0.55rem;
}
.wordmark .bowl { width: 1.5em; height: 1.5em; }
nav.site a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem;
  margin-left: 1.4rem; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
nav.site a:hover, nav.site a[aria-current] { color: var(--gold-deep); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  max-width: 20ch; margin: 0 auto;
}
.hero h1 em {
  font-style: italic; font-weight: 640;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin: 1.4rem auto 0; max-width: 44ch;
  font-size: 1.18rem; color: var(--ink-soft);
}

/* three bowls — the domain, the story, the thesis */
.bowls {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(1.2rem, 5vw, 3rem); margin: 3rem auto 0.8rem;
}
.bowls figure { text-align: center; }
.bowls svg { width: clamp(64px, 11vw, 104px); height: auto; display: block; }
.bowls figcaption {
  margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft);
  font-variant: small-caps; letter-spacing: 0.08em;
}
.bowls .just-right figcaption { color: var(--gold-deep); font-weight: 700; }
.bowls .just-right svg { filter: drop-shadow(0 10px 24px rgba(200, 145, 46, 0.45)); }
.steam { animation: steam 3.2s ease-in-out infinite; transform-origin: bottom; opacity: 0.6; }
.steam.s2 { animation-delay: 1.1s; }
@keyframes steam {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.55; }
  50% { transform: translateY(-4px) scaleY(1.12); opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) { .steam { animation: none; } }

/* staggered page-load reveal */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease-out forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.3s; } .rise.d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; animation: none; } }

/* ---------- CTA ---------- */
.cta-row { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.7rem; border-radius: 999px; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn.primary {
  color: #241a0d;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 28px -12px rgba(200, 145, 46, 0.7);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(200, 145, 46, 0.8); }
.btn.ghost { color: var(--gold-deep); border: 1.5px solid var(--gold); }
.btn.ghost:hover { background: rgba(200, 145, 46, 0.08); }
.cta-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
section.band { padding: 4rem 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.kicker {
  font-variant: small-caps; letter-spacing: 0.14em; font-weight: 700;
  color: var(--gold-deep); font-size: 0.9rem;
}
section.band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-top: 0.4rem; max-width: 26ch; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem; margin-top: 2.2rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.4rem;
  padding: 1.6rem; box-shadow: var(--shadow); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Fraunces", Georgia, serif; font-weight: 640;
  position: absolute; top: -0.85rem; left: 1.3rem;
  background: var(--gold); color: #241a0d; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.feature { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1.1rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.3rem; }

/* privacy band */
.privacy-band {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.6rem;
  padding: 2.6rem clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.privacy-band ul { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.privacy-band li { padding-left: 1.8rem; position: relative; color: var(--ink-soft); }
.privacy-band li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.privacy-band li strong { color: var(--ink); }

/* ---------- prose pages (privacy, sponsor) ---------- */
main.prose { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
main.prose h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
main.prose .updated { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.6rem; }
main.prose h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
main.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
main.prose p, main.prose li { color: var(--ink-soft); }
main.prose p { margin: 0.8rem 0; }
main.prose ul, main.prose ol { margin: 0.8rem 0 0.8rem 1.4rem; }
main.prose li { margin: 0.35rem 0; }
main.prose strong { color: var(--ink); }
main.prose a { color: var(--gold-deep); }
main.prose blockquote {
  border-left: 3px solid var(--gold); margin: 1.4rem 0; padding: 0.4rem 0 0.4rem 1.2rem;
  color: var(--ink-soft); font-style: italic;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 3rem;
  padding: 2.2rem 0 3rem; color: var(--ink-soft); font-size: 0.9rem;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer.site a { color: var(--gold-deep); text-decoration: none; margin-right: 1.2rem; }
footer.site a:hover { text-decoration: underline; }
