/* =============================================================================
   How's Your Fire? / Aimee R. White
   Design system: tokens → base → layout → components → sections → pages
   ========================================================================== */

/* ---------------------------------------------------------------- fonts: Google Fonts, linked in each page head */

/* ---------------------------------------------------------------- tokens */
:root {
  /* palette, from the cover */
  --cream: #F4EBDD;
  --cream-2: #EADCC6;
  --paper: #F7F0E5;
  --charcoal: #211C1C;
  --brown: #30231F;
  --amber: #D99A32;
  --amber-hi: #F0B24A;
  --orange: #B85C32;
  --rust: #8C4938;
  --rose: #9A6868;
  --purple: #6E596F;
  --navy: #171B27;

  /* roles */
  --ink: #2A2120;            /* body text on paper */
  --ink-soft: #5C4D49;       /* secondary text on paper (AA on cream) */
  --on-dark: #F4EBDD;
  --on-dark-soft: rgba(244, 235, 221, .74);
  --line-paper: rgba(48, 35, 31, .16);
  --line-dark: rgba(244, 235, 221, .16);
  --accent-on-paper: #9A4A26; /* burnt orange darkened for AA text on cream */

  /* type */
  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Kaushan Script", "Brush Script MT", cursive;

  --fs-display: clamp(2.75rem, 1.55rem + 4.6vw, 6.5rem);   /* 44 → 104 */
  --fs-h1: clamp(2.125rem, 1.45rem + 2.9vw, 4.5rem);        /* 34 → 72 */
  --fs-h2: clamp(1.5rem, 1.1rem + 1.7vw, 3rem);             /* 24 → 48 */
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.875rem);        /* 22 → 30 */
  --fs-lede: clamp(1.1875rem, 1.05rem + .55vw, 1.5rem);     /* 19 → 24 */
  --fs-body: clamp(1rem, .96rem + .18vw, 1.125rem);         /* 16 → 18 */
  --fs-small: .9375rem;
  --fs-label: clamp(.75rem, .72rem + .1vw, .8125rem);       /* 12 → 13 */

  /* space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 2.4rem + 7vw, 10rem);              /* 64 → 160 */
  --w-wide: 1400px;
  --w: 1200px;
  --w-mid: 960px;
  --w-text: 40rem;

  /* shape + depth */
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-soft: 0 1px 2px rgba(33, 28, 28, .08), 0 12px 32px -12px rgba(33, 28, 28, .22);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em, i { font-style: italic; }
::selection { background: var(--amber); color: var(--charcoal); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--amber); color: var(--charcoal); padding: .75rem 1.1rem; font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), var(--w-wide)); }
.wrap--mid { width: min(100% - 2 * var(--gutter), var(--w-mid)); }
.wrap--text { width: min(100% - 2 * var(--gutter), var(--w-text)); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .65); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2rem); }

/* surfaces */
.paper { background: var(--paper); color: var(--ink); position: relative; isolation: isolate; }
.paper::before { /* faint paper fibre */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("../img/paper-grain.png");
}
.paper--warm { background: radial-gradient(120% 70% at 0% 0%, #F7E3C4 0%, transparent 55%), var(--paper); }
.dark { color: var(--on-dark); position: relative; isolation: isolate; }
.dark--twilight { background: linear-gradient(180deg, #14141f 0%, #221d2f 45%, #3a2a3d 100%); }
.dark--evening { background: linear-gradient(180deg, #171B27 0%, #141823 60%, #171B27 100%); }
.dark--firelight { background: radial-gradient(90% 60% at 50% 100%, rgba(184, 92, 50, .32) 0%, transparent 70%), linear-gradient(180deg, #211C1C 0%, #30231F 100%); }
.dark--night { background: linear-gradient(180deg, #30231F 0%, #211C1C 100%); }
.dark--charcoal { background: #161313; }

/* ---------------------------------------------------------------- type helpers */
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.015em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.1; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; color: var(--accent-on-paper); }
.dark .display em, .dark .h1 em, .dark .h2 em { color: var(--amber-hi); }
.lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.45; font-weight: 400; }
.measure { max-width: var(--w-text); }
.muted { color: var(--ink-soft); }
.dark .muted { color: var(--on-dark-soft); }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: 0; color: var(--amber); line-height: 1.1; }
.paper .hand { color: var(--orange); }

.label {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-on-paper);
  margin: 0 0 1.5rem;
}
.dark .label { color: var(--amber); }
.label::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; flex: none; }
.label--plain::before { display: none; }

/* the cover's divider: line, diamond, line */
.divider { display: flex; align-items: center; gap: .9rem; color: var(--amber); margin: 1.75rem 0; max-width: 18rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .7; }
.divider span { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }
.divider--center { margin-inline: auto; }

/* placeholders: clearly not real content */
.ph {
  display: inline-block; font-family: var(--f-ui); font-style: normal; font-size: .8125rem; font-weight: 600; letter-spacing: .06em;
  color: #7A3E1E; background: rgba(217, 154, 50, .16); border: 1px dashed rgba(184, 92, 50, .55);
  padding: .2em .6em; border-radius: 2px; line-height: 1.5; vertical-align: middle; text-transform: none;
}
.dark .ph { color: #F3C27A; background: rgba(217, 154, 50, .12); border-color: rgba(217, 154, 50, .5); }
.ph-block {
  display: grid; place-items: center; text-align: center; gap: .75rem; padding: 2rem;
  border: 1px dashed rgba(184, 92, 50, .5); background: repeating-linear-gradient(135deg, rgba(217,154,50,.06) 0 12px, transparent 12px 24px);
  color: var(--ink-soft); border-radius: var(--radius);
}
.dark .ph-block { border-color: rgba(217, 154, 50, .4); color: var(--on-dark-soft); }

/* ---------------------------------------------------------------- icons */
.icon { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: var(--h); padding: 0 1.75rem; border-radius: var(--radius);
  font-family: var(--f-ui); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
}
.btn .icon { width: 1.15rem; height: 1.15rem; transition: transform .5s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, #E2A443 0%, var(--amber) 40%, #C86E36 100%); color: #1E1513; box-shadow: 0 10px 30px -14px rgba(217, 154, 50, .8); }
.btn--primary::after { /* soft light passing across on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px 60px at var(--mx, 50%) 50%, rgba(255, 236, 200, .55), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.btn--primary:hover { box-shadow: 0 16px 36px -14px rgba(217, 154, 50, .95); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(244, 235, 221, .5); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(244, 235, 221, .08); }
.paper .btn--ghost, .btn--ink { color: var(--ink); border-color: rgba(48, 35, 31, .45); background: transparent; }
.paper .btn--ghost:hover, .btn--ink:hover { border-color: var(--ink); background: rgba(48, 35, 31, .05); }
.btn--sm { --h: 44px; padding: 0 1.15rem; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding-block: .4rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform .5s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: .5rem; }
.field label, .field .field-label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.input {
  width: 100%; min-height: 54px; padding: .85rem 1rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(48, 35, 31, .3); color: var(--ink);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
textarea.input { min-height: 160px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: #7d6d68; }
.input:hover { border-color: rgba(48, 35, 31, .55); }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217, 154, 50, .3); background: #fff; }
.dark .input { background: rgba(244, 235, 221, .06); border-color: rgba(244, 235, 221, .3); color: var(--cream); }
.dark .input::placeholder { color: rgba(244, 235, 221, .6); }
.dark .input:focus { background: rgba(244, 235, 221, .1); border-color: var(--amber); }
.field-error { font-size: .875rem; color: #A8401E; min-height: 1.2em; }
.dark .field-error { color: #F3A77A; }
.input[aria-invalid="true"] { border-color: #A8401E; }
.form-note { font-size: .875rem; }
.form-done { display: none; }
.is-sent .form-body { display: none; }
.is-sent .form-done { display: block; }

.signup { display: flex; gap: .75rem; flex-wrap: wrap; }
.signup .input { flex: 1 1 16rem; }
.signup .btn { flex: 0 0 auto; }

/* ---------------------------------------------------------------- navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  color: var(--on-dark);
  transition: background-color .6s var(--ease), border-color .6s, backdrop-filter .6s, transform .6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(23, 22, 32, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(244, 235, 221, .1); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.brand .icon { width: 1.6rem; height: 1.6rem; color: var(--amber); stroke-width: 1.3; }
/* a picture logo (WordPress: Site Content > Settings or Customize > Site Identity) in place of the name */
.brand__logo { display: block; width: auto; height: 2.75rem; max-width: min(17rem, 48vw); object-fit: contain; object-position: left center; }
.footer__logo { display: block; width: auto; height: auto; max-height: 5.5rem; max-width: min(19rem, 100%); object-fit: contain; object-position: left center; }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding-block: .5rem; opacity: .86; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: var(--radius); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), opacity .3s; }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 28px; right: 18px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); right: 12px; }

.menu {
  position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem; color: var(--on-dark); overflow-y: auto;
  background: radial-gradient(80% 50% at 50% 110%, rgba(184, 92, 50, .35), transparent 70%), linear-gradient(180deg, #161522, #221b25);
}
.menu-open .menu { display: flex; }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; border-bottom: 1px solid var(--line-dark); }
.menu li a { display: flex; align-items: baseline; gap: 1rem; padding: .8rem 0; text-decoration: none; font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1; }
.menu li a::before { content: "0" counter(m); font-family: var(--f-ui); font-size: .75rem; letter-spacing: .14em; color: var(--amber); }
.menu li a[aria-current="page"] { color: var(--amber-hi); font-style: italic; }
.menu__foot { margin-top: 2rem; display: grid; gap: 1.25rem; }
.menu__foot .hand { font-size: 1.6rem; }

.nav__links a, .nav__cta .btn { white-space: nowrap; }
@media (max-width: 1440px) { .nav__inner { gap: 1.5rem; } .nav__links { gap: clamp(1rem, 1.5vw, 1.5rem); } } /* laptops: a little tighter, so seven links, the button and the cart fit */
@media (max-width: 1280px) { /* the full menu only fits on wide screens; below that it folds into the menu button */
  .nav__links, .nav__cta .btn { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 980px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__cta .btn { display: none; }
  .menu-btn { display: block; }
  .brand { font-size: 1.05rem; }
  .brand__logo { height: 2.25rem; max-width: 52vw; }
}
.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- reveal hooks (JS adds .fx) */
.fx [data-reveal] { opacity: 0; transform: translateY(28px); }
.fx [data-reveal="fade"] { transform: none; }
.fx [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.fx .is-in[data-reveal], .fx [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); }

/* =============================================================================
   HOME
   ========================================================================== */

/* ---------------------------------------------------------------- 01 opening: hero + pull up a chair */
.opening { position: relative; background: var(--navy); color: var(--on-dark); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.stage__sky { position: absolute; inset: 0; background: linear-gradient(180deg, #12131d 0%, #1d1a2b 38%, #33263a 72%, #4a2f3a 100%); }
.stage__stars { position: absolute; inset: 0 45% 30% 0; opacity: .7; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 28% 9%, #fff6 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 44% 26%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff7 50%, transparent 51%),
  radial-gradient(1px 1px at 78% 31%, #fff5 50%, transparent 51%), radial-gradient(1.2px 1.2px at 8% 44%, #fff6 50%, transparent 51%),
  radial-gradient(1px 1px at 35% 52%, #fff4 50%, transparent 51%), radial-gradient(1px 1px at 88% 8%, #fff7 50%, transparent 51%),
  radial-gradient(1px 1px at 55% 40%, #fff5 50%, transparent 51%), radial-gradient(1.3px 1.3px at 20% 66%, #fff4 50%, transparent 51%); }
.stage__still { position: absolute; top: 0; right: 0; width: 56%; height: 100%; }
.stage__still img { width: 100%; height: 100%; object-fit: cover; object-position: 47% 72%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); transform-origin: 0 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.stage.gl-on canvas { opacity: 1; }
.stage.gl-on .stage__still, .stage.gl-on .stage__stars { opacity: 0; transition: opacity 1.4s var(--ease); }
.stage__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 18, 28, .55) 0%, transparent 22%, transparent 70%, rgba(18, 18, 28, .65) 100%); }
.stage__hscrim { position: absolute; inset: 0; pointer-events: none; display: none; }
.stage__dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(14, 12, 18, .78), rgba(14, 12, 18, .35) 75%); }
.stage__fade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #14141f; }
.stage__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("../img/film-grain.png"); }

.hero { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero__inner { width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; padding: calc(var(--nav-h) + 2rem) 0 5rem; }
.hero__copy { max-width: 35rem; }
.hero__title { margin: 0 0 1.5rem; width: clamp(13rem, min(26vw, 44vh), 25rem); margin-left: -.6rem; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .35)); }
.hero__title img { width: 100%; height: auto; }
.hero__sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.3; color: var(--cream); margin: 0 0 1.25rem; max-width: 30rem; }
.hero__body { color: var(--on-dark-soft); max-width: 27rem; margin-bottom: 2.25rem; }
.hero__byline { font-size: var(--fs-label); letter-spacing: .32em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 0 0 1.75rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-soft); text-decoration: none; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); position: relative; overflow: hidden; }
.fx .scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream); animation: drip 2.6s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

.invite { position: relative; z-index: 2; }
.invite__frame { min-height: 100vh; min-height: 100svh; display: grid; place-items: start center; padding-top: calc(var(--nav-h) + 9vh) !important; text-align: center; padding: var(--nav-h) var(--gutter) 3rem; }
.invite__title { font-size: clamp(3rem, 1.5rem + 6.5vw, 8rem); font-weight: 500; line-height: .95; letter-spacing: -.02em; text-shadow: 0 4px 40px rgba(0, 0, 0, .55); }
.invite__title em { color: var(--amber-hi); font-weight: 400; }
.invite__lines { display: grid; gap: clamp(2.5rem, 10vh, 6rem); padding-bottom: 30vh; }
.invite__line { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; text-align: center; font-family: var(--f-display); font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.9rem); line-height: 1.25; text-shadow: 0 2px 30px rgba(10, 8, 14, .9), 0 0 2px rgba(10, 8, 14, .6); }
.invite__line em { color: var(--amber-hi); }
.invite__line .hand { display: block; font-size: 1.1em; margin-top: .6rem; }

/* ---------------------------------------------------------------- 03 the book */
.book { overflow: hidden; }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.book__object { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.book__object::before { /* the warm light the book sits in */
  content: ""; position: absolute; inset: 8% 5% 0; background: radial-gradient(50% 45% at 50% 60%, rgba(217, 154, 50, .28), transparent 70%); filter: blur(10px); }
.book__still { position: relative; width: min(66%, 340px); transform: perspective(1400px) rotateY(-18deg) rotateX(4deg); transform-style: preserve-3d; box-shadow: 30px 40px 60px -20px rgba(0, 0, 0, .75); border-radius: 2px 5px 5px 2px; }
.book__still::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.08) 60%, transparent); z-index: 1; }
.book__still img { border-radius: 2px 5px 5px 2px; }
.book__object canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.book__object.gl-on canvas { opacity: 1; }
.book__object.gl-on .book__still { opacity: 0; }
.book__hint { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: none; gap: .5rem; align-items: center; font-size: .6875rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-soft); background: none; border: 0; padding: .75rem; white-space: nowrap; }
.book__object.gl-on .book__hint { display: inline-flex; }
.book__hint .icon { width: 1rem; height: 1rem; }
.book__text .h1 { margin-bottom: .5rem; }
.book__subtitle { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lede); color: var(--amber-hi); line-height: 1.35; margin-bottom: 1.5rem; }
.book__text p { color: var(--on-dark-soft); }
.book__text .btn-row { margin-top: 2.25rem; }
.book__meta { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; color: var(--on-dark-soft); }

/* ---------------------------------------------------------------- 04 themes */
.themes__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: clamp(3rem, 7vw, 6rem); align-items: end; }
.themes__head > :first-child { grid-column: 1 / span 7; }
.themes__head > :last-child { grid-column: 9 / span 4; }
.themes__layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.theme-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper); }
.theme { border-bottom: 1px solid var(--line-paper); padding: clamp(1.75rem, 4vw, 3rem) 0; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; transition: opacity .6s var(--ease); }
.theme__num { font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--accent-on-paper); padding-top: .9em; }
.theme__word { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 1.6rem + 4vw, 5.5rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 .9rem; }
.theme__word em { font-weight: 400; text-transform: none; font-size: .6em; letter-spacing: 0; color: var(--accent-on-paper); }
.theme__text { grid-column: 2; max-width: 30rem; color: var(--ink-soft); font-size: var(--fs-body); }
.theme__img { grid-column: 2; margin-top: 1.5rem; display: none; }
.theme__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.fx .theme-list.is-active .theme { opacity: .35; }
.fx .theme-list.is-active .theme.is-current { opacity: 1; }
.themes__media { position: sticky; top: calc(var(--nav-h) + 4vh); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--brown); box-shadow: var(--shadow-deep); }
.themes__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.themes__media figure.is-current { opacity: 1; }
.themes__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s var(--ease-out); }
.themes__media figure.is-current img { transform: scale(1); }
.themes__media figcaption { position: absolute; left: 1.25rem; bottom: 1.1rem; right: 1.25rem; font-family: var(--f-hand); color: var(--cream); font-size: 1.5rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.themes__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23, 18, 20, .55)); pointer-events: none; }

/* ---------------------------------------------------------------- 05 maybe this book is for you */
.foryou { text-align: center; overflow: hidden; }
.foryou__sky { position: absolute; inset: 0; z-index: -1; opacity: .55; background-image:
  radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 70%, #fffb 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 36% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 48% 84%, #fff9 50%, transparent 51%),
  radial-gradient(1px 1px at 61% 30%, #fffc 50%, transparent 51%), radial-gradient(1.2px 1.2px at 73% 62%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 86% 18%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 92% 78%, #fff8 50%, transparent 51%),
  radial-gradient(1px 1px at 4% 90%, #fff9 50%, transparent 51%), radial-gradient(1.3px 1.3px at 55% 6%, #fff 50%, transparent 51%); background-size: 640px 640px; }
.foryou .h1 { margin-bottom: clamp(3rem, 8vw, 6rem); }
.foryou__list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(1.75rem, 5vh, 3rem); max-width: 50rem; }
.foryou__list li { font-family: var(--f-display); font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.9rem); line-height: 1.2; color: var(--cream); }
.fx .foryou__list li { opacity: .22; transition: opacity .9s var(--ease); }
.fx .foryou__list li.is-lit { opacity: 1; }
.foryou__list li.is-last { font-style: italic; color: var(--amber-hi); }
.foryou__end { margin-top: clamp(3.5rem, 9vw, 7rem); display: grid; justify-items: center; gap: 1.25rem; }
.foryou__end .hand { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
.foryou__end .icon { width: 3.5rem; height: 3.5rem; color: var(--amber); stroke-width: 1; }

/* ---------------------------------------------------------------- 06 meet aimee */
.meet__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.portrait { position: relative; }
.portrait__frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: linear-gradient(160deg, #e9d9c0, #d8c1a2); }
.portrait__frame .ph-block { position: absolute; inset: 0; border-radius: inherit; border-width: 1px; }
.portrait__frame .icon { width: 4rem; height: 4rem; color: var(--rust); stroke-width: 1; }
.portrait__note { position: absolute; right: -1rem; bottom: -1.5rem; transform: rotate(-4deg); background: var(--paper); padding: .9rem 1.2rem; box-shadow: var(--shadow-soft); font-family: var(--f-hand); font-size: 1.35rem; color: var(--orange); border-radius: 2px; }
.meet__name { font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); margin: 1rem 0 2rem; }
.meet__roles { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.35; margin-bottom: 1.75rem; }
.meet__roles span { white-space: nowrap; }
.meet__roles span + span::before { content: " · "; color: var(--amber); white-space: normal; }
.meet__text p { color: var(--ink-soft); max-width: 34rem; }
.meet__text .btn-row { margin-top: 2rem; }

/* ---------------------------------------------------------------- 07 around the fire */
.around__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(3rem, 7vw, 5rem); }
.around__head p { color: var(--on-dark-soft); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.quote { margin: 0; padding: 2.25rem 0 0; border-top: 1px solid var(--line-dark); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.1em; left: -.05em; font-family: var(--f-display); font-size: 6rem; line-height: 1; color: var(--amber); opacity: .5; }
.quote blockquote { margin: 1.25rem 0 1.5rem; font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; }
.quote figcaption { font-size: .875rem; color: var(--on-dark-soft); display: grid; gap: .3rem; }

.question { margin-top: clamp(4rem, 10vw, 8rem); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 5rem); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 120%, rgba(217, 154, 50, .18), transparent 70%), rgba(23, 18, 18, .35); }
.question .h1 { margin-bottom: 1rem; }
.question__ask { color: var(--on-dark-soft); margin-bottom: 2.5rem; }
.question__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 44rem; margin: 0 auto; }
.question__opt { min-height: 64px; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid rgba(244, 235, 221, .28); background: rgba(244, 235, 221, .03);
  font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; text-align: left; display: flex; align-items: center; gap: .9rem; color: var(--cream);
  transition: border-color .4s, background-color .4s, transform .5s var(--ease-out); }
.question__opt .icon { width: 1.25rem; height: 1.25rem; color: var(--amber); }
.question__opt:hover { border-color: var(--amber); background: rgba(217, 154, 50, .08); transform: translateY(-2px); }
.question__opt[aria-pressed="true"] { border-color: var(--amber); background: rgba(217, 154, 50, .16); }
.question__answer { max-width: 38rem; margin: 2.75rem auto 0; min-height: 1px; }
.question__answer p { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.5; }
.question__answer .btn-row { justify-content: center; margin-top: 1.75rem; }
.question__answer[hidden] { display: none; }

/* ---------------------------------------------------------------- 08 journal */
.journal-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.journal-head p { max-width: 30rem; color: var(--ink-soft); margin: 1rem 0 0; }
.cats { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.cat { font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: .55rem .9rem; border: 1px solid var(--line-paper); border-radius: 2px; background: transparent; color: var(--ink-soft); transition: all .3s; min-height: 40px; }
.cat:hover, .cat[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.mag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.entry { position: relative; display: grid; align-content: start; gap: .9rem; }
.entry--feature { grid-column: 1 / span 7; grid-row: span 2; }
.entry--side { grid-column: 8 / span 5; }
.entry--third { grid-column: span 4; }
.entry--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.entry__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--brown); aspect-ratio: 3 / 2; }
.entry--feature .entry__img { aspect-ratio: 4 / 3; }
.entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.entry:hover .entry__img img { transform: scale(1.04); }
.entry__img .ph { position: absolute; left: .9rem; top: .9rem; background: rgba(247, 240, 229, .92); }
.entry__meta { display: flex; gap: 1rem; font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-on-paper); }
.entry__meta time { color: var(--ink-soft); }
.entry__title { font-size: var(--fs-h3); line-height: 1.15; }
.entry--feature .entry__title { font-size: var(--fs-h2); }
.entry__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.entry:hover .entry__title a { background-size: 100% 1px; }
.entry__title a::after { content: ""; position: absolute; inset: 0; }
.entry p { color: var(--ink-soft); margin: 0; }
.entry[hidden] { display: none; }

/* ---------------------------------------------------------------- 09 events */
.events__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.events__kinds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--on-dark-soft); font-size: .9375rem; }
.events__kinds li { display: inline-flex; align-items: center; gap: .55rem; }
.events__kinds li::before { content: ""; width: 5px; height: 5px; background: var(--amber); transform: rotate(45deg); }
.ev-table { border-top: 1px solid var(--line-dark); }
.ev-head, .ev-row { display: grid; grid-template-columns: 9rem minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.ev-head { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-soft); padding: .9rem 0; }
.ev-empty { padding: clamp(2.5rem, 7vw, 4.5rem) 0; text-align: center; border-bottom: 1px solid var(--line-dark); }
.ev-empty .h2 { margin-bottom: 1rem; }
.ev-empty p { color: var(--on-dark-soft); max-width: 32rem; margin: 0 auto 1.75rem; }
.ev-date { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.ev-title { font-family: var(--f-display); font-size: 1.5rem; }

/* ---------------------------------------------------------------- 10 newsletter */
.stay { text-align: center; overflow: hidden; }
.stay__card { position: relative; max-width: 52rem; margin: 0 auto; }
.stay__chair { width: clamp(4.5rem, 10vw, 6.5rem); height: auto; margin: 0 auto 1.5rem; color: var(--rust); stroke-width: 1; }
.stay .hand { font-size: clamp(3.4rem, 2rem + 6vw, 7rem); color: var(--orange); margin-bottom: 1rem; }
.stay__copy { font-family: var(--f-display); font-size: var(--fs-lede); color: var(--ink-soft); margin-bottom: 2.25rem; }
.stay form { max-width: 34rem; margin: 0 auto; }
.stay .form-note { color: var(--ink-soft); margin-top: 1rem; }

/* ---------------------------------------------------------------- 11+12 night: tend the fire, room for you */
.night { position: relative; color: var(--on-dark); background: #0f0f17; }
.night__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.night__still { position: absolute; inset: 0; }
.night__still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; filter: brightness(.55) saturate(.8) hue-rotate(-8deg); }
.night__glow { position: absolute; left: 47%; top: 72%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(240, 160, 70, .45), rgba(217, 120, 50, .12) 45%, transparent 70%); mix-blend-mode: screen; opacity: calc(.35 + var(--tend, 0) * .65); transition: opacity 1.2s var(--ease); }
.night__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.night__stage.gl-on canvas { opacity: 1; }
.night__stage.gl-on .night__still, .night__stage.gl-on .night__glow { opacity: 0; }
.night__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 70%, transparent 40%, rgba(10, 10, 16, .75) 100%), linear-gradient(180deg, rgba(15,15,23,.85) 0%, transparent 35%); }
.night__content { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.tend { min-height: 100vh; min-height: 100svh; display: grid; align-content: start; justify-items: center; text-align: center; padding: calc(var(--nav-h) + 8vh) var(--gutter) 4rem; }
.tend .label { margin-bottom: 1rem; }
.tend__title { font-size: var(--fs-h1); margin-bottom: 1rem; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.tend__hint { color: var(--on-dark-soft); max-width: 26rem; font-size: var(--fs-small); }
.tend__btn { margin-top: 1.5rem; }
.tend__btn .icon { width: 1.25rem; height: 1.25rem; }
.tend__reveal { margin-top: 2rem; display: grid; justify-items: center; gap: .9rem; }
.tend__reveal[hidden] { display: none; }
.tend__reveal .h2 { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); text-shadow: 0 2px 30px rgba(0,0,0,.7); }
.tend__reveal p { font-family: var(--f-hand); color: var(--amber-hi); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.fire-hit { position: absolute; left: 47%; top: 78%; width: min(36vw, 320px); height: min(30vw, 260px); transform: translate(-50%, -50%); border-radius: 50%; background: transparent; border: 0; z-index: 3; cursor: pointer; }
.fire-hit:focus-visible { outline-offset: -8px; }
.room { min-height: 120vh; min-height: 120svh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 20vh var(--gutter) 22vh; }
.room .display { margin-bottom: 1.5rem; text-shadow: 0 4px 40px rgba(0,0,0,.7); }
.room__text { font-family: var(--f-display); font-style: italic; font-size: var(--fs-lede); color: var(--cream); margin-bottom: 2.5rem; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.room .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.footer { background: #141111; color: var(--on-dark); padding: clamp(4rem, 8vw, 7rem) 0 2rem; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-dark); }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__mark { display: flex; align-items: flex-end; gap: .3rem; color: var(--amber); height: 54px; }
.footer__mark .icon { width: 48px; height: 48px; stroke-width: 1.1; }
.footer__mark .flame { width: 22px; height: 30px; margin-bottom: 4px; }
.footer__name { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .2em; text-transform: uppercase; }
.footer__book { font-family: var(--f-hand); color: var(--amber); font-size: 1.6rem; }
.footer__tag { color: var(--on-dark-soft); font-family: var(--f-display); font-style: italic; font-size: 1.2rem; max-width: 22rem; }
.footer h2 { font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer ul a { text-decoration: none; color: var(--on-dark-soft); transition: color .3s; }
.footer ul a:hover { color: var(--cream); }
.footer__news p { color: var(--on-dark-soft); font-size: var(--fs-small); }
.footer__news .signup .btn { --h: 54px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .8125rem; color: rgba(244, 235, 221, .55); }
.footer__bottom a { color: inherit; }

/* flame (CSS, used small) */
.flame { position: relative; display: inline-block; width: 18px; height: 26px; }
.flame i { position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; transform: translateX(-50%); border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 78%, #FFE3A3 0%, #F0B24A 35%, #B85C32 75%, transparent 76%); filter: blur(.3px); transform-origin: 50% 100%; }
.flame i:nth-child(2) { width: 60%; height: 64%; background: radial-gradient(circle at 50% 80%, #fff6dc, #F7C66A 60%, transparent 62%); }
.fx .flame i { animation: flick 2.4s ease-in-out infinite alternate; }
.fx .flame i:nth-child(2) { animation-duration: 1.7s; animation-delay: -.6s; }
@keyframes flick { 0% { transform: translateX(-50%) scale(1, 1) skewX(0); } 35% { transform: translateX(-50%) scale(.94, 1.06) skewX(2deg); } 70% { transform: translateX(-50%) scale(1.04, .95) skewX(-2deg); } 100% { transform: translateX(-50%) scale(.97, 1.03) skewX(1deg); } }

/* ---------------------------------------------------------------- easter eggs */
.egg { position: absolute; width: 30px; height: 30px; padding: 4px; border: 0; background: transparent; color: var(--amber); opacity: .28; border-radius: 50%; transition: opacity .4s, transform .5s var(--ease-out); z-index: 4; }
.paper .egg { color: var(--rust); opacity: .22; }
.egg:hover, .egg:focus-visible { opacity: .9; transform: scale(1.15); }
.egg .icon { width: 100%; height: 100%; stroke-width: 1.5; }
.egg.is-found { opacity: .7; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 150; transform: translate(-50%, 140%); width: min(100% - 2rem, 26rem);
  background: rgba(28, 23, 28, .94); color: var(--cream); border: 1px solid rgba(217, 154, 50, .35); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem 1.1rem 1.1rem;
  display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow-deep); transition: transform .8s var(--ease-out), visibility 0s .8s; visibility: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .8s var(--ease-out); }
.toast .icon { width: 2.5rem; height: 2.5rem; color: var(--amber); stroke-width: 1.1; }
.toast strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.toast span { font-size: .8125rem; color: var(--on-dark-soft); }

/* =============================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(4rem, 12vw, 9rem)) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; color: var(--on-dark); }
.page-hero--twilight { background: linear-gradient(180deg, #12131d 0%, #231d30 55%, #3a2a3d 100%); }
.page-hero--fire { background: radial-gradient(80% 60% at 70% 110%, rgba(184, 92, 50, .38), transparent 70%), linear-gradient(180deg, #171B27 0%, #2a1f22 100%); }
.page-hero__img { position: absolute; inset: 0; z-index: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,28,.92) 0%, rgba(18,18,28,.6) 55%, rgba(18,18,28,.25) 100%), linear-gradient(0deg, rgba(18,18,28,.8), transparent 50%); }
.page-hero .wrap, .page-hero .wrap--wide { position: relative; z-index: 1; }
.page-hero .display { max-width: 15ch; }
.page-hero .lede { color: var(--on-dark-soft); max-width: 36rem; margin-top: 1.75rem; }
.page-hero .hand { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin-bottom: .75rem; }

.prose { font-size: var(--fs-body); }
.prose p { color: var(--ink-soft); }
.dark .prose p { color: var(--on-dark-soft); }
.prose .lede, .prose p.lede { color: var(--ink); }
.dark .prose p.lede { color: var(--cream); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split__aside { position: sticky; top: calc(var(--nav-h) + 2rem); }

.pullquote { margin: clamp(3rem, 7vw, 5rem) 0; padding: 0; text-align: center; }
.pullquote blockquote { margin: 0 auto; max-width: 46rem; font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3.25rem); line-height: 1.2; font-style: italic; }
.pullquote figcaption { margin-top: 1.25rem; font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* about: chapters */
.story { counter-reset: ch; }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line-paper); counter-increment: ch; }
.chapter__head { position: relative; }
.chapter__head::before { content: "0" counter(ch); display: block; font-family: var(--f-display); font-style: italic; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; color: var(--amber); opacity: .65; margin-bottom: .5rem; }
.chapter__head .h2 { text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.5rem); }
.chapter__body { display: grid; gap: 1.5rem; align-content: start; }
.chapter__body .ph-block { min-height: 9rem; }
.chapter__media { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
.chapter__media .ph-block { aspect-ratio: 4 / 3; min-height: 0; }

/* book page */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); border-top: 1px solid var(--line-paper); }
.facts div { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line-paper); }
.facts dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.facts dd { margin: 0; font-family: var(--f-display); font-size: 1.35rem; }
.excerpt { background: #FBF6EE; border: 1px solid var(--line-paper); border-radius: var(--radius); padding: clamp(2rem, 6vw, 5rem); box-shadow: var(--shadow-soft); position: relative; }
.excerpt::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-paper); pointer-events: none; }
.excerpt .ph-block { min-height: 16rem; }

.retailers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.retailer { display: grid; gap: .5rem; padding: 1.5rem; border: 1px dashed rgba(184, 92, 50, .5); border-radius: var(--radius); }
.retailer strong { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); }
.contact-form { display: grid; gap: 1.5rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.reasons { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.reasons > div { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; }
.reasons .icon { width: 2rem; height: 2rem; color: var(--rust); stroke-width: 1.1; }
.reasons h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.reasons p { color: var(--ink-soft); font-size: var(--fs-small); }

/* future */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.shelf__item { display: grid; gap: 1rem; }
.shelf__cover { aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; display: grid; place-items: center; text-align: center; padding: 1.5rem; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2b2338, #171B27); color: var(--on-dark-soft); box-shadow: var(--shadow-deep); }
.shelf__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8%; background: linear-gradient(90deg, rgba(0,0,0,.4), transparent); }
.shelf__cover--now { background: none; padding: 0; }
.shelf__cover--now img { width: 100%; height: 100%; object-fit: cover; }
.shelf__cover .icon { width: 3rem; height: 3rem; color: var(--amber); stroke-width: 1; margin: 0 auto 1rem; }
.shelf__item h3 { font-size: 1.6rem; }
.shelf__item p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter) 3rem; }
.lost .icon { width: 6rem; height: 6rem; margin: 0 auto 2rem; color: var(--amber); stroke-width: .9; }
.lost p { color: var(--on-dark-soft); max-width: 28rem; margin: 1rem auto 2.25rem; }
.lost .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .book__grid, .meet__grid, .split, .split--even, .contact-grid, .events__intro { grid-template-columns: 1fr; }
  .book__object { max-width: 30rem; width: 100%; margin-inline: auto; aspect-ratio: 1 / 1; }
  .themes__head > :first-child, .themes__head > :last-child { grid-column: 1 / -1; }
  .themes__layout { grid-template-columns: 1fr; }
  .themes__media { display: none; }
  .theme__img { display: block; }
  .fx .theme-list.is-active .theme { opacity: 1; }
  .quotes { grid-template-columns: 1fr; }
  .mag { grid-template-columns: 1fr 1fr; }
  .entry--feature, .entry--wide { grid-column: 1 / -1; grid-row: auto; }
  .entry--side, .entry--third { grid-column: span 1; }
  .entry--wide { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .chapter { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 26rem; }
  .ev-head { display: none; }
  .ev-row { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 760px), (max-aspect-ratio: 21/20) {
  .stage__still { width: 100%; }
  .stage__still img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); object-position: 47% 100%; }
  .stage__stars { inset: 0 0 50% 0; }
  .hero { align-items: flex-start; }
  .hero__inner { padding-top: calc(var(--nav-h) + 1.5rem); text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__title { width: min(64vw, 22rem); margin: 0 auto 1.25rem; }
  .hero__body { margin-inline: auto; font-size: .9375rem; }
  .hero__sub { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .scroll-cue { display: none; }
  .stage__hscrim { display: block; background: linear-gradient(180deg, rgba(16,15,24,.35) 0%, rgba(16,15,24,.1) 30%, rgba(16,15,24,.55) 50%, rgba(16,15,24,.55) 70%, rgba(16,15,24,.85) 100%); }
  .hero__sub, .hero__body { text-shadow: 0 1px 14px rgba(10, 8, 14, .9); }
  .hero__body { color: var(--cream); }
}
@media (max-width: 760px) {
  .question__opts { grid-template-columns: 1fr; }
  .mag { grid-template-columns: 1fr; }
  .entry--side, .entry--third { grid-column: 1 / -1; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; max-width: 22rem; }
  .portrait__note { right: .5rem; }
  .btn { --h: 50px; padding: 0 1.35rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .signup .btn { flex: 1 1 100%; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero__body { display: none; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fx [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .fx .foryou__list li { opacity: 1; }
  .invite__lines { background: linear-gradient(180deg, transparent, rgba(14, 12, 18, .72) 12%); }
}

@media print {
  .nav, .menu, .stage canvas, .night__stage, .egg, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
.flip { transform: scaleX(-1); }
.night__content { pointer-events: none; }
.night__content a, .night__content button { pointer-events: auto; }

/* fire sound toggle (every page) */
.sound { position: fixed; left: 1rem; bottom: 1rem; z-index: 160; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .75rem;
  border: 1px solid rgba(217, 154, 50, .45); border-radius: 999px; background: rgba(23, 20, 22, .72); color: var(--cream); backdrop-filter: blur(8px);
  font: 600 .6875rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s; }
.sound[hidden] { display: none; }
.sound:hover, .sound:focus-visible { border-color: var(--amber); background: rgba(23, 20, 22, .9); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: var(--amber); border-radius: 1px; transition: height .3s; }
.sound.is-on .sound__bars i { animation: sound-bar 1.1s ease-in-out infinite; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.4s; } .sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.7s; } .sound.is-on .sound__bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes sound-bar { 0%, 100% { height: 3px; } 35% { height: 12px; } 60% { height: 6px; } }
.sound.is-waiting { animation: sound-glow 2.4s ease-in-out infinite; }
@keyframes sound-glow { 50% { box-shadow: 0 0 0 6px rgba(217, 154, 50, .12); border-color: var(--amber); } }
@media (prefers-reduced-motion: reduce) { .sound.is-on .sound__bars i { animation: none; height: 8px; } .sound.is-waiting { animation: none; } }

/* ---------------------------------------------------------------- the book in CSS 3D (opened from disk, see js/cssbook.js) */
.cbook { position: absolute; inset: 0; display: grid; place-items: center; cursor: grab; z-index: 1; }
.cbook:active { cursor: grabbing; }
.cbook__obj { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; will-change: transform; }
.cbook__f { position: absolute; display: block; backface-visibility: hidden; max-width: none; }
.cbook__front, .cbook__back { inset: 0; width: 100%; height: 100%; object-fit: fill; border-radius: 1px 3px 3px 1px; }
.cbook__front { transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 6px rgba(0, 0, 0, .25); }
.cbook__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.cbook__spine, .cbook__edge { top: 0; left: calc(50% - var(--d) / 2); width: var(--d); height: 100%; object-fit: fill; }
.cbook__spine { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.cbook__edge { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.cbook__top, .cbook__bottom { left: 0; top: calc(50% - var(--d) / 2); width: 100%; height: var(--d); }
.cbook__top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.cbook__bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.cbook__edge { background: #e9dcc5 repeating-linear-gradient(90deg, rgba(120, 95, 70, .14) 0 1px, transparent 1px 3px); }
.cbook__top, .cbook__bottom { background: #e3d5bc repeating-linear-gradient(0deg, rgba(120, 95, 70, .14) 0 1px, transparent 1px 3px); }
.cbook__shadow { position: absolute; width: calc(var(--w) * 2.2); height: calc(var(--w) * .45); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, .22) 50%, transparent); pointer-events: none; }
.cbook__veil { background: #000; opacity: 0; pointer-events: none; }
.cbook__front.cbook__veil { transform: translateZ(calc(var(--d) / 2 + .5px)); box-shadow: none; }
.cbook__back.cbook__veil { transform: rotateY(180deg) translateZ(calc(var(--d) / 2 + .5px)); }
.cbook__spine.cbook__veil { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2 + .5px)); }

/* ---------------------------------------------------------------- light mode (phones, tablets, slower machines: see js/app.js) */
.lite .world__grain, .lite .stage__grain { display: none; }
.lite .nav.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 22, 32, .94); }
.lite .sound { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 20, 22, .92); }
.lite [style*="mix-blend"], .lite .night__glow { mix-blend-mode: normal; }
.lite .op-hero__title { filter: none; }
.menu-open .sound { opacity: 0; pointer-events: none; }
