/* Layout: longhouse-at-dusk funnel. Photo-led hero, short proof bands, one clear action per page. Dark first, birch-bark light second. */
:root {
  --bg: #f2efe6; --bg-2: #e7e2d3; --panel: #fbf9f3; --fg: #23251f; --muted: #5d6056;
  --line: #d3ccb8; --brass: #8a6324; --moss: #3e5a3a; --ember: #a2482b; --on-brass: #fff8ea;
  --shadow: rgba(30, 25, 10, .18);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --script: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14170f; --bg-2: #1b1f15; --panel: #20251a; --fg: #ece5d4; --muted: #aaa690;
    --line: #353a2b; --brass: #d4ad66; --moss: #8fb07f; --ember: #e08a62; --on-brass: #1a1508;
    --shadow: rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14170f; --bg-2: #1b1f15; --panel: #20251a; --fg: #ece5d4; --muted: #aaa690;
  --line: #353a2b; --brass: #d4ad66; --moss: #8fb07f; --ember: #e08a62; --on-brass: #1a1508;
  --shadow: rgba(0, 0, 0, .45); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 76px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h1 em, h2 em { font-family: var(--script); font-style: italic; font-weight: 500; color: var(--brass); font-size: 1.12em; letter-spacing: 0; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.sec-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-decoration: none; color: var(--fg); font-size: .95rem; white-space: nowrap; }
.brand span { color: var(--brass); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn-solid, .nav-links a.btn-solid:hover { color: var(--on-brass); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: .88rem; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border-radius: 3px; border: 1.5px solid var(--brass); cursor: pointer; transition: transform .15s ease; }
.btn-solid { background: var(--brass); color: var(--on-brass); }
.btn-ghost { background: transparent; color: var(--brass); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: .78rem; }
a:focus-visible, .btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.textlink { color: var(--muted); font-size: .95rem; }

/* Hero */
.hero { padding-block: 56px 64px; background: radial-gradient(ellipse at 80% 20%, var(--bg-2), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-photo { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-photo img.main { width: 100%; aspect-ratio: 315/440; object-fit: cover; border-radius: 4px; box-shadow: 0 24px 50px var(--shadow); }
.hero-photo img.cover { position: absolute; width: 38%; left: -16%; bottom: -26px; aspect-ratio: 2/3; border-radius: 3px; box-shadow: 0 14px 30px var(--shadow); transform: rotate(-6deg); }
.hero-photo .caption { position: absolute; right: -6px; top: 18px; background: var(--panel); border: 1px solid var(--line); padding: 8px 12px; border-radius: 3px; font-size: .82rem; box-shadow: 0 8px 20px var(--shadow); }
.hero-photo .caption b { font-family: var(--display); display: block; font-size: .8rem; letter-spacing: .08em; }

/* Opt-in form */
.optin { display: grid; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px; max-width: 520px; }
.optin .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.optin label { font-size: .8rem; color: var(--muted); display: grid; gap: 4px; }
.optin input { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 3px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); width: 100%; min-width: 0; }
.optin .fine { font-size: .78rem; color: var(--muted); }
.optin .err { color: var(--ember); font-size: .88rem; }

/* Lists and cards */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card h3 { font-family: var(--body); font-weight: 600; font-size: 1.04rem; letter-spacing: 0; }
.card p { color: var(--muted); font-size: .97rem; }

/* Kit preview */
.kit { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 40px; align-items: center; }
.kit img { width: 100%; aspect-ratio: 2/3; border-radius: 3px; box-shadow: 0 18px 36px var(--shadow); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.day { border-top: 2px solid var(--brass); padding-top: 8px; font-size: .84rem; color: var(--muted); }
.day b { display: block; font-family: var(--display); font-size: .72rem; letter-spacing: .14em; color: var(--brass); }

/* People */
.person { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: start; }
.person img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.person .role { font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.person p { color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }

/* Offer (thanks page) */
.offer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; background: var(--panel); border: 2px solid var(--brass); border-radius: 6px; padding: 36px; box-shadow: 0 24px 50px var(--shadow); }
.offer .covers { position: relative; height: 340px; }
.offer .covers img { position: absolute; width: 44%; aspect-ratio: 2/3; border-radius: 3px; box-shadow: 0 12px 24px var(--shadow); }
.price-big { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.was { color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--moss); padding: 14px 18px; border-radius: 3px; }

/* Shop */
.bonus { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px dashed var(--brass); border-radius: 4px; padding: 16px 20px; margin-bottom: 30px; }
.bonus img { width: 64px; aspect-ratio: 2/3; border-radius: 2px; flex: none; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; min-width: 0; }
.product img { width: 62%; justify-self: center; aspect-ratio: 2/3; border-radius: 2px; box-shadow: 0 10px 22px var(--shadow); }
.product .meta { font-size: .82rem; color: var(--muted); }
.product p { font-size: .95rem; color: var(--muted); }
.product .buyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.product > .tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.tag { font-family: var(--display); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; background: var(--ember); color: var(--panel); justify-self: start; }
.bundles { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; margin-top: 40px; }
.bundle { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.bundle.best { border: 2px solid var(--brass); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
summary { cursor: pointer; list-style: none; padding: 16px 50px 16px 20px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--display); color: var(--brass); font-size: 1.3rem; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 20px 18px; color: var(--muted); max-width: 68ch; }

footer { border-top: 1px solid var(--line); padding-block: 30px 44px; font-size: .82rem; color: var(--muted); }
footer .wrap { display: grid; gap: 8px; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .offer, .kit, .bundles { grid-template-columns: 1fr; }
  .hero-photo { width: min(340px, 82%); }
  .kit img { width: 180px; }
  .products, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip img:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
  section { padding-block: 56px; }
  .optin .row, .products, .grid-3 { grid-template-columns: 1fr; }
  .person { grid-template-columns: 110px minmax(0, 1fr); }
  .offer { padding: 22px; }
  .offer .covers { height: 260px; }
  .days { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links a.hide-sm { display: none; }
  .hero-photo .caption { right: 0; }
  .btn.wide-sm { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Members area ---------- */
html.rr-live body[data-page="members"] main { visibility: hidden; }
html.rr-live.rr-member body[data-page="members"] main { visibility: visible; }
.demo-banner { background: var(--panel); border: 1px dashed var(--ember); color: var(--fg); padding: 10px 14px; border-radius: 3px; font-size: .88rem; }
.auth { max-width: 460px; margin: 0 auto; display: grid; gap: 16px; }
.auth .optin { max-width: none; }
.auth label { font-size: .85rem; }
.daynav { display: flex; flex-wrap: wrap; gap: 6px; }
.daynav a { font-family: var(--display); font-size: .74rem; letter-spacing: .1em; text-decoration: none; color: var(--brass); border: 1px solid var(--line); background: var(--panel); padding: 6px 10px; border-radius: 3px; font-variant-numeric: tabular-nums; }
.daynav a:hover { border-color: var(--brass); }
.week-head { display: grid; gap: 10px; margin: 10px 0 24px; }
.week-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.week-meta b { color: var(--fg); font-variant-numeric: tabular-nums; }
.dayc { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-bottom: 16px; scroll-margin-top: 80px; }
.dayc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dayc-head h3 { font-size: 1.05rem; }
.dayc-head .tot { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dayc-head .tot b { color: var(--brass); font-family: var(--display); font-size: 1rem; }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meal { display: grid; gap: 6px; align-content: start; min-width: 0; }
.meal .slot { font-family: var(--display); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.meal h4 { margin: 0; font-size: .98rem; font-weight: 600; }
.meal p { font-size: .9rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: .74rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill.p { border-color: var(--moss); color: var(--moss); font-weight: 600; }
.meal details { background: transparent; border: 0; }
.meal summary { padding: 4px 0; font-size: .82rem; font-weight: 600; color: var(--brass); }
.meal summary::after { content: none; }
.meal ol { margin: 4px 0 0; padding-left: 18px; font-size: .88rem; color: var(--muted); display: grid; gap: 3px; }
.snackrow { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.snackrow b { color: var(--fg); }
.grocery { columns: 3 220px; column-gap: 24px; }
.grocery .sec { break-inside: avoid; margin-bottom: 14px; }
.grocery h4 { margin: 0 0 4px; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.grocery ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; font-size: .92rem; }
.grocery label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.grocery input { margin-top: 5px; accent-color: var(--brass); }
.prep { counter-reset: p; display: grid; gap: 8px; padding: 0; list-style: none; }
.prep li { counter-increment: p; padding-left: 34px; position: relative; color: var(--muted); }
.prep li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-family: var(--display); font-size: .78rem; display: grid; place-items: center; }
.snackgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.snackgrid .card { padding: 14px; gap: 4px; }
@media (max-width: 900px) { .meals { grid-template-columns: 1fr; } .snackgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
