:root {
  --night: #0A0F1E;
  --night-raised: #101830;
  --line: rgba(201,163,92,.22);
  --ivory: #F3EEE2;
  --ivory-dim: #C7CBD8;
  --champagne: #C9A35C;
  --champagne-hi: #E8D5A3;
  --teal-deep: #17555C;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --ease-out: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; font-kerning: normal; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .2; background: radial-gradient(circle at 76% 12%, rgba(201,163,92,.09), transparent 23rem), radial-gradient(circle at 18% 80%, rgba(23,85,92,.08), transparent 28rem); z-index: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--champagne-hi); outline-offset: 4px; }
.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: min(100% - 2rem, 90rem); margin: 0 auto; padding: 1.25rem 0; }
.wordmark { color: var(--ivory); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; letter-spacing: .22em; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { padding: .45rem 0; color: var(--ivory-dim); text-decoration: none; font-size: .68rem; letter-spacing: .13em; }
.site-nav a:hover, .site-nav a.active { color: var(--champagne-hi); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ivory); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 4px auto; background: var(--champagne); }
.menu-layer { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10,15,30,.98); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease; z-index: 20; }
.menu-layer.open { opacity: 1; visibility: visible; }
.menu-close { position: absolute; top: 1rem; right: 1rem; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--champagne-hi); cursor: pointer; }
.menu-links { display: grid; gap: 1.25rem; text-align: center; }
.menu-links a { color: var(--ivory); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 7vw, 3rem); letter-spacing: .08em; }
.shell { position: relative; z-index: 1; width: min(100% - 2rem, 90rem); margin: 0 auto; }
.hero { position: relative; min-height: calc(100svh - 4.5rem); display: grid; align-content: center; padding: 4rem 0 6rem; }
.hero-inner { max-width: 70rem; }
.hero-mark { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 12vw, 10rem); font-weight: 400; line-height: .9; letter-spacing: .06em; text-wrap: balance; }
.hero-claim { margin: 1.25rem 0 2rem; color: var(--champagne-hi); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.55rem); letter-spacing: .18em; line-height: 1.35; }
.hero-worlds { max-width: 28rem; color: var(--ivory-dim); font-size: .72rem; letter-spacing: .16em; line-height: 2; }
.hero::after { content: ""; width: 1px; height: 5rem; margin-top: 3rem; background: linear-gradient(var(--champagne), transparent); opacity: .7; }
.hero-orbit { position: absolute; right: 1rem; bottom: 5rem; width: min(34vw, 19rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; opacity: .8; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; inset: 16%; border: 1px solid rgba(201,163,92,.13); border-radius: 50%; }
.hero-orbit::after { inset: 46%; background: var(--champagne); border: 0; box-shadow: 0 0 3rem rgba(201,163,92,.35); }
.section { padding: clamp(5rem, 12vw, 11rem) 0; }
.manifest { max-width: 62rem; }
.manifest h2, .closing h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 5.2rem); font-weight: 400; line-height: 1.05; letter-spacing: .035em; text-wrap: balance; }
.manifest p { max-width: 44rem; margin: 2rem 0 0 auto; color: var(--ivory-dim); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.chapter-list { display: grid; border-top: 1px solid var(--line); }
.chapter { position: relative; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.chapter:hover .chapter-name { color: var(--champagne-hi); }
.chapter-number { color: var(--champagne); font-size: .75rem; letter-spacing: .12em; }
.chapter-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 3vw, 2.1rem); letter-spacing: .08em; transition: color .2s ease; }
.chapter-copy { grid-column: 2; color: var(--ivory-dim); font-size: .95rem; }
.chapter-link { color: var(--champagne); font-size: .72rem; letter-spacing: .16em; }
.chapter-card { position: absolute; right: 5%; width: 8rem; aspect-ratio: 848 / 1264; object-fit: contain; opacity: .7; transform: rotate(7deg); box-shadow: 0 0 2rem rgba(201,163,92,.14); }
.closing { border-top: 1px solid var(--line); }
.litany { max-width: 34rem; margin: 2.5rem 0 0; color: var(--ivory-dim); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2.4vw, 1.8rem); line-height: 1.55; }
.signature { margin-top: 4rem; color: var(--champagne-hi); font-size: .72rem; letter-spacing: .17em; }
.page-hero { max-width: 62rem; padding: clamp(4rem, 10vw, 8rem) 0 4rem; }
.page-label { color: var(--champagne); font-size: .75rem; letter-spacing: .16em; }
.page-title { margin: 1rem 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 400; line-height: .98; letter-spacing: .04em; text-wrap: balance; }
.page-lead { max-width: 38rem; color: var(--ivory-dim); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.5; }
.prose-block { max-width: 52rem; margin-left: clamp(0rem, 14vw, 13rem); padding: 2rem 0 6rem; border-top: 1px solid var(--line); }
.prose-block p { margin: 0; color: var(--ivory-dim); font-size: 1.08rem; line-height: 1.75; }
.door-note { margin-top: 3rem; color: var(--champagne-hi); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1rem; color: var(--champagne); text-decoration: none; font-size: .75rem; letter-spacing: .14em; }
.text-link:hover { color: var(--champagne-hi); }
.format-list { display: grid; margin: 3rem 0 0; border-top: 1px solid var(--line); }
.format-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.format-row strong { color: var(--champagne-hi); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 400; letter-spacing: .1em; }
.format-row span { color: var(--ivory-dim); }
.gallery-intro { max-width: 48rem; margin-bottom: 5rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.25rem; }
.card-art { margin: 0; text-align: center; }
.card-art img { display: block; width: 100%; max-width: 12rem; aspect-ratio: 848 / 1264; margin: 0 auto; object-fit: contain; border: 1px solid var(--line); padding: .45rem; background: var(--night-raised); transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease; }
.card-art:hover img, .card-art:focus-within img { transform: translateY(-5px); border-color: rgba(232,213,163,.65); box-shadow: 0 1rem 2rem rgba(0,0,0,.25), 0 0 1.75rem rgba(201,163,92,.15); }
.card-art figcaption { margin-top: .7rem; color: var(--ivory); font-size: .75rem; letter-spacing: .16em; }
.draw-section { display: grid; gap: 2rem; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; margin: 5rem 0 7rem; padding: clamp(1.5rem, 5vw, 4rem); background: var(--night-raised); border: 1px solid var(--line); }
.draw-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.draw-copy p { color: var(--ivory-dim); }
.draw-card { display: grid; place-items: center; min-height: 22rem; perspective: 1000px; }
.draw-card button { position: relative; width: min(12rem, 65%); padding: 0; border: 0; background: transparent; cursor: pointer; transform-style: preserve-3d; transition: transform .55s var(--ease-out); }
.draw-card button.is-flipped { transform: rotateY(180deg); }
.draw-card img { display: block; width: 100%; aspect-ratio: 848 / 1264; object-fit: contain; border: 1px solid var(--line); backface-visibility: hidden; }
.draw-card .draw-front { position: absolute; inset: 0; transform: rotateY(180deg); }
.draw-result { min-height: 5rem; margin-top: 1.25rem; }
.draw-result strong { display: block; color: var(--champagne-hi); font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; font-weight: 400; letter-spacing: .08em; }
.draw-result span { color: var(--ivory-dim); }
.draw-button { min-height: 48px; padding: .75rem 1.1rem; border: 1px solid var(--champagne); background: transparent; color: var(--champagne-hi); cursor: pointer; letter-spacing: .12em; font-size: .72rem; }
.draw-button:hover { background: rgba(201,163,92,.1); }
.site-footer { position: relative; z-index: 1; width: min(100% - 2rem, 90rem); margin: 0 auto; padding: 3rem 0 max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ivory-dim); font-size: .8rem; }
.site-footer p { max-width: 35rem; margin: 0; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: var(--champagne); font-size: .7rem; letter-spacing: .1em; }
.site-footer a { color: var(--champagne-hi); text-decoration: none; }
.reveal { animation: reveal .8s var(--ease-out) both; }
.delay-1 { animation-delay: .12s; } .delay-2 { animation-delay: .22s; } .delay-3 { animation-delay: .32s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 42rem) {
  .site-header, .shell, .site-footer { width: min(100% - 4rem, 90rem); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 2rem; }
  .chapter { grid-template-columns: 4rem 1fr 8rem auto; }
  .chapter-copy { grid-column: 2 / 4; }
  .chapter-card { position: static; grid-column: 3; grid-row: 1 / span 2; width: 5.5rem; }
}
@media (min-width: 64rem) { .menu-toggle, .menu-layer { display: none; } .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 63.99rem) { .site-nav { display: none; } .menu-toggle { display: block; } }
@media (max-width: 41.99rem) {
  .hero-mark { font-size: clamp(2.55rem, 11vw, 3.3rem); letter-spacing: .035em; }
  .hero-orbit { width: 11rem; bottom: 8rem; opacity: .55; }
  .chapter { grid-template-columns: 2.3rem 1fr; }
  .chapter-link { grid-column: 2; }
  .chapter-card { top: 1rem; right: 0; width: 4.8rem; }
  .draw-section { grid-template-columns: 1fr; }
  .format-row { grid-template-columns: 1fr; gap: .2rem; }
  .footer-meta { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
