/* Folk & Potion — bespoke apothecary
   Type:  Fraunces (variable, with SOFT 100 + WONK 1 for wonky charm)
          IM Fell English SC + IM Fell DW Pica SC (Oxford 17th-c. small caps)
   Color: parchment cream · espresso ink · antique gold
   Feel:  herbarium book · letterpress on cotton · candlelit portal as the only dark moment
*/

:root {
  --paper:        #f3ebd8;
  --paper-2:      #ebe2cc;
  --paper-warm:   #e6dbc1;
  --vellum:       #e0d4b6;

  --ink:          #1d1610;
  --ink-soft:     #3a2c20;
  --mute:         #7a6a55;

  --gold:         #9a7838;
  --gold-warm:    #b08c45;
  --gold-soft:    rgba(154, 120, 56, 0.55);
  --gold-line:    rgba(154, 120, 56, 0.30);
  --line:         rgba(29, 22, 16, 0.16);
  --line-soft:    rgba(29, 22, 16, 0.08);

  --portal-ink:   #14100a;

  --serif:        "Fraunces", "Garamond", "Times New Roman", serif;
  --antique:      "IM Fell English SC", "IM Fell DW Pica SC", "Garamond", serif;
  --antique-pica: "IM Fell DW Pica SC", "IM Fell English SC", "Garamond", serif;

  /* Fraunces variation tunings — the bespoke knobs */
  --vf-display:    'opsz' 144, 'SOFT' 100, 'WONK' 1;
  --vf-display-it: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  --vf-text:       'opsz' 24,  'SOFT' 50,  'WONK' 0;
  --vf-text-it:    'opsz' 24,  'SOFT' 80,  'WONK' 1;
  --vf-micro:      'opsz' 9,   'SOFT' 30,  'WONK' 0;

  --max:   1180px;
  --col:   720px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  font-variation-settings: var(--vf-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 220ms ease;
}
a:hover { color: var(--ink); }

::selection { background: var(--gold); color: var(--paper); }

/* ===================== paper texture ===================== */

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.20;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.13  0 0 0 0 0.09  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 99;
  background:
    radial-gradient(ellipse 95% 75% at 50% 30%, transparent 55%, rgba(60,42,22,0.10) 100%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(243,235,216,0.6), transparent 70%);
}

/* ===================== nav ===================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  background: linear-gradient(to bottom, rgba(243,235,216,0.92), rgba(243,235,216,0.7) 70%, rgba(243,235,216,0));
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-family: var(--antique);
  font-size: 14px;
  letter-spacing: 0.18em;
}
.brand-mark {
  font-size: 20px; line-height: 1; color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'wght' 500, 'SOFT' 100, 'WONK' 1;
}
.brand-name { color: var(--ink); font-family: var(--antique); letter-spacing: 0.18em; }
.brand-name .amp {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  margin: 0 4px;
  letter-spacing: 0;
  font-size: 1.1em;
  line-height: 0;
}

.site-nav {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px);
}
.site-nav a {
  color: var(--ink-soft);
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.14em;
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .watch { color: var(--gold); }

@media (max-width: 720px) {
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3),
  .site-nav a:nth-child(4) { display: none; }
}

/* ===================== layout primitives ===================== */

main {
  display: block;
  padding: 0 var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

section {
  position: relative;
  padding: clamp(80px, 11vw, 130px) 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variation-settings: var(--vf-display);
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.kicker, .chapter {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0 0 18px;
}

.section-header {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 760px;
}
.section-header-left { text-align: left; margin-left: 0; }

.chapter-orn {
  display: block;
  width: clamp(180px, 30vw, 280px);
  height: auto;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 auto 18px;
}
.chapter-orn-left { margin-left: 0; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.022em;
}
.section-title.light { color: var(--ink); }

.section-sub {
  font-family: var(--antique);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin: 0;
}

.flourish-divider {
  display: flex; justify-content: center;
  margin: 0 auto;
  padding: 24px 0;
  color: var(--gold);
  opacity: 0.7;
}
.flourish-divider svg {
  width: clamp(220px, 38vw, 340px);
  height: 30px;
}

/* ===================== hero ===================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(80px, 12vw, 130px);
}

.hero-copy { max-width: 580px; }

.hero .kicker {
  color: var(--gold);
  margin-bottom: 28px;
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  margin: 0 0 30px;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title .line.gold {
  color: var(--gold);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.lede {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.20em;
  border-radius: 999px;
  transition: all 260ms ease;
  border: 1px solid var(--line);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-soft);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(29,22,16,0.35);
}
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* hero portal — the only candlelit moment */

.hero-image-stage {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-image-frame {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--portal-ink);
  box-shadow:
    0 0 0 1px rgba(154,120,56,0.45),
    0 0 0 12px var(--paper),
    0 0 0 13px rgba(154,120,56,0.30),
    0 50px 120px -30px rgba(60,42,22,0.45),
    0 0 100px -10px rgba(176, 140, 69, 0.25);
}
.hero-image-frame img.hero-image {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) contrast(1.06) brightness(0.96);
  transform: scale(1.04);
  transition: transform 800ms ease;
}
.hero-image-frame:hover img.hero-image { transform: scale(1.07); }
.hero-image-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 38% 42%, rgba(255,170,80,0.22), transparent 55%);
}
.hero-image-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,0.45) 100%);
}
.frame-corner { display: none; }

.hero-image-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(176,140,69,0.22), transparent 60%);
  filter: blur(36px);
  z-index: -1;
  animation: pulse 6s ease-in-out infinite;
}
.hero-image-grain { display: none; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.9; transform: translate(-50%, -50%) scale(1.06); }
}

.portal-hint {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin: 0;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-copy { margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
}

/* ===================== marquee strip ===================== */

.strip {
  position: relative;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 16px var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
  text-align: center;
}
.strip-line {
  margin: 0;
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.20em;
  line-height: 2;
  color: var(--gold);
}

/* ===================== ritual ===================== */

.ritual { max-width: 1040px; margin: 0 auto; }

.ritual-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.ritual-grid li {
  padding: 36px 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), transparent 70%);
  border-radius: 4px;
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}
.ritual-grid li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(29,22,16,0.3);
}
.ritual-grid .numeral {
  display: inline-block;
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 18px;
}
.ritual-grid h3 {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ritual-grid p {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 880px) { .ritual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ritual-grid { grid-template-columns: 1fr; } }

/* ===================== folk ===================== */

.folk { max-width: 1040px; margin: 0 auto; }

.folk-spread {
  display: grid; grid-template-columns: 1fr;
  gap: 28px;
}
.folk-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 44px clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--paper-2), transparent);
  transition: border-color 320ms ease, box-shadow 320ms ease;
}
.folk-row:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 60px -30px rgba(29,22,16,0.28);
}
.folk-row.reverse { grid-template-columns: 1fr 200px; }
.folk-row.reverse .folk-mark { order: 2; }

.folk-mark {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--gold);
}
.folk-letter {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
}
.folk-bigsigil {
  width: 130px; height: 130px;
  color: var(--ink);
  filter: drop-shadow(0 6px 16px rgba(29,22,16,0.18));
}

.folk-spec {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.20em;
  color: var(--gold);
  margin: 0 0 12px;
}
.folk-name {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1;
}
.folk-desc {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 60ch;
}
.folk-tag {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin: 0;
}
.cross-ref { color: var(--gold); font-style: italic; }

@media (max-width: 720px) {
  .folk-row,
  .folk-row.reverse { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 32px 24px; }
  .folk-row.reverse .folk-mark { order: 0; }
  .folk-desc, .folk-tag { margin-left: auto; margin-right: auto; }
}

/* ===================== menu / grimoire ===================== */

.menu { max-width: 1040px; margin: 0 auto; }

.menu-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.menu-section:first-of-type { border-top: none; padding-top: 24px; }

.menu-section-head {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
}
.menu-sigil {
  display: inline-flex; flex: none;
  width: 72px; height: 72px;
  color: var(--ink);
}
.menu-sigil svg { width: 100%; height: 100%; }
.menu-section-text h3 {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.018em;
}
.menu-section-text p {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.20em;
  color: var(--mute);
  margin: 0;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(28px, 4vw, 56px);
}

.potion {
  position: relative;
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 280ms ease;
}
.potion:hover { border-color: var(--gold-line); }

.potion-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.potion-name {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  letter-spacing: -0.015em;
}
.potion-tag {
  font-family: var(--antique);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-style: normal;
  border: 1px solid var(--gold-line);
  padding: 3px 8px;
  border-radius: 999px;
}
.potion-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  margin-bottom: 6px;
}
.price {
  font-family: var(--antique);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}
.potion-sub {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.potion-desc {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 52ch;
}
.potion-meta {
  font-family: var(--antique);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
  margin: 0;
}

@media (max-width: 720px) {
  .menu-list { grid-template-columns: 1fr; }
  .menu-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.enhancements {
  margin-top: 64px;
  padding: 40px clamp(28px, 4vw, 52px);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--paper-warm), var(--paper));
}
.enhancements h3 {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 34px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.enhancements-sub {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.20em;
  color: var(--mute);
  margin: 0 0 22px;
}
.enhancements ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 28px;
}
.enhancements li {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-soft);
}
.enhancements li em {
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  font-size: 13px;
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* ===================== lore ===================== */

.lore {
  max-width: var(--col);
  margin: 0 auto;
  text-align: center;
}
.lore-inner { max-width: 60ch; margin: 0 auto; text-align: left; }
.lore-inner .section-header { text-align: center; margin-bottom: 48px; }
.lore-inner p {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.85;
  color: var(--ink);
  margin: 0 0 22px;
}

/* hand-set drop cap on first paragraph of lore */
.lore-inner > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-weight: 500;
  font-size: 5.6em;
  float: left;
  line-height: 0.86;
  margin: 0.05em 0.10em 0 -0.04em;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.lore-sign {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  color: var(--mute);
  letter-spacing: 0.04em;
  font-size: 16px;
  margin-top: 32px;
}

/* ===================== find ===================== */

.find { max-width: 1040px; margin: 0 auto; }

.find-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.find-text { max-width: 58ch; }
.find-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'SOFT' 50, 'WONK' 0;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.find-line span {
  font-family: var(--antique);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding-top: 4px;
}
.find-note {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 24, 'SOFT' 80, 'WONK' 1;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mute);
  max-width: 46ch;
}

.find-card {
  position: relative;
  padding: clamp(36px, 5vw, 60px) 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(176,140,69,0.10), transparent 65%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}

.lantern {
  position: relative;
  width: 80px; height: 110px;
  margin: 0 auto 18px;
  border: 1px solid var(--gold-line);
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, var(--paper), var(--paper-warm));
  box-shadow:
    inset 0 0 30px rgba(176,140,69,0.18),
    0 0 60px -10px rgba(176,140,69,0.36);
  display: flex; align-items: center; justify-content: center;
}
.lantern::before {
  content: "";
  position: absolute; left: 50%; top: -8px;
  transform: translateX(-50%);
  width: 22px; height: 8px;
  border: 1px solid var(--gold-line);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.lantern-flame {
  width: 10px; height: 18px;
  background: radial-gradient(ellipse at center bottom, #ffcf6a, #c9711a 60%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  filter: blur(0.4px);
  animation: flicker 1.6s ease-in-out infinite alternate;
  box-shadow: 0 0 14px rgba(255,170,80,0.7), 0 0 30px rgba(255,170,80,0.4);
}
@keyframes flicker {
  0%   { transform: translateY(0)    scale(1, 1);    opacity: 1; }
  30%  { transform: translateY(-1px) scale(0.96, 1.04); opacity: 0.9; }
  60%  { transform: translateY(0)    scale(1.04, 0.96); opacity: 1; }
  100% { transform: translateY(-1px) scale(1, 1.02);   opacity: 0.95; }
}
.find-promise {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1;
  font-size: 20px;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.005em;
}

@media (max-width: 880px) { .find-inner { grid-template-columns: 1fr; } }

/* ===================== footer ===================== */

.site-footer {
  margin-top: 40px;
  padding: 32px var(--pad-x) 56px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-warm);
}
.site-footer .flourish-divider { padding-top: 0; }
.footer-row {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-family: var(--antique);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin: 16px 0;
}
.footer-row .brand-mark { color: var(--gold); }
.footer-row.small {
  font-family: var(--antique);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
  flex-wrap: wrap;
  gap: 18px;
}

/* ===================== reveal-on-scroll ===================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   STORYBOOK MAGIC — animations & live elements
   =================================================================== */

/* ---------- portal doors ---------- */

.hero-image-frame { perspective: 1100px; perspective-origin: 50% 50%; }

.portal-door {
  position: absolute; inset: 0;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 50%;
}
.portal-door:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}
.portal-door.opening {
  pointer-events: none;
  cursor: default;
}

@keyframes door-knock {
  0%, 100% { transform: translateX(0); }
  12%      { transform: translateX(-2.5px); }
  24%      { transform: translateX(1px); }
  42%      { transform: translateX(-2.5px); }
  58%      { transform: translateX(0.5px); }
}
.portal-door.knocking { animation: door-knock 500ms ease; }

.portal-half {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    /* end-grain wood feel */
    radial-gradient(ellipse 140% 60% at 50% 50%, rgba(80,52,24,0.65), rgba(20,12,4,0.95) 70%),
    linear-gradient(90deg, #1a0e04, #2c1c0c 40%, #1a0e04);
  background-blend-mode: multiply;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.7),
    inset 0 0 140px rgba(154,120,56,0.10);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.portal-half::before {
  /* wood grain texture */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='turbulence' baseFrequency='0.02 0.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0.30  0 0 0 0 0.20  0 0 0 0 0.08  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
}

.portal-half-l { left: 0;  transform-origin: 0% 50%;   }
.portal-half-r { right: 0; transform-origin: 100% 50%; }

.portal-grain { display: none; } /* placeholder span; texture is in ::before */

.portal-knot {
  position: absolute;
  width: 18px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #4a2e10, #1a0a02 70%);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
  opacity: 0.7;
}
.portal-knot-1 { top: 22%;  left: 30%; transform: rotate(8deg);  }
.portal-knot-2 { bottom: 24%; left: 60%; transform: rotate(-12deg); width: 14px; height: 10px; }

.portal-handle {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  background: radial-gradient(circle at 35% 35%, #d4a558 0%, #8a6020 60%, #3a2408 100%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(60,36,8,0.8),
    0 0 12px rgba(212,165,88,0.35);
}
.portal-half-l .portal-handle { right: 14px; }
.portal-half-r .portal-handle { left: 14px; }

.portal-rune {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  background:
    radial-gradient(circle, transparent 38%, rgba(154,120,56,0.35) 39%, rgba(154,120,56,0.35) 42%, transparent 43%),
    radial-gradient(circle, transparent 18%, rgba(154,120,56,0.22) 19%, rgba(154,120,56,0.22) 21%, transparent 22%);
  filter: drop-shadow(0 0 6px rgba(176,140,69,0.4));
  opacity: 0.85;
}

.portal-seam {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(176,140,69,0.7), rgba(255,200,100,0.55), rgba(176,140,69,0.7), transparent);
  filter: blur(0.4px) drop-shadow(0 0 6px rgba(255,180,80,0.35));
  transform: translateX(-50%);
  z-index: 6;
}

@keyframes door-open-l {
  0%   { transform: rotateY(0deg);    opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: rotateY(-105deg); opacity: 0; }
}
@keyframes door-open-r {
  0%   { transform: rotateY(0deg);    opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: rotateY(105deg);  opacity: 0; }
}
@keyframes seam-fade {
  0%   { opacity: 1;   transform: translateX(-50%) scaleY(1); }
  18%  { opacity: 1;   transform: translateX(-50%) scaleY(1.05); filter: blur(0.4px) drop-shadow(0 0 12px rgba(255,200,100,0.85)); }
  100% { opacity: 0;   transform: translateX(-50%) scaleY(0.6); }
}

.portal-door.opening .portal-half-l { animation: door-open-l 1.7s cubic-bezier(0.55, 0, 0.2, 1) forwards; }
.portal-door.opening .portal-half-r { animation: door-open-r 1.7s cubic-bezier(0.55, 0, 0.2, 1) forwards; }
.portal-door.opening .portal-seam   { animation: seam-fade 1.4s ease-out forwards; }

/* ---------- hero embers canvas ---------- */

.hero-embers {
  position: absolute; inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ---------- hero entrance — quiet, line by line ---------- */

.hero-title .line {
  opacity: 0;
  animation: hero-meta 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 250ms; }
.hero-title .line:nth-child(2) { animation-delay: 450ms; }
.hero-title .line:nth-child(3) { animation-delay: 700ms; }

.hero .kicker, .hero .lede, .hero .cta-row, .portal-hint {
  opacity: 0;
  animation: hero-meta 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero .kicker   { animation-delay: 120ms; }
.hero .lede     { animation-delay: 950ms; }
.hero .cta-row  { animation-delay: 1150ms; }
.portal-hint    { animation-delay: 1400ms; }

@keyframes hero-meta {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- chapter ornament wipe-draw ---------- */

.chapter-orn {
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(0.5, 0.05, 0.2, 1),
              -webkit-clip-path 1.8s cubic-bezier(0.5, 0.05, 0.2, 1);
}
.section-header.in-view .chapter-orn,
.in-view > .chapter-orn,
.chapter-orn.in-view {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* ---------- flourish dividers — quill from center ---------- */

.flourish-divider svg {
  clip-path: inset(0 50% 0 50%);
  -webkit-clip-path: inset(0 50% 0 50%);
  transition: clip-path 2s cubic-bezier(0.5, 0, 0.2, 1),
              -webkit-clip-path 2s cubic-bezier(0.5, 0, 0.2, 1);
}
.flourish-divider.in-view svg {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* ---------- folk sigil stamp reveal ---------- */

.folk-bigsigil {
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  transform: scale(0.6) rotate(-8deg);
  opacity: 0;
  transition:
    clip-path 1.1s cubic-bezier(0.18, 0.9, 0.18, 1),
    -webkit-clip-path 1.1s cubic-bezier(0.18, 0.9, 0.18, 1),
    transform 1.1s cubic-bezier(0.18, 0.9, 0.18, 1),
    opacity 700ms ease;
  transition-delay: 220ms;
}
.folk-row.in-view .folk-bigsigil {
  clip-path: circle(60% at 50% 50%);
  -webkit-clip-path: circle(60% at 50% 50%);
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

.menu-sigil svg {
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  transform: scale(0.7);
  opacity: 0;
  transition: all 900ms cubic-bezier(0.18, 0.9, 0.18, 1);
}
.menu-section.in-view .menu-sigil svg {
  clip-path: circle(60% at 50% 50%);
  -webkit-clip-path: circle(60% at 50% 50%);
  transform: scale(1);
  opacity: 1;
}

/* ---------- ritual cards stagger ---------- */

.ritual-grid li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 280ms ease, box-shadow 280ms ease;
}
.ritual-grid.in-view li { opacity: 1; transform: translateY(0); }
.ritual-grid.in-view li:nth-child(1) { transition-delay: 120ms; }
.ritual-grid.in-view li:nth-child(2) { transition-delay: 240ms; }
.ritual-grid.in-view li:nth-child(3) { transition-delay: 360ms; }
.ritual-grid.in-view li:nth-child(4) { transition-delay: 480ms; }

/* ---------- folk row fade ---------- */
.folk-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 320ms ease, box-shadow 320ms ease;
}
.folk-row.in-view { opacity: 1; transform: translateY(0); }

/* ---------- potion rows: dotted leader draws in with the section ---------- */

.potion-dots {
  background-image: radial-gradient(circle, rgba(29,22,16,0.32) 1px, transparent 1.5px);
  background-position: bottom left;
  background-size: 6px 100%;
  background-repeat: repeat-x;
  border-bottom: none;
  height: 14px; align-self: end;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0.05, 0.2, 1) 200ms;
}
.menu-section.in-view .potion-dots { width: 100%; }

/* ---------- enhancements panel fade ---------- */
.enhancements {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease, transform 900ms ease;
}
.enhancements.in-view { opacity: 1; transform: translateY(0); }

/* ---------- section title soft entrance ---------- */
.section-title {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section-header.in-view .section-title {
  opacity: 1; transform: translateY(0);
}

.section-header .chapter, .section-header .section-sub {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms ease 200ms, transform 800ms ease 200ms;
}
.section-header.in-view .chapter,
.section-header.in-view .section-sub {
  opacity: 1; transform: translateY(0);
}

/* ---------- find lines stagger ---------- */
.find-line {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.find-text.in-view .find-line { opacity: 1; transform: translateX(0); }
.find-text.in-view .find-line:nth-of-type(1) { transition-delay: 80ms; }
.find-text.in-view .find-line:nth-of-type(2) { transition-delay: 220ms; }
.find-text.in-view .find-line:nth-of-type(3) { transition-delay: 360ms; }

/* ---------- find card lantern entrance ---------- */
.find-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.find-card.in-view { opacity: 1; transform: translateY(0); }

.lantern-embers {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: 200px; height: 180px;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: 1;
}

/* ---------- lore drop cap entrance ---------- */
.lore-inner > p:first-of-type::first-letter {
  /* baseline declared earlier — extend with entrance below */
}
.lore.in-view .lore-inner > p:first-of-type::first-letter {
  /* trick: re-animate via class */
  animation: drop-cap-in 1.4s cubic-bezier(0.18, 0.9, 0.18, 1) both;
}
@keyframes drop-cap-in {
  0%   { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- chapter pagination marker ---------- */

.chapter-marker {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  pointer-events: auto;
  user-select: none;
  opacity: 0;
  transition: opacity 600ms ease 800ms;
}
.chapter-marker.ready { opacity: 1; }

.chapter-marker-rule {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-line), transparent);
  transform: translateX(-50%);
}
.chapter-marker ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 26px;
  position: relative;
}
.chapter-marker li {
  position: relative;
  padding-right: 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--antique);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(122,106,85,0.55);
  cursor: pointer;
  transition: color 320ms ease;
}
.chapter-marker li::before {
  content: "";
  position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold-line);
  transition: background 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}
.chapter-marker li .lbl {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.chapter-marker li:hover { color: var(--ink); }
.chapter-marker li:hover .lbl,
.chapter-marker li.active .lbl {
  opacity: 1; transform: translateX(0);
}
.chapter-marker li.active { color: var(--gold); }
.chapter-marker li.active::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(154,120,56,0.18), 0 0 14px rgba(176,140,69,0.6);
  transform: translateY(-50%) scale(1.15);
}
.chapter-marker .num { font-size: 11px; }

@media (max-width: 1080px) {
  .chapter-marker { display: none; }
}

/* ---------- reduced-motion pass ---------- */

@media (prefers-reduced-motion: reduce) {
  .portal-door,
  .hero-embers,
  .lantern-embers { display: none !important; }
  .hero-image-glow, .hero-image, .lantern-flame { animation: none; }
  .hero-title .line { animation: none; opacity: 1; }
  .hero .kicker, .hero .lede, .hero .cta-row, .portal-hint { animation: none; opacity: 1; }
  .chapter-orn, .flourish-divider svg, .folk-bigsigil, .menu-sigil svg { clip-path: none; -webkit-clip-path: none; transform: none; opacity: 1; }
  .ritual-grid li, .folk-row, .enhancements, .find-card, .find-line { opacity: 1; transform: none; }
  .potion-dots { width: 100%; }
  .section-title { opacity: 1; transform: none; }
  .section-header .chapter, .section-header .section-sub { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
