/* Heal-Thy Eats. One stylesheet for every page.
   Palette pulled from the logo (leaf, lime, clay, plum) and the Holidaze book (cream, bark). */

:root {
  --paper: #fbf7ee;
  --cream: #f1e8d6;
  --sand: #e4d6bb;
  --ink: #17221a;
  --ink-2: #2b3a2e;
  --muted: #5d6a5f;
  --leaf: #2f6b3f;
  --leaf-deep: #1f4a2b;
  --lime: #a6c64f;
  --lime-soft: #dfeab8;
  --clay: #c8642e;
  --plum: #6e2e5a;
  --bark: #8f623b;
  --line: rgba(23, 34, 26, 0.12);
  --on-dark: #f6f1e4;
  --on-dark-muted: rgba(246, 241, 228, 0.72);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

/* Film grain over everything: the editorial texture. */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 2%); }
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 420;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}
h1.display { font-size: clamp(48px, 8.4vw, 132px); }
h2.display { font-size: clamp(38px, 5.6vw, 84px); }
h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.display em, h3 em { font-style: italic; font-weight: 340; color: var(--clay); }
.on-dark .display em { color: var(--lime); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--lime); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.on-dark .lede { color: var(--on-dark-muted); }
.small { font-size: 14px; color: var(--muted); }
.on-dark .small { color: var(--on-dark-muted); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--on-dark);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font: 700 16px/1 var(--body); text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate; touch-action: manipulation;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--clay); transform: translateY(101%); transition: transform 380ms var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(200, 100, 46, 0.65); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-lime::before { background: var(--on-dark); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--on-dark); box-shadow: none; }
.on-dark .btn-ghost { --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 228, 0.55); }
.on-dark .btn-ghost::before { background: var(--on-dark); }
.on-dark .btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease), transform 400ms var(--ease);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-head.solid { background: rgba(251, 247, 238, 0.86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.site-head.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.head-dark .brand, .head-dark .nav a { color: var(--on-dark); }
.head-dark.solid .brand, .head-dark.solid .nav a { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }
.head-dark:not(.solid) .nav .btn { --bg: var(--lime); --fg: var(--ink); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease), opacity 200ms; }
.head-dark:not(.solid) .menu-btn { color: var(--on-dark); }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity 350ms var(--ease); }
  .nav a { color: var(--on-dark) !important; font-family: var(--display); font-size: 34px; font-weight: 500; }
  .nav .btn { font-family: var(--body); font-size: 16px; --bg: var(--lime); --fg: var(--ink); color: var(--ink) !important; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .menu-btn, .menu-open .brand { color: var(--on-dark) !important; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-open.site-head { background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--on-dark);
  display: grid; align-items: center; padding: 120px 0 70px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 15% 30%, rgba(166, 198, 79, 0.16), transparent 70%), radial-gradient(50% 60% at 90% 80%, rgba(200, 100, 46, 0.18), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { margin: 0 0 34px; }
.hero-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(166, 198, 79, 0.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(166, 198, 79, 0); } }

.triptych { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: min(78svh, 720px); }
.reel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0e1510;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); will-change: transform;
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(23, 34, 26, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 600; color: var(--on-dark);
}
.triptych .reel:nth-child(1) { margin-top: 18%; }
.triptych .reel:nth-child(3) { margin-top: 9%; margin-bottom: 9%; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--on-dark-muted), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 880px) {
  .hero { padding: 0; align-items: end; min-height: 100svh; }
  .hero .wrap { grid-template-columns: 1fr; padding: 110px 0 56px; position: static; }
  .hero .wrap > * { min-width: 0; }
  .triptych { position: absolute; inset: 0; height: auto; display: block; }
  .triptych .reel { position: absolute; inset: 0; margin: 0 !important; border-radius: 0; }
  .triptych .reel:not(:nth-child(2)), .triptych figcaption { display: none; }
  .triptych::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 34, 26, 0.35) 0%, rgba(23, 34, 26, 0.55) 40%, rgba(23, 34, 26, 0.94) 78%); }
  .hero-copy { position: relative; z-index: 1; }
  .hero-scroll { display: none; }
}

/* split-word headline reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1100ms var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split.in .w > span { transform: none; }

/* ---------- marquee ---------- */
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; border-block: 1.5px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 14px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; font-weight: 400; white-space: nowrap; }
.marquee span::after { content: ""; width: 14px; height: 14px; border-radius: 50% 0; background: var(--leaf); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.pad { padding: clamp(84px, 11vw, 160px) 0; }
.on-dark { background: var(--ink); color: var(--on-dark); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(34px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* story */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.story-quote { position: sticky; top: 120px; }
.story-quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 400; }
.story-quote blockquote em { color: var(--clay); font-weight: 340; }
.story-quote cite { display: block; margin-top: 22px; font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bark); }
.story-body p { margin: 0 0 20px; font-size: 18px; color: var(--ink-2); }
.story-body p:first-child::first-letter { float: left; font-family: var(--display); font-size: 84px; line-height: 0.82; padding: 6px 12px 0 0; color: var(--leaf); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(40px, 4vw, 56px); font-weight: 400; line-height: 1; color: var(--leaf); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* film: sticky scroll story */
.film { --h: 100svh; }
.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.film-stage { position: sticky; top: 0; height: var(--h); display: grid; place-items: center; }
.phone {
  position: relative; width: min(100%, 400px); aspect-ratio: 9 / 16; max-height: 82svh;
  border-radius: 42px; overflow: hidden; background: #0e1510;
  box-shadow: 0 0 0 10px #0b110d, 0 0 0 11px rgba(246, 241, 228, 0.14), 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 650ms var(--ease), transform 1200ms var(--ease); }
.phone video.on { opacity: 1; transform: none; }
.phone-step { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(23, 34, 26, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 700 12px/1 var(--body); letter-spacing: 0.14em; color: var(--lime); font-variant-numeric: tabular-nums; }
.phone-bar { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.phone-bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(246, 241, 228, 0.28); overflow: hidden; }
.phone-bar i::after { content: ""; display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.phone-bar i.done::after { transform: scaleX(1); }
.film-steps { padding: 30svh 0 40svh; }
.film-intro { padding-top: clamp(80px, 10vw, 140px); }
.step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 500ms var(--ease); }
.step.on { opacity: 1; }
.step .num { font: 700 13px/1 var(--body); letter-spacing: 0.18em; color: var(--lime); margin-bottom: 18px; }
.step h3 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 400; margin-bottom: 14px; }
.step p { margin: 0; max-width: 28em; color: var(--on-dark-muted); font-size: 18px; }
@media (max-width: 880px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-stage { top: 72px; height: auto; padding: 12px 0; z-index: 1; }
  .phone { width: min(56vw, 260px); border-radius: 28px; box-shadow: 0 0 0 6px #0b110d, 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
  .film-steps { padding: 6svh 0 20svh; position: relative; z-index: 2; }
  .step { min-height: 46svh; background: linear-gradient(180deg, transparent, var(--ink) 30%); padding-top: 40px; }
}

/* countdown + guide */
.guide { background: var(--lime); color: var(--ink); overflow: hidden; }
.guide-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.guide .eyebrow { color: var(--leaf-deep); }
.count { display: flex; gap: clamp(10px, 2vw, 22px); margin: 26px 0 30px; }
.count div { display: grid; justify-items: center; min-width: 74px; padding: 14px 10px; border-radius: 18px; background: var(--ink); color: var(--on-dark); }
.count b { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.count span { margin-top: 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.card-form { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 42px); box-shadow: 0 40px 80px -40px rgba(23, 34, 26, 0.45); }
.card-form h3 { font-size: clamp(26px, 2.6vw, 34px); }
.card-form ul { margin: 14px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.card-form li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.card-form li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--leaf); }

/* forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.on-dark .field label { color: var(--on-dark-muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 16px/1.2 var(--body);
  transition: border-color 200ms, box-shadow 200ms;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47, 107, 63, 0.16); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field .err { min-height: 0; font-size: 13px; color: #b3261e; }
.on-dark .field input { background: rgba(246, 241, 228, 0.06); border-color: rgba(246, 241, 228, 0.22); color: var(--on-dark); }
.on-dark .field .err { color: #ffb4a8; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.form-status.bad { color: #b3261e; }
.on-dark .form-status.bad { color: #ffb4a8; }
.form .btn { width: 100%; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* book */
.book { background: var(--cream); overflow: hidden; }
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.book-art { perspective: 1400px; display: grid; place-items: center; }
.book-3d { position: relative; width: min(100%, 380px); transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(4deg); transition: transform 600ms var(--ease); }
.book-3d img { width: 100%; border-radius: 4px 14px 14px 4px; box-shadow: 30px 40px 70px -30px rgba(23, 34, 26, 0.6), inset 4px 0 8px rgba(0, 0, 0, 0.2); }
.book-3d::before { content: ""; position: absolute; top: 2%; bottom: 2%; right: -14px; width: 16px; background: repeating-linear-gradient(90deg, #fff 0 2px, #e9e1cf 2px 3px); transform: rotateY(90deg) translateZ(-8px); transform-origin: left; border-radius: 0 3px 3px 0; }
.book-3d .tag { position: absolute; top: -18px; right: -18px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--clay); color: #fff; font: 700 13px/1.15 var(--body); transform: translateZ(40px) rotate(12deg); box-shadow: 0 12px 30px -10px rgba(200, 100, 46, 0.7); }
.book-3d .tag b { display: block; font-family: var(--display); font-size: 30px; font-weight: 500; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 28px; margin: 28px 0 34px; padding: 0; list-style: none; }
.toc li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.toc li span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } }

/* table bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.tile:hover img, .tile:hover video { transform: scale(1.06); }
.tile figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; color: #fff; font-family: var(--display); font-size: 21px; line-height: 1.1; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.tile figcaption small { display: block; font-family: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin-bottom: 4px; }
.tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(23, 34, 26, 0.6)); pointer-events: none; }
.tile figcaption { z-index: 1; }
.t-tall { grid-row: span 2; }
.t-wide { grid-column: span 2; }
@media (max-width: 880px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }

/* membership */
.table-sec { background: var(--leaf-deep); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(246, 241, 228, 0.12); border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(48px, 6vw, 80px); }
.perk { background: var(--leaf-deep); padding: 30px 26px; transition: background 300ms; }
.perk:hover { background: #24563a; }
.perk svg { width: 30px; height: 30px; color: var(--lime); margin-bottom: 18px; }
.perk h3 { color: var(--on-dark); font-size: 22px; }
.perk p { margin: 0; color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.55; }
.prices { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg); background: rgba(246, 241, 228, 0.06); border: 1px solid rgba(246, 241, 228, 0.16); }
.price.hot { background: var(--paper); color: var(--ink); border: 0; transform: translateY(-10px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.price .badge { position: absolute; top: -13px; left: 28px; padding: 7px 12px; border-radius: 999px; background: var(--clay); color: #fff; font: 700 11.5px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.price h3 { font-size: 24px; }
.price .amt { font-family: var(--display); font-size: 62px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.price .amt small { font-family: var(--body); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price:not(.hot) .amt small { color: var(--on-dark-muted); }
.price p { margin: 8px 0 26px; font-size: 15px; color: var(--on-dark-muted); flex: 1; }
.price.hot p { color: var(--ink-2); }
.price .btn { width: 100%; }
.trial-line { margin-top: 30px; text-align: center; color: var(--on-dark-muted); font-size: 15px; }
.trial-line b { color: var(--lime); }
@media (max-width: 980px) { .perks { grid-template-columns: repeat(2, 1fr); } .prices { grid-template-columns: 1fr; } .price.hot { transform: none; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* community */
.chairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chair { padding: 34px 28px; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.chair:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(23, 34, 26, 0.5); }
.chair .k { font-family: var(--display); font-size: 54px; font-style: italic; color: var(--clay); line-height: 1; margin-bottom: 18px; }
.chair p { margin: 0; color: var(--ink-2); }
@media (max-width: 880px) { .chairs { grid-template-columns: 1fr; } }

/* journal cards */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post-card { display: grid; grid-template-rows: 280px auto; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(23, 34, 26, 0.5); }
.post-card .pic { overflow: hidden; background: var(--sand); }
.post-card .pic img, .post-card .pic video { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.post-card:hover .pic img, .post-card:hover .pic video { transform: scale(1.05); }
.post-card .txt { padding: 26px 26px 30px; }
.post-card .meta { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); }
.post-card h3 { margin-top: 10px; font-size: 28px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* newsletter */
.letter { background: var(--ink); }
.letter-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
@media (max-width: 880px) { .letter-grid, .guide-grid, .book-grid, .story-grid { grid-template-columns: 1fr; } .story-quote { position: static; } }

/* footer */
.foot { background: #0f1711; color: var(--on-dark-muted); padding: 70px 0 40px; font-size: 14.5px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 46px; border-bottom: 1px solid rgba(246, 241, 228, 0.12); }
.foot h4 { margin: 0 0 14px; color: var(--on-dark); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--on-dark-muted); transition: color 200ms; }
.foot a:hover { color: var(--lime); }
.foot .big { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; color: var(--on-dark); margin: 0 0 16px; }
.foot .big em { color: var(--lime); font-weight: 340; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(246, 241, 228, 0.18); }
.socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: 13px; }
.foot-bottom p { margin: 0; max-width: 62em; }
@media (max-width: 880px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; background: var(--clay); transform-origin: left; transform: scaleX(0); }

/* ---------- inner pages ---------- */
.page-hero { padding: 160px 0 70px; background: var(--cream); }
.page-hero h1.display { font-size: clamp(44px, 7vw, 104px); margin: 18px 0 22px; }
.prose { max-width: 720px; margin-inline: auto; font-size: 18.5px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; margin: 56px 0 16px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--leaf); text-underline-offset: 3px; }
.recipe-card { margin: 44px 0; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.recipe-card h2 { margin-top: 0; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.recipe-meta span { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.recipe-card ul, .recipe-card ol { padding-left: 22px; }
.recipe-card li { margin-bottom: 8px; }
.recipe-card ol li::marker { font-family: var(--display); color: var(--clay); font-weight: 600; }
.note { padding: 18px 22px; border-left: 4px solid var(--lime); background: var(--paper); border-radius: 0 14px 14px 0; font-size: 15.5px; color: var(--muted); }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-family: var(--display); font-size: clamp(21px, 2vw, 26px); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 28px; line-height: 1; color: var(--clay); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 46em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  body::after { display: none; }
}

/* type-only cover for posts without a photo yet */
.pic-type, .post-card .pic-type { display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 10%, var(--b), var(--a)); color: var(--on-dark); }
.pic-type span { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 0.95; text-align: center; letter-spacing: -0.02em; transition: transform 1200ms var(--ease); }
.pic-type em { font-weight: 340; color: var(--lime-soft); }
.post-card:hover .pic-type span { transform: scale(1.05) rotate(-2deg); }
