/* Alselene · Dark Winter luxury. No build step. */
:root {
  --navy: #080C14;        /* Primary · Midnight Navy */
  --oxblood: #1A0A0E;     /* Secondary */
  --forest: #0C1814;      /* Tertiary */
  --espresso: #1A120B;    /* Dark Accent */
  --gold: #D4AF37;
  --gold-muted: #8C733E;
  --starlight: #F2F5F8;
  --text-soft: rgba(242, 245, 248, 0.78);
  --glass-fill: rgba(18, 24, 38, 0.45);
  --glass-border: rgba(212, 175, 55, 0.22);
  --error: #E58A90;
  --radius: 20px;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--navy);
  color: var(--starlight);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #E6C65C; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Breathing moon glow ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 0% 100%, rgba(12, 24, 20, 0.95), rgba(12, 24, 20, 0) 70%),
    radial-gradient(ellipse 80% 50% at 100% 55%, rgba(26, 10, 14, 0.9), rgba(26, 10, 14, 0) 70%),
    var(--navy);
}
.moon-glow {
  position: absolute; left: 50%; top: 16vh;
  width: clamp(380px, 80vw, 860px); aspect-ratio: 1;
  margin-left: calc(clamp(380px, 80vw, 860px) / -2);
  margin-top: calc(clamp(380px, 80vw, 860px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(26, 40, 64, 0.95) 0%, rgba(26, 40, 64, 0.55) 28%,
    rgba(18, 26, 40, 0.30) 50%, rgba(8, 12, 20, 0) 72%);
  opacity: 0.6;
  animation:
    glow-scale 8000ms ease-in-out infinite alternate,
    glow-opacity 6000ms ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes glow-scale { from { transform: scale(1); } to { transform: scale(1.15); } }
@keyframes glow-opacity { from { opacity: 0.6; } to { opacity: 0.9; } }

/* ---------- Layout ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--gold); text-decoration: none; letter-spacing: .01em; }
main > section { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.25rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .75rem; color: var(--starlight); }
h2 { font-size: clamp(2.1rem, 6vw, 3.1rem); text-align: center; }
h3 { font-size: 1.6rem; color: var(--gold); }
.eyebrow {
  text-align: center; margin: 0 0 .5rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.section-lead { max-width: 40rem; margin: 0 auto 2.25rem; text-align: center; color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  padding: 1.5rem;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(18, 24, 38, 0.88); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); transition: background-color .25s, color .25s, transform .25s var(--ease-out-quart);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E6C65C; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--gold); min-height: 44px; padding: .6rem 1.1rem; font-size: .88rem; }
.btn-ghost:hover { background: rgba(212, 175, 55, 0.12); color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 3rem !important; min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-mark { margin: 0 0 1rem; width: min(620px, 88vw); }
.hero-mark img { width: 100%; }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 4.2vw, 1.85rem); max-width: 34rem; margin: 0 auto 2rem; color: var(--starlight); line-height: 1.35; }

/* ---------- Intro ---------- */
.intro-card { max-width: 44rem; margin: 0 auto; padding: 2rem 1.6rem; font-size: 1.08rem; color: var(--text-soft); }
.intro-card p { margin: 0 0 1rem; }
.intro-coda { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--gold) !important; margin: 0 !important; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.room p, .book p { color: var(--text-soft); margin: 0; }
.room-glyph { display: block; font-size: 1.6rem; color: var(--gold); margin-bottom: .6rem; line-height: 1; }

/* ---------- Lilith ---------- */
.archetypes {
  list-style: none; margin: 0 auto; padding: 0; max-width: 960px;
  display: grid; gap: .75rem; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .archetypes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .archetypes { grid-template-columns: repeat(3, 1fr); } }
.archetypes li {
  display: grid; gap: .1rem; padding: 1rem 1.15rem; border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(26, 10, 14, 0.55), rgba(12, 24, 20, 0.45));
}
.archetypes .sign { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.archetypes .arch { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--starlight); }
.archetypes .sym { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--text-soft); }

/* ---------- Mini Books ---------- */
.book-series { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold) !important; margin: 0 0 .35rem !important; }
.book h3 { color: var(--starlight); font-size: 1.55rem; }
.book .book-meta { margin-top: 1rem !important; padding-top: .8rem; border-top: 1px solid var(--glass-border); font-size: .85rem; color: var(--gold) !important; }
.books-cta { text-align: center; margin: 2rem auto 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; }

/* ---------- Waitlist ---------- */
.waitlist:focus { outline: none; }
.waitlist-card { max-width: 40rem; margin: 0 auto; text-align: center; padding: 2.25rem 1.4rem; }
.waitlist-card > p { color: var(--text-soft); margin: 0 0 1.5rem; }
.waitlist-form { text-align: left; }
.waitlist-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; color: var(--starlight); }
.field-row { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 560px) { .field-row { flex-direction: row; } .field-row input { flex: 1; } }
.waitlist-form input[type="email"] {
  min-height: 48px; width: 100%; padding: .75rem 1rem; border-radius: 14px;
  background: rgba(8, 12, 20, 0.7); color: var(--starlight);
  border: 1px solid rgba(212, 175, 55, 0.45); font: 400 1rem var(--sans);
}
.waitlist-form input::placeholder { color: rgba(242, 245, 248, 0.6); }
.waitlist-form input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.waitlist-form input[aria-invalid="true"] { border-color: var(--error); }
.fine { font-size: .82rem; color: var(--text-soft); margin: .9rem 0 0; }
.form-status { min-height: 1.5em; margin: .9rem 0 0; font-size: .95rem; }
.form-status.is-success { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--gold); }
.form-status.is-error { color: var(--error); }
.form-status.is-info { color: var(--starlight); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { max-width: 1120px; margin: 2rem auto 0; padding: 2.5rem 1.25rem 3rem; border-top: 1px solid var(--glass-border); text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 .75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-bottom: 1.25rem; }
.footer-links a { display: inline-block; padding: .35rem .1rem; }
.disclaimer { max-width: 46rem; margin: 0 auto 1rem; color: var(--text-soft); line-height: 1.6; }
.copyright { color: var(--text-soft); margin: 0; }

/* ---------- Simple pages (privacy, terms, 404) ---------- */
.page { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.page h2 { text-align: left; font-size: 1.7rem; margin-top: 2rem; }
.page p, .page li { color: var(--text-soft); }
.notice { border-color: rgba(229, 138, 144, 0.55); margin: 1.25rem 0 2rem; }
.notice strong { color: var(--error); }
.center { text-align: center; }

/* ---------- Entrance animation ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease-out-quart), transform 900ms var(--ease-out-quart); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moon-glow { animation: none; opacity: 0.75; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
