/* Slow Chapters: bone paper, forest ink, one brick accent. Fraunces for headlines, Geist for text. */
:root {
  --paper: #eeeae0;
  --paper-2: #e5dfd1;
  --surface: #f8f5ee;
  --ink: #1b2f26;
  --ink-soft: #55645b;
  --accent: #a9432b;
  --accent-deep: #8e3420;
  --accent-ink: #fff7ef;
  --green: #2e5a46;
  --lamp: #f2b45c;
  --night: #13241c;
  --line: rgba(27, 47, 38, 0.16);
  --edge: rgba(255, 255, 255, 0.7);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Geist", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --e1: 0 1px 2px rgba(40, 30, 10, 0.12), 0 6px 16px rgba(40, 30, 10, 0.08);
  --e2: 0 14px 40px rgba(40, 30, 10, 0.16), 0 3px 8px rgba(40, 30, 10, 0.1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #b9b19c var(--paper); }
section[id] { scroll-margin-top: 3.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; letter-spacing: 0.003em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em, .beat2-line em, .wordmark em { font-style: italic; color: var(--accent); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input { caret-color: var(--accent); }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }

/* paper grain, very light */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.07; mix-blend-mode: multiply; background-image: url(assets/grain.png); background-size: 220px 220px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--font-text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(169, 67, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 40px; padding: 0.5rem 1.15rem; font-size: 0.9rem; }
.btn-arrow::after { content: "\2192"; display: inline-block; transition: transform 160ms var(--ease-out); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-ghost:hover { border-color: var(--ink-soft); }
  .btn-arrow:hover::after { transform: translateX(3px); }
}

/* Bookmark: a ribbon that grows as you read */
.bookmark { position: fixed; top: 0; right: clamp(14px, 3vw, 34px); width: 14px; height: 100vh; z-index: 60; pointer-events: none; }
.bookmark span { display: block; width: 100%; height: calc(var(--read, 0) * 100%); background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px)); min-height: 28px; box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15); }

/* Header */
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.site-header { position: fixed; z-index: 50; inset: 14px auto auto 50%; transform: translateX(-50%); width: min(1060px, calc(100% - 1.5rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.5rem 0.45rem 1.4rem; border-radius: 999px; background: rgba(248, 245, 238, 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid var(--line); box-shadow: var(--e1); }
.site-header nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-header nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); transition: color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { color: var(--ink); } }
@media (max-width: 760px) { .site-header nav { display: none; } .header-cta { margin-left: auto; } .bookmark { right: 8px; width: 10px; } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 150vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.dusk { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 55% 65% at 80% 28%, rgba(255, 196, 110, calc(var(--hp, 0) * 0.55)) 0%, rgba(255, 196, 110, 0) 70%), linear-gradient(rgba(40, 28, 10, calc(var(--hp, 0) * 0.14)), rgba(40, 28, 10, calc(var(--hp, 0) * 0.3))); }
.hero-room { position: absolute; z-index: 1; right: max(0px, calc((100vw - 1400px) / 2)); bottom: 0; width: min(620px, 52vw); height: 100%; transform: translate3d(0, calc(var(--hp, 0) * -5vh), 0); }
.shelf { position: absolute; right: clamp(1rem, 5vw, 4.5rem); bottom: 7vh; width: min(500px, 40vw); display: grid; gap: 0; transform-origin: 70% 100%; transform: scale(calc(1 + var(--hp, 0) * 0.12)); }
.shelf-row { display: flex; align-items: flex-end; gap: 2px; height: clamp(120px, 17vh, 190px); padding: 0 6px; background: linear-gradient(to bottom, rgba(60, 40, 20, 0.07), rgba(60, 40, 20, 0.02)); border-left: 6px solid #8b6b4a; border-right: 6px solid #8b6b4a; overflow: hidden; }
.shelf-row::after { content: ""; flex: 1 1 0; }
.shelf-board { height: 14px; background: linear-gradient(#a37f59, #7f5f3f); box-shadow: 0 6px 12px rgba(40, 30, 10, 0.25); margin-inline: -6px; }
.spine { flex: none; width: var(--w); height: var(--h); background: var(--c); position: relative; border-radius: 2px 2px 1px 1px; box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.14), inset -3px 0 0 rgba(0, 0, 0, 0.18); transform-origin: bottom left; }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; background: rgba(255, 244, 220, 0.32); }
.spine::before { top: 13%; }
.spine::after { bottom: 11%; }
.spine.lean { transform: rotate(var(--tilt)); margin-right: 8px; }
.spine.rise { animation: none; transform: translateY(calc(var(--hp, 0) * -16px)); }
.glow { position: absolute; z-index: 0; right: 4%; top: -4%; width: min(620px, 56vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 206, 130, 0.95) 0%, rgba(255, 190, 100, 0.45) 35%, rgba(255, 190, 100, 0) 70%); opacity: calc(0.18 + var(--hp, 0) * 0.82); mix-blend-mode: multiply; }
.lamp { position: absolute; z-index: 1; right: clamp(2rem, 9vw, 7.5rem); top: 9vh; width: 130px; height: 250px; transform: translate3d(0, calc(var(--hp, 0) * 2vh), 0); }
.lamp .shade { position: absolute; left: 0; top: 0; width: 130px; height: 78px; background: linear-gradient(135deg, #e2b56a, #c58a3b); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); box-shadow: inset 0 -10px 0 rgba(255, 244, 200, 0.4); }
.lamp .cone { position: absolute; left: -30%; top: 66px; width: 160%; height: 190px; background: linear-gradient(rgba(255, 214, 140, 0.7), rgba(255, 214, 140, 0)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); opacity: calc(0.2 + var(--hp, 0) * 0.8); filter: blur(6px); }
.lamp .stem { position: absolute; left: 62px; top: 74px; width: 7px; height: 150px; background: linear-gradient(90deg, #6b5842, #4a3b2b); border-radius: 3px; }
.lamp .foot { position: absolute; left: 30px; bottom: 0; width: 70px; height: 16px; background: linear-gradient(#5e4b36, #3f3223); border-radius: 50% 50% 8px 8px / 100% 100% 8px 8px; }
.hero-copy { position: absolute; z-index: 3; left: max(var(--gutter), calc((100vw - 1240px) / 2)); top: 50%; width: min(620px, 52vw); }
.hero-beat1 { transform: translate3d(0, calc(-50% - var(--hp, 0) * 8vh), 0); opacity: clamp(0, calc(1 - var(--hp, 0) * 3.2), 1); }
.hero-kicker { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: clamp(0.72rem, 1.1vw, 0.86rem); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.75rem; }
.hero-kicker::before { content: ""; width: 2rem; height: 2px; background: var(--accent); flex: none; }
.hero-beat1 h1 { font-size: clamp(2.3rem, 4.9vw, 5rem); line-height: 1.02; }
.hero-sub { margin: 1.3rem 0 1.7rem; max-width: 34ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-ask { display: flex; align-items: center; gap: 0.5rem; width: min(580px, 100%); padding: 0.4rem 0.4rem 0.4rem 1.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2); }
.hero-ask:focus-within { border-color: var(--accent); }
.hero-ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: 400 1.05rem/1.4 var(--font-text); padding: 0.55rem 0; }
.hero-ask input::placeholder { color: #8b958e; }
.hero-alt { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ink-soft); }
.hero-alt a { color: var(--ink); }
.hero-beat2 { top: auto; bottom: 20vh; width: min(480px, 44vw); transform: translate3d(0, calc((1 - var(--hp2, 0)) * 7vh), 0); opacity: var(--hp2, 0); pointer-events: none; }
.beat2-line { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 4rem); letter-spacing: -0.02em; line-height: 1.03; }
@media (max-width: 760px) {
  .hero { height: 150vh; }
  .hero-copy { width: auto; right: var(--gutter); top: 15vh; transform: none; }
  .hero-beat1 { transform: translate3d(0, calc(var(--hp, 0) * -6vh), 0); }
  .hero-beat1 h1 { font-size: clamp(2.1rem, 9.4vw, 2.9rem); }
  .hero-sub { font-size: 1rem; margin: 0.9rem 0 1.1rem; }
  .hero-ask { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 0.5rem; gap: 0.35rem; }
  .hero-ask input { font-size: 1rem; padding: 0.7rem 0.8rem; }
  .hero-ask .btn { width: 100%; }
  .hero-beat2 { top: 18vh; bottom: auto; width: auto; }
  .beat2-line { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-room { width: 100%; }
  .shelf { width: min(86vw, 420px); right: 50%; transform: translateX(50%) scale(calc(1 + var(--hp, 0) * 0.08)); bottom: 3vh; }
  .shelf-row { height: clamp(80px, 11vh, 120px); }
  .lamp { right: 8vw; top: 44vh; transform: scale(0.65); transform-origin: top right; }
  .glow { top: 20vh; }
}

/* Ticker */
.ticker { overflow: hidden; background: var(--green); border-block: 1px solid rgba(0, 0, 0, 0.2); padding: 1.1rem 0; position: relative; z-index: 2; }
.ticker-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); width: max-content; animation: tick 60s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.6rem); color: #f3efe6; line-height: 1; white-space: nowrap; }
.ticker-track i { width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); flex: none; }
@keyframes tick { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* ---------- ASK ---------- */
.ask { padding: clamp(5rem, 11vw, 9rem) 0; }
.ask-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ask-grid > * { min-width: 0; }
.ask-intro h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); margin: 0.7rem 0 1.3rem; }
.ask-lead { color: var(--ink-soft); max-width: 42ch; font-size: 1.12rem; }
.ask-notes { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; color: var(--ink-soft); font-size: 0.95rem; }
.ask-notes li { padding-left: 1.4rem; position: relative; }
.ask-notes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.65rem; height: 2px; background: var(--accent); }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--e2), inset 0 1px 0 var(--edge); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; min-height: 540px; }
.chat-log { flex: 1; min-height: 260px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.85rem; padding-right: 0.25rem; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 0.85rem 1.1rem; border-radius: 16px; line-height: 1.55; font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop 220ms var(--ease-out); }
.msg p { margin: 0; }
.msg.bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; font-family: var(--font-text); }
.msg.me { align-self: flex-end; background: var(--green); color: #f3efe6; border-bottom-right-radius: 4px; }
.msg.note { align-self: center; max-width: 100%; background: transparent; color: var(--ink-soft); font-size: 0.9rem; text-align: center; }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 1.2em; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: 500 0.9rem/1.3 var(--font-text); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 0.95rem; cursor: pointer; text-align: left; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--accent); background: rgba(169, 67, 43, 0.07); } }
.chat-form { display: flex; align-items: center; gap: 0.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 0.5rem; }
.chat-form:focus-within { border-color: var(--accent); }
.chat-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font: 400 1rem/1.4 var(--font-text); padding: 0.6rem 0.4rem; }
.chat-form input::placeholder { color: #8b958e; }
.count { font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.count.warn { color: var(--accent); }
.send { min-height: 44px; padding-inline: 1.2rem; }
.mic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.mic:active { transform: scale(0.95); }
.mic[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 67, 43, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(169, 67, 43, 0); } }
.chat-meta { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.unlock { background: var(--paper); border: 1px solid var(--accent); border-radius: 16px; padding: 1.1rem; }
.unlock[hidden] { display: none; }
.unlock-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.unlock-copy { color: var(--ink-soft); font-size: 0.95rem; margin: 0.25rem 0 0.85rem; }
.unlock form { display: grid; gap: 0.7rem; }
.unlock input[type="email"], .letter-row input[type="email"] { width: 100%; min-height: 48px; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1rem var(--font-text); }
.unlock input[type="email"]:focus, .letter-row input[type="email"]:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; cursor: pointer; }
.check input { margin-top: 0.15rem; accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: none; }
.form-msg { min-height: 1.3em; font-size: 0.9rem; color: var(--accent); }
@media (max-width: 520px) { .count { display: none; } .chat-form input::placeholder { font-size: 0.92rem; } }
@media (max-width: 900px) { .ask-grid { grid-template-columns: minmax(0, 1fr); } .chat { min-height: 0; } }

/* ---------- MOODS (sideways shelf of covers) ---------- */
.moods { position: relative; background: var(--paper); }
.moods-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(0.75rem, 2.5vh, 1.75rem); padding: 4.5rem 0 2.5rem; overflow: hidden; }
.moods-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.moods-head p { color: var(--ink-soft); margin-top: 0.7rem; }
.moods-track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(1rem, 2vw, 1.75rem); width: max-content; will-change: transform; transform: translate3d(calc(var(--pan, 0) * -1px), 0, 0); }
.mood { width: clamp(170px, 24vh, 250px); flex: none; display: grid; gap: 0.7rem; }
.mood:nth-child(even) { margin-top: clamp(0.5rem, 3vh, 2rem); }
.cover { position: relative; aspect-ratio: 3 / 4.3; border-radius: 4px 10px 10px 4px; background: var(--c); color: var(--ct, #f7f2e8); padding: 1.1rem 1rem 1rem 1.3rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--e2), inset 6px 0 0 rgba(0, 0, 0, 0.18), inset 7px 0 0 rgba(255, 255, 255, 0.12); text-align: left; border: 0; cursor: pointer; transition: transform 200ms var(--ease-out); font: inherit; }
.cover::before { content: ""; position: absolute; left: 1.3rem; right: 1rem; top: 1rem; height: 2px; background: currentColor; opacity: 0.55; }
.cover-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.06; letter-spacing: -0.015em; margin-top: 1.1rem; }
.cover-s { font-size: 0.8rem; opacity: 0.85; letter-spacing: 0.04em; }
@media (hover: hover) and (pointer: fine) { .cover:hover { transform: translateY(-6px) rotate(-1deg); } }
.mood-eg { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.mood-eg b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .moods-pin { position: static; height: auto; padding: 5rem 0; }
  .moods-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
  .moods-track { transform: none; }
  .mood { scroll-snap-align: center; width: min(230px, 62vw); }
  .mood:nth-child(even) { margin-top: 0; }
}

/* ---------- TODAY'S PAGE ---------- */
.today { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.today-card { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.4fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 5vw, 3.5rem); box-shadow: var(--e2), inset 0 1px 0 var(--edge); }
.today-cover { justify-self: center; width: min(280px, 70%); aspect-ratio: 3 / 4.3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--c, var(--green)); color: #f7f2e8; box-shadow: 0 24px 50px rgba(40, 30, 10, 0.3), inset 6px 0 0 rgba(0, 0, 0, 0.18); transform: rotate(-2deg); }
.today-cover img { width: 100%; height: 100%; object-fit: cover; }
.today-cover .cover-text { height: 100%; padding: 1.4rem 1.2rem 1.2rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between; }
.today-copy { display: grid; gap: 0.7rem; justify-items: start; }
.today-date { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }
.today-copy h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-soft); font-weight: 500; letter-spacing: 0; font-style: italic; }
.today-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
.today-meta { color: var(--ink-soft); }
.today-line { font-size: 1.2rem; max-width: 40ch; }
.today-moods { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.today-moods span { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.85rem; color: var(--ink-soft); }
.today-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.6rem; }
.today-foot { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 760px) { .today-card { grid-template-columns: minmax(0, 1fr); } .today-cover { width: min(220px, 60%); } }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.share-label { font-size: 0.85rem; color: var(--ink-soft); }
.share-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 0.9rem/1 var(--font-text); text-decoration: none; cursor: pointer; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.share-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .share-btn:hover { border-color: var(--accent); background: rgba(169, 67, 43, 0.07); } }

/* ---------- LETTER ---------- */
.letter { background: var(--green); color: #f3efe6; padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; overflow: hidden; }
.letter::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 180, 92, 0.28), rgba(242, 180, 92, 0) 65%); }
.letter-wrap { position: relative; }
.letter-main { display: grid; gap: 1.1rem; justify-items: start; max-width: 640px; }
.letter .kicker { color: #f2b45c; }
.letter h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.letter h2 em { color: #f2b45c; }
.letter-copy { color: rgba(243, 239, 230, 0.82); font-size: 1.1rem; max-width: 48ch; }
.letter-form { display: grid; gap: 0.8rem; width: min(560px, 100%); margin-top: 0.5rem; }
.letter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.letter-row input[type="email"] { flex: 1 1 240px; min-width: 0; background: #f8f5ee; }
.letter .check { color: rgba(243, 239, 230, 0.78); }
.letter .form-msg { color: #f2b45c; }
.letter .btn-primary { background: #f2b45c; color: #2a1c08; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .letter .btn-primary:hover { background: #f6c880; } }

/* ---------- CLOSE: the lamp comes on ---------- */
.close { position: relative; height: 200vh; background: var(--night); color: #f3efe6; }
.close-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; padding: 0 var(--gutter); }
.close-room { position: relative; height: 100%; }
.close .glow { right: auto; left: 50%; top: 12%; transform: translateX(-50%); opacity: calc(0.05 + var(--cp, 0) * 0.95); mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 190, 100, 0.55) 0%, rgba(255, 190, 100, 0.2) 38%, rgba(255, 190, 100, 0) 70%); }
.close .lamp { right: auto; left: 50%; top: 20vh; margin-left: -65px; }
.close .lamp .shade { background: linear-gradient(135deg, #e2b56a, #b9822f); filter: brightness(calc(0.45 + var(--cp, 0) * 0.65)); }
.close .lamp .cone { opacity: calc(var(--cp, 0)); mix-blend-mode: screen; }
.close .lamp .stem, .close .lamp .foot { filter: brightness(0.8); }
.close-copy { display: grid; gap: 1.1rem; justify-items: start; max-width: 480px; z-index: 2; }
.close-copy h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.close-copy h2 em { color: #f2b45c; }
.close-copy p { color: rgba(243, 239, 230, 0.75); font-size: 1.15rem; }
.close .btn-primary { background: #f2b45c; color: #2a1c08; box-shadow: none; }
@media (max-width: 760px) { .close { height: 170vh; } .close-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46% auto; padding-block: 5rem 3rem; align-content: center; } .close .lamp { transform: scale(0.8); top: 6vh; } .close .glow { top: 2%; } }

/* ---------- FOOTER ---------- */
.site-footer { background: #0e1b15; color: rgba(243, 239, 230, 0.78); padding: 3.5rem 0 2rem; }
.site-footer .wordmark { color: #f3efe6; }
.site-footer .wordmark em { color: #f2b45c; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2.5rem; }
.foot-title { font-family: var(--font-display); font-weight: 600; color: #f3efe6; margin-bottom: 0.5rem; }
.foot-small { font-size: 0.93rem; line-height: 1.6; max-width: 56ch; }
.foot-small a { color: #f2b45c; }
.foot-legal { margin-top: 2.5rem; font-size: 0.82rem; color: rgba(243, 239, 230, 0.5); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* Reveals */
.js-rv .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js-rv .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .close { height: auto; }
  .hero-pin, .close-pin { position: relative; height: auto; min-height: 100vh; }
  .hero-beat2 { display: none; }
  .hero-beat1 { opacity: 1; transform: translate3d(0, -50%, 0); }
  .ticker-track { animation: none; }
  .js-rv .rv { opacity: 1; transform: none; transition: none; }
  .bookmark, body::after { display: none; }
  .msg { animation: none; }
}

/* ---------- JOURNAL on the home page ---------- */
.jhome { padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--paper); }
.jhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.jhead h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 0.6rem; }
.jlink { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.jgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.jcard { display: grid; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: var(--e1); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .jcard:hover { transform: translateY(-4px); box-shadow: var(--e2); } }
.jcard .post-art { aspect-ratio: 4 / 3; min-height: 0; }
.jbody { display: grid; gap: 0.5rem; padding: 1.2rem 1.3rem 1.4rem; }
.jkicker { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.jtitle { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.12; letter-spacing: -0.01em; }
.jcard--lead .jtitle { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.jexcerpt { color: var(--ink-soft); font-size: 0.97rem; }
.jmeta { color: var(--ink-soft); font-size: 0.85rem; }
.jfoot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.jtopics { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.jtopics span { font-size: 0.85rem; color: var(--ink-soft); margin-right: 0.4rem; }
.jtopics a { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.9rem; text-decoration: none; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .jtopics a:hover { border-color: var(--accent); background: rgba(169, 67, 43, 0.07); } }
.jall { display: inline-flex; align-items: center; gap: 1rem; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 0.7rem 0.7rem 0.7rem 1.6rem; text-decoration: none; transition: transform 140ms var(--ease-out); }
.jall:active { transform: scale(0.98); }
.jall-text { display: grid; line-height: 1.25; }
.jall-text b { font-size: 1.05rem; }
.jall-text i { font-style: normal; font-size: 0.82rem; opacity: 0.75; }
.jall-arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
@media (max-width: 900px) { .jgrid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- QUIZ ---------- */
.quiz { padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--paper-2); }
.quiz-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.quiz-wrap > * { min-width: 0; }
.quiz-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); margin: 0.7rem 0 1rem; }
.quiz-sub { color: var(--ink-soft); font-size: 1.1rem; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--e2), inset 0 1px 0 var(--edge); padding: clamp(1.25rem, 3vw, 2rem); min-height: 380px; display: flex; flex-direction: column; gap: 1.2rem; }
.q-step { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.q-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--accent); transition: width 300ms var(--ease-out); }
.q-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -0.015em; }
.q-opts { display: grid; gap: 0.6rem; }
.q-opt { text-align: left; font: 500 1.02rem/1.35 var(--font-text); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; cursor: pointer; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 140ms var(--ease-out); }
.q-opt:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .q-opt:hover { border-color: var(--accent); background: rgba(169, 67, 43, 0.07); } }
.q-back { align-self: flex-start; background: none; border: 0; color: var(--ink-soft); font: 500 0.9rem var(--font-text); cursor: pointer; padding: 0.4rem 0; text-decoration: underline; text-underline-offset: 0.2em; }
.q-results { display: grid; gap: 0.9rem; }
.q-res { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem; }
.q-cov { width: 64px; aspect-ratio: 3 / 4.3; border-radius: 3px 6px 6px 3px; background: var(--c); color: #f7f2e8; overflow: hidden; box-shadow: var(--e1); display: grid; align-items: end; padding: 0.35rem; font-size: 0.55rem; line-height: 1.1; font-family: var(--font-display); font-weight: 600; }
.q-cov img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.q-res b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; display: block; }
.q-res span { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 900px) { .quiz-wrap { grid-template-columns: minmax(0, 1fr); } .q-res { grid-template-columns: 56px 1fr; } .q-res .btn { grid-column: 1 / -1; } }

/* legal nav in footer */
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 2rem; font-size: 0.88rem; }
.legal-nav a { color: rgba(243, 239, 230, 0.7); text-decoration: none; }
.legal-nav a:hover { color: #f2b45c; }

/* ---------- PHOTO VERSION ---------- */
.hero-photo { position: absolute; margin: 0; right: clamp(1rem, 5vw, 4.5rem); top: 50%; height: min(78vh, 700px); aspect-ratio: 4 / 5; transform: translate3d(0, calc(-50% - var(--hp, 0) * 3vh), 0) scale(calc(1 + var(--hp, 0) * 0.06)); border-radius: 220px 220px 18px 18px; overflow: hidden; box-shadow: 0 40px 80px rgba(40, 30, 10, 0.3), 0 8px 20px rgba(40, 30, 10, 0.18); z-index: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(calc(0.9 + var(--hp, 0) * 0.25)) brightness(calc(1.02 - var(--hp, 0) * 0.08)); }
.hero-room .glow { right: -4%; top: 14%; }
@media (max-width: 760px) {
  .hero-photo { width: auto; height: 46vh; right: 50%; top: auto; bottom: 4vh; opacity: clamp(0, calc((var(--hp, 0) - 0.02) * 6), 1); transform: translate3d(50%, calc((1 - var(--hp, 0)) * 3vh), 0); border-radius: 160px 160px 14px 14px; }
}
.side-photo { margin: 2rem 0 0; border-radius: 18px; overflow: hidden; box-shadow: var(--e2); max-width: 520px; }
.side-photo img { width: 100%; height: auto; }
.side-photo--tall { max-width: 360px; transform: rotate(-1.5deg); }
.letter-wrap--photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.letter-photo { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); transform: rotate(1.2deg); }
.letter-photo img { width: 100%; height: auto; }
@media (max-width: 900px) { .letter-wrap--photo { grid-template-columns: minmax(0, 1fr); } .letter-photo { order: 2; } }
.close-room--photo { display: grid; place-items: center; }
.close-room--photo img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); filter: brightness(calc(0.35 + var(--cp, 0) * 0.75)) saturate(calc(0.8 + var(--cp, 0) * 0.3)); }
@media (max-width: 760px) { .close-room--photo img { max-height: 40vh; } }
.cover--photo { background-image: linear-gradient(rgba(10, 20, 15, 0.15), rgba(10, 20, 15, 0.72)), var(--ph); background-size: cover; background-position: center; color: #fff7ef; }
.cover--photo .cover-s { opacity: 0.95; }

img.post-art { height: auto; }

@media (min-width: 1500px) { .hero-room { width: min(760px, 52vw); } .hero-photo { right: clamp(2rem, 6vw, 6rem); } }

/* ---------- round 3 tweaks ---------- */
.chat { background: var(--green); border-color: rgba(0, 0, 0, 0.25); color: #f3efe6; box-shadow: 0 30px 70px rgba(18, 33, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.chat .msg.bot { background: #f3efe6; color: var(--ink); }
.chat .msg.me { background: var(--lamp); color: #2a1c08; }
.chat .msg.note { color: rgba(243, 239, 230, 0.75); }
.chat .typing i { background: var(--ink-soft); }
.chat .chip { color: #f3efe6; border-color: rgba(243, 239, 230, 0.35); }
@media (hover: hover) and (pointer: fine) { .chat .chip:hover { border-color: var(--lamp); background: rgba(242, 180, 92, 0.15); } }
.chat .chat-form { background: #f3efe6; border-color: transparent; }
.chat .chat-form:focus-within { border-color: var(--lamp); }
.chat .btn-primary { background: var(--accent); }
.chat .mic { color: var(--ink); }
.chat .chat-meta { color: rgba(243, 239, 230, 0.75); }
.chat .unlock { background: #f3efe6; color: var(--ink); border-color: var(--lamp); }
.jgrid { grid-template-columns: repeat(3, 1fr); }
.jcard--lead .jtitle { font-size: 1.3rem; }
.jcard .post-art { aspect-ratio: 4 / 3; width: 100%; }
@media (max-width: 900px) { .jgrid { grid-template-columns: minmax(0, 1fr); } }
.close { height: 125vh; }
@media (max-width: 760px) { .close { height: 120vh; } }
.ask-banner { margin: 0 auto 3rem; width: min(1180px, 100% - 2 * var(--gutter)); border-radius: 22px; overflow: hidden; box-shadow: var(--e2); }
.ask-banner img { width: 100%; height: clamp(220px, 34vw, 440px); object-fit: cover; }
.ask { padding-top: clamp(3rem, 6vw, 5rem); }

.quiz { background: var(--paper-2); }

.q-share { display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.q-share-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }

/* share buttons: green, terracotta on hover/press */
.share-btn { background: var(--green); border-color: var(--green); color: #f3efe6; }
.share-btn:active, .share-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
/* quiz result "Ask about it": terracotta, green on hover */
.q-res .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .q-res .btn:hover { background: var(--green); border-color: var(--green); color: #f3efe6; } }
.q-res .btn:active { background: var(--green); border-color: var(--green); color: #f3efe6; }

/* quiz card: same green as the chat card */
.quiz-card { background: var(--green); border-color: rgba(0, 0, 0, 0.25); color: #f3efe6; box-shadow: 0 30px 70px rgba(18, 33, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.quiz-card .q-step { color: var(--lamp); }
.quiz-card .q-bar { background: rgba(243, 239, 230, 0.2); }
.quiz-card .q-bar i { background: var(--lamp); }
.quiz-card .q-opt { color: #f3efe6; border-color: rgba(243, 239, 230, 0.35); }
@media (hover: hover) and (pointer: fine) { .quiz-card .q-opt:hover { border-color: var(--lamp); background: rgba(242, 180, 92, 0.15); } }
.quiz-card .q-back { color: rgba(243, 239, 230, 0.75); }
.quiz-card .q-res { border-color: rgba(243, 239, 230, 0.3); }
.quiz-card .q-res span { color: rgba(243, 239, 230, 0.75); }
.quiz-card .q-share { border-top-color: rgba(243, 239, 230, 0.3); }
.quiz-card .share-btn { background: #f3efe6; border-color: #f3efe6; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .quiz-card .share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
.quiz-card .q-res .btn:hover, .quiz-card .q-res .btn:active { background: #f3efe6; border-color: #f3efe6; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--paper-2); }
.faq-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin: 0.7rem 0 1rem; }
.faq-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 34ch; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--e1); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #f3efe6; display: grid; place-items: center; font-family: var(--font-text); font-size: 1.2rem; line-height: 1; transition: background-color 140ms var(--ease-out); }
.faq-list details[open] summary::after { content: "\2212"; background: var(--accent); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-a a { color: var(--accent); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* Browse by topic (home Journal): green label, green frames, green fill on hover */
.jtopics span { color: var(--green); font-weight: 600; }
.jtopics a { border-color: var(--green); color: var(--green); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .jtopics a:hover { background: var(--green); border-color: var(--green); color: #f3efe6; } }
.jtopics a:active, .jtopics a:focus-visible { background: var(--green); color: #f3efe6; }

/* footer, same design as the drinks site */
.site-footer { border-top: 1px solid rgba(243, 239, 230, 0.12); }
.foot-title { font-weight: 600; margin-bottom: 0.5rem; }
.site-footer .wrap.foot-grid a { color: #f2b45c; }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(243, 239, 230, 0.25); color: #f3efe6 !important; transition: border-color 140ms var(--ease-out), background-color 140ms var(--ease-out), transform 140ms var(--ease-out), color 140ms var(--ease-out); }
.social a:active { transform: scale(0.95); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .social a:hover { border-color: #f2b45c; color: #f2b45c !important; background: rgba(242, 180, 92, 0.1); } }
.legal-nav { gap: 0.4rem 1.6rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 239, 230, 0.12); font-size: 0.92rem; }
.legal-nav a { color: rgba(243, 239, 230, 0.72); text-decoration: none; transition: color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .legal-nav a:hover { color: #f3efe6; text-decoration: underline; } }
.foot-legal { margin-top: 1.25rem; }

/* ---------- round 5 ---------- */
/* header: some green */
.site-header { border-color: rgba(46, 90, 70, 0.4); box-shadow: 0 1px 2px rgba(18, 33, 26, 0.12), 0 6px 18px rgba(46, 90, 70, 0.14); }
.site-header nav a { color: var(--green); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { color: var(--accent); } }
.site-header .wordmark { color: var(--green); }
/* ghost buttons were invisible: green frame, green fill on hover */
.btn-ghost { border: 1.5px solid var(--green); color: var(--green); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--green); border-color: var(--green); color: #f3efe6; } }
.btn-ghost:active { background: var(--green); color: #f3efe6; }
/* book cover frame: green for light covers, terracotta for dark covers */
.today-cover { --frame: var(--green); border: 10px solid var(--frame); box-shadow: 0 24px 50px rgba(40, 30, 10, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.12); }
.today-cover.frame-terra { --frame: var(--accent); }
.today-cover img { display: block; }
.today-foot { font-style: italic; font-family: var(--font-display); font-size: 1rem; }

/* ---------- full-width photo hero ---------- */
.hero-pin { background: #12211a; }
.hero-bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(calc(1.02 + var(--hp, 0) * 0.07)); filter: brightness(calc(1 - var(--hp, 0) * 0.28)) saturate(calc(1 + var(--hp, 0) * 0.15)); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 15, 0.86) 0%, rgba(10, 20, 15, 0.62) 38%, rgba(10, 20, 15, 0.12) 78%), linear-gradient(0deg, rgba(10, 20, 15, 0.55), rgba(10, 20, 15, 0) 30%); }
.dusk { background: linear-gradient(rgba(10, 20, 15, calc(var(--hp, 0) * 0.1)), rgba(10, 20, 15, calc(var(--hp, 0) * 0.35))); }
.hero-kicker { color: #f2b45c; }
.hero-kicker::before { background: #f2b45c; }
.hero-beat1 h1, .beat2-line { color: #f8f2e6; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero-beat1 h1 em, .beat2-line em { color: #f2b45c; }
.hero-sub { color: rgba(248, 242, 230, 0.88); }
.hero-alt { color: rgba(248, 242, 230, 0.8); }
.hero-alt a { color: #f2b45c; }
.hero-copy { width: min(660px, 56vw); }
@media (max-width: 760px) {
  .hero-bg::after { background: linear-gradient(0deg, rgba(10, 20, 15, 0.82), rgba(10, 20, 15, 0.55)); }
  .hero-bg img { object-position: 68% 50%; }
  .hero-copy { width: auto; }
}

/* ---------- scroll-controlled walk down the library aisle ---------- */
.hero { height: 340vh; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero-bg.walk-on video { opacity: 1; }
.hero-bg.walk-on img { filter: none; transform: none; }
@media (max-width: 760px) { .hero { height: 280vh; } .hero-bg video { object-position: 66% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-bg video { display: none; } }

/* header CTA + hero button: green; menu links: terracotta */
.header-cta, .hero-ask .btn-primary { background: var(--green); color: #f3efe6; box-shadow: 0 6px 18px rgba(18, 33, 26, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
@media (hover: hover) and (pointer: fine) { .header-cta:hover, .hero-ask .btn-primary:hover { background: #1f3d30; } }
.site-header nav a { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { color: var(--green); } }

/* suggestion chips (outside the green chat): terracotta frames */
.chip { border-color: var(--accent); }
.chat .chip { border-color: rgba(243, 239, 230, 0.35); }
/* Browse by topic: terracotta frames and text, green fill on hover */
.jtopics a { border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .jtopics a:hover { background: var(--green); border-color: var(--green); color: #f3efe6; } }

/* ---------- ten-minute reading ritual ---------- */
.close-link { color: #f2b45c; font-size: 0.95rem; text-underline-offset: 0.25em; }
.ritual { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); background: rgba(10, 16, 12, 0.985); color: #f3efe6; text-align: center; opacity: 0; transition: opacity 600ms var(--ease-out); }
.ritual[hidden] { display: none; }
.ritual.on { opacity: 1; }
.ritual-glow { position: absolute; left: 50%; top: 42%; width: min(90vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 180, 92, 0.22), rgba(242, 180, 92, 0) 65%); pointer-events: none; }
.ritual-inner { position: relative; display: grid; gap: 1.1rem; justify-items: center; width: min(420px, 100%); }
.ritual-kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #f2b45c; font-weight: 600; }
.ritual-time { font-family: var(--font-display); font-weight: 600; font-size: clamp(4.5rem, 16vw, 8rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ritual-bar { width: 100%; height: 3px; background: rgba(243, 239, 230, 0.18); border-radius: 3px; overflow: hidden; }
.ritual-bar i { display: block; height: 100%; width: 0; background: #f2b45c; transition: width 1s linear; }
.ritual-line { color: rgba(243, 239, 230, 0.75); font-size: 1.1rem; }
.ritual-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.ritual-btn { background: #f2b45c; color: #2a1c08; }
.ritual-btn[hidden] { display: none; }
.ritual-btn--ghost { background: transparent; color: #f3efe6; border-color: rgba(243, 239, 230, 0.35); }
@media (hover: hover) and (pointer: fine) { .ritual-btn:hover { background: #f6c880; } .ritual-btn--ghost:hover { background: rgba(243, 239, 230, 0.1); } }
body.ritual-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ritual, .ritual-bar i { transition: none; } }

/* ---------- palette update: hero text, header, footer ----------
   midnight #102e27, forest #234a3c, ivory #f5f0e5, paper grey #c9cbc5, gold #ddb65b, terracotta #c7775b */
.hero-kicker { color: #ddb65b; }
.hero-kicker::before { background: #ddb65b; }
.hero-beat1 h1 em { color: #ddb65b; }
.hero-beat1 h1, .beat2-line { color: #f5f0e5; }
.hero-sub { color: #c9cbc5; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.7rem; }
.hero-actions .btn { min-height: 52px; padding-inline: 1.7rem; }
.hero-actions .btn-primary { background: #ddb65b; color: #102e27; box-shadow: none; }
.btn-line { border-color: rgba(245, 240, 229, 0.45); color: #f5f0e5; background: rgba(16, 46, 39, 0.25); }
@media (hover: hover) and (pointer: fine) {
  .hero-actions .btn-primary:hover { background: #e8c878; }
  .btn-line:hover { border-color: #ddb65b; color: #ddb65b; }
}
@media (max-width: 760px) { .hero-actions .btn { width: 100%; } }

.site-header { background: #102e27; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(245, 240, 229, 0.12); box-shadow: 0 8px 24px rgba(10, 20, 15, 0.28); }
.site-header .wordmark, .site-header .wordmark em { color: #f5f0e5; }
.site-header nav a { color: #f5f0e5; }
.site-header nav a[aria-current="page"] { color: #ddb65b; }
.site-header .header-cta { background: #ddb65b; color: #102e27; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { color: #ddb65b; }
  .site-header .header-cta:hover { background: #e8c878; }
}

.site-footer { background: #102e27; color: #c9cbc5; }
.site-footer .wordmark { color: #f5f0e5; }
.site-footer .wordmark em, .site-footer .foot-small a, .site-footer .wrap.foot-grid a { color: #ddb65b; }
.foot-title { color: #f5f0e5; }
.foot-legal { color: rgba(201, 203, 197, 0.7); }
.legal-nav a { color: #c9cbc5; }
@media (hover: hover) and (pointer: fine) {
  .legal-nav a:hover { color: #f5f0e5; }
  .social a:hover { border-color: #ddb65b; color: #ddb65b !important; background: rgba(221, 182, 91, 0.1); }
}

/* Contact pop-up */
.contact-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(19, 36, 28, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
.contact-modal[hidden] { display: none; }
.contact-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 2.25rem 2rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--e2); }
.contact-x { position: absolute; top: 0.6rem; right: 0.8rem; width: 2.4rem; height: 2.4rem; border: 0; background: none; color: var(--ink-soft); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.contact-card h2 { margin: 0.2rem 0 0.4rem; font-family: var(--font-display); }
.contact-sub { margin: 0 0 1.25rem; color: var(--ink-soft); }
.contact-card label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); }
.contact-card input, .contact-card select, .contact-card textarea { display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.85rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.contact-card textarea { resize: vertical; min-height: 7rem; }
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; gap: 0; } .contact-card { padding: 2rem 1.25rem 1.5rem; } }
.contact-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-err { margin: 0 0 0.9rem; color: var(--accent-deep); font-size: 0.9rem; }
.contact-note { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.contact-note a { color: inherit; }
.contact-done { text-align: center; padding: 1.5rem 0 0.5rem; }

/* Mobile menu */
.nav-toggle { color: var(--ink); display: none; position: relative; width: 44px; height: 44px; margin-left: 0.25rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-header { padding-right: 0.4rem; gap: 0.5rem; }
  .site-header .wordmark { font-size: 1rem; white-space: nowrap; }
  .header-cta { padding-inline: 0.9rem; }
  .header-cta { margin-left: auto; }
  .nav-open nav { display: flex !important; flex-direction: column; gap: 0; position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 0.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2); }
  .nav-open nav a { padding: 0.85rem 1rem; font-size: 1.05rem; color: var(--ink); }
}

/* Cookie notice */
.cookie-notice { position: fixed; z-index: 80; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(720px, calc(100% - 1.5rem)); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding: 1rem 1.25rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--e2); }
.cookie-notice p { margin: 0; flex: 1 1 280px; font-size: 0.92rem; color: var(--ink-soft); }
.cookie-notice a { color: var(--ink); }
.cookie-actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* Header wordmark with slogan, yellow Chapters, yellow menu bars */
.site-header .wordmark { display: block; line-height: 1.05; white-space: nowrap; }
.site-header .wordmark em { color: #ddb65b; }
.site-header .tagline { display: block; margin-top: 0.15rem; font: 500 0.62rem/1.2 var(--font-text); letter-spacing: 0.03em; color: #f5f0e5; white-space: nowrap; }
.site-header .nav-toggle { color: #ddb65b; flex: none; }
@media (max-width: 760px) {
  .nav-open nav { background: #102e27; border-color: rgba(245, 240, 229, 0.14); }
  .nav-open nav a { color: #f5f0e5; }
  .nav-open nav a:hover, .nav-open nav a[aria-current='page'] { color: #ddb65b; }
}

/* Home Journal: one big card, two stacked beside it */
.jgrid { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.jcard--lead { grid-row: 1 / span 2; grid-template-rows: 1fr auto; }
.jcard--lead .post-art { height: 100%; min-height: 340px; aspect-ratio: auto; object-fit: cover; }
.jcard--lead .jtitle { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.jcard:not(.jcard--lead) { grid-template-columns: 0.9fr 1.1fr; align-content: stretch; }
.jcard:not(.jcard--lead) .post-art { height: 100%; aspect-ratio: auto; object-fit: cover; }
.jcard:not(.jcard--lead) .jbody { align-content: center; }
.jcard:not(.jcard--lead) .jexcerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .jgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .jcard--lead { grid-row: auto; }
  .jcard--lead .post-art { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .jcard:not(.jcard--lead) { grid-template-columns: minmax(0, 1fr); }
  .jcard:not(.jcard--lead) .post-art { height: auto; aspect-ratio: 4 / 3; }
}

/* Hero to chat transition: deep green band, terracotta edge, green fading into cream */
.ticker { background: #102e27; box-shadow: inset 0 -3px 0 #c4583a; }
.ask { background: linear-gradient(180deg, #102e27 0, #e9e3d3 150px, #eeeae0 100%); padding-top: clamp(7rem, 13vw, 10rem); }
.chat { box-shadow: 0 18px 40px rgba(16, 46, 39, 0.25); }

/* One continuous page: calmer section rhythm, no glow in the letter band, alternating paper tones */
.quiz, .today, .jhome, .letter { padding-block: clamp(3.5rem, 6.5vw, 5.5rem); }
.faq { padding-block: clamp(3.25rem, 6vw, 5rem); }
.ask { padding-bottom: clamp(3rem, 6vw, 5rem); }
.letter::before { display: none; }
.letter { background: var(--green); }
.today { background: var(--paper-2); }

/* Newsletter band, quiz card and chat card: same deep green as the header */
.letter, .quiz-card, .chat { background: #102e27; }
