/* ===================================================================
   Lyssa Brooks — Steamy MMF Romantasy
   Design system + all styling. Change the variables below to retheme.
   =================================================================== */

:root {
  /* Night sky over Aelis */
  --night: #0e0a1d;        /* deepest background */
  --indigo: #1b1236;       /* primary background */
  --violet: #2a1b4d;       /* raised panels */
  --plum: #3b2463;         /* borders, hover fills */
  /* Living crystal */
  --crystal: #e47ad6;      /* primary accent (magenta crystal) */
  --orchid: #b98af0;       /* secondary accent (lavender) */
  --glow: #7fe0ea;         /* teal crystal glow — use sparingly */
  /* Text */
  --starlight: #f3ecff;    /* headings, logo */
  --mist: #d3c9e8;         /* body text */
  --muted: #9d91bb;        /* captions, notes */

  --grad-crystal: linear-gradient(120deg, #e47ad6 0%, #b98af0 55%, #8f7cf0 100%);
  --grad-night: linear-gradient(180deg, var(--indigo) 0%, var(--night) 100%);

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "EB Garamond", Georgia, serif;
  --font-label: "Josefin Sans", "Futura", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 24px 60px -20px rgba(5, 2, 15, 0.85);
  --glow-shadow: 0 0 0 1px rgba(228, 122, 214, 0.25), 0 18px 50px -18px rgba(228, 122, 214, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crystal); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--starlight); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { color: var(--starlight); margin: 0; font-weight: 400; line-height: 1.15; }
em { color: var(--starlight); }
::selection { background: rgba(228, 122, 214, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--starlight); color: var(--indigo); padding: 0.6rem 1rem; border-radius: 8px;
  font-family: var(--font-label);
}
.skip-link:focus { top: 1rem; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crystal);
}
.eyebrow.flanked { display: inline-flex; align-items: center; gap: 0.9rem; }
.eyebrow.flanked::before, .eyebrow.flanked::after {
  content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--crystal));
}
.eyebrow.flanked::after { transform: scaleX(-1); }
.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: 0.04em;
}
.h2 em, .h2 .accent {
  font-family: var(--font-serif); font-style: italic; letter-spacing: 0; text-transform: none;
  background: var(--grad-crystal); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em;
}
.lede { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.5; color: var(--starlight); }
.placeholder-note {
  font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--muted);
  border-left: 2px solid var(--plum); padding-left: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-label); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-crystal); color: var(--night); box-shadow: var(--glow-shadow); }
.btn-primary:hover { color: var(--night); box-shadow: 0 0 0 1px rgba(228, 122, 214, 0.5), 0 22px 60px -14px rgba(228, 122, 214, 0.65); }
.btn-ghost { border-color: rgba(243, 236, 255, 0.45); color: var(--starlight); background: rgba(14, 10, 29, 0.35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--crystal); color: var(--starlight); background: rgba(59, 36, 99, 0.55); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(14, 10, 29, 0.88); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(185, 138, 240, 0.18);
  --header-h: 68px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.brand-logo { width: 220px; height: auto; }
.brand-sub {
  font-family: var(--font-label); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; font-family: var(--font-label); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--starlight); padding: 0.4rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--grad-crystal); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--crystal); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--starlight); padding: 0.4rem; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
}
.hero-bg {
  position: absolute; inset: -4% 0; z-index: -3;
  background: url("../img/hero-sky.webp") center 40% / cover no-repeat;
  will-change: transform;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 10, 29, 0.92) 0%, rgba(14, 10, 29, 0.6) 45%, rgba(14, 10, 29, 0.15) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(14, 10, 29, 0) 35%);
}
.hero-content { max-width: 620px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: 0.05em; line-height: 1.08; margin: 1.1rem 0 1.4rem;
  text-shadow: 0 4px 30px rgba(14, 10, 29, 0.8);
}
.hero-title em {
  display: block; font-family: var(--font-serif); font-style: italic; letter-spacing: 0.01em; text-transform: none;
  background: var(--grad-crystal); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.1em;
}
.hero-copy { font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--starlight); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist);
}
.scroll-cue svg { width: 22px; height: 22px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 5rem) 0 5rem; text-align: center;
}
.page-hero .hero-bg { inset: 0; background-position: center; }
.page-hero .hero-scrim { background: linear-gradient(180deg, rgba(14, 10, 29, 0.55) 0%, rgba(14, 10, 29, 0.75) 60%, var(--night) 100%); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: 0.06em; margin-top: 0.9rem; }
.page-hero p { font-family: var(--font-serif); font-size: 1.35rem; color: var(--starlight); max-width: 36em; margin: 1rem auto 0; }

/* ---------- Twinkling stars ---------- */
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px rgba(228, 122, 214, 0.7);
  animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: var(--o, 0.9); transform: scale(1); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; isolation: isolate; }
.bg-night { background: var(--night); }
.bg-indigo { background: var(--indigo); }
.bg-gradient { background: var(--grad-night); }
.starfield::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 64%, #e9c8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 82%, #f6c6ee 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, #cfe9ff 50%, transparent 51%);
  background-size: 520px 520px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.2rem; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.55; }

/* Image band: full-bleed art behind a section */
.art-band { position: relative; overflow: hidden; }
.art-band .band-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.art-band .band-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(14, 10, 29, 0.6) 25%, rgba(14, 10, 29, 0.6) 75%, var(--night) 100%); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .h2 { margin: 1rem 0 1.4rem; }
.framed {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.framed::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(243, 236, 255, 0.14);
}
.framed img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.framed:hover img { transform: scale(1.03); }
.framed.tall { aspect-ratio: 4 / 5; max-width: 460px; justify-self: center; }
.figure-wrap { position: relative; isolation: isolate; }
.figure-wrap::before {
  content: ""; position: absolute; inset: 10% -6% -6% 10%; z-index: -1; border-radius: var(--radius);
  border: 1px solid rgba(228, 122, 214, 0.4);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* ---------- Three-point list (Why choose) ---------- */
.points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 0.9rem; align-items: start; }
.points svg { width: 26px; height: 26px; color: var(--crystal); margin-top: 0.25rem; }
.points strong { display: block; color: var(--starlight); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }

/* ---------- Books ---------- */
.book-feature { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.book-feature.reverse { grid-template-columns: 1fr minmax(240px, 380px); }
.book-feature.reverse .cover-wrap { order: 2; }
.cover-wrap { margin: 0; perspective: 1200px; }
.book-cover {
  position: relative; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--shadow), -6px 0 0 -2px rgba(0, 0, 0, 0.35);
  transform: rotateY(-8deg); transition: transform 0.8s var(--ease);
}
.cover-wrap:hover .book-cover { transform: rotateY(0deg) translateY(-6px); }
.book-cover img { width: 100%; }
/* Stand-in cover until real art exists: title set over book-world art */
.cover-stand-in {
  aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  position: relative; isolation: isolate;
  padding: 2.2rem 1.4rem 1.8rem; text-align: center;
  background: var(--violet) center / cover no-repeat;
}
.cover-stand-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 10, 29, 0.45) 0%, rgba(14, 10, 29, 0.1) 40%, rgba(14, 10, 29, 0.85) 100%);
}
.cover-stand-in .c-series { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--starlight); }
.cover-stand-in .c-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; color: var(--starlight); letter-spacing: 0.06em; text-shadow: 0 2px 20px rgba(14, 10, 29, 0.9); }
.cover-stand-in .c-author { width: 70%; }
.cover-ribbon {
  position: absolute; top: 1.1rem; right: -2.6rem; transform: rotate(35deg);
  background: var(--grad-crystal); color: var(--night); padding: 0.35rem 3rem;
  font-family: var(--font-label); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.book-meta h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: 0.04em; margin: 0.8rem 0 0.4rem; }
.book-meta .tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; color: var(--crystal); margin-bottom: 1.2rem; }
.book-meta .blurb { font-size: 1.12rem; }
.book-status {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow);
}
.book-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.book-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.trope-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.trope-tags li {
  font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(185, 138, 240, 0.4); color: var(--mist);
}

/* Upcoming cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(59, 36, 99, 0.55), rgba(27, 18, 54, 0.75));
  border: 1px solid rgba(185, 138, 240, 0.2); box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(228, 122, 214, 0.5); }
.card h3 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.04em; margin: 0.7rem 0 0.6rem; }
.card p { margin: 0; font-size: 1.05rem; }

/* ---------- World gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(200px, 22vw, 290px); gap: 1rem; }
.gallery figure { margin: 0; grid-column: span 2; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery figure.wide { grid-column: span 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem 0.9rem;
  background: linear-gradient(0deg, rgba(14, 10, 29, 0.92), transparent);
  font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--starlight);
}
.gallery figcaption span { display: block; font-family: var(--font-label); font-style: normal; font-size: 0.64rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--crystal); }

/* ---------- Interlude ---------- */
.interlude { text-align: center; }
.interlude blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--starlight);
}
.interlude cite { display: block; margin-top: 1.4rem; font-family: var(--font-label); font-style: normal; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--crystal); }
.sparkle-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--crystal); margin-bottom: 1.6rem; }
.sparkle-divider span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.sparkle-divider span:last-child { transform: scaleX(-1); }
.sparkle-divider svg { width: 18px; height: 18px; }

/* ---------- Newsletter ---------- */
.newsletter-panel {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 5vw, 3.8rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 22px; background: rgba(14, 10, 29, 0.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(228, 122, 214, 0.3); box-shadow: var(--shadow);
}
.newsletter-panel .h2 { margin: 1rem 0 1rem; }
.signup-form { display: flex; gap: 0.8rem; max-width: 560px; margin: 1.8rem auto 0; }
.signup-form .field { flex: 1; }
.signup-form input, .contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem 1.3rem; border-radius: 999px;
  background: rgba(243, 236, 255, 0.07); border: 1px solid rgba(185, 138, 240, 0.4);
  color: var(--starlight); font-family: var(--font-body); font-size: 1.05rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.signup-form input::placeholder, .contact-form ::placeholder { color: var(--muted); }
.signup-form input:focus, .contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--crystal); background: rgba(243, 236, 255, 0.1); box-shadow: 0 0 0 4px rgba(228, 122, 214, 0.18);
}
.form-note { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); }
.form-msg { min-height: 1.4em; margin: 0.8rem 0 0; font-family: var(--font-serif); font-size: 1.15rem; color: var(--glow); }
.form-msg.error { color: #ff9fc4; }
.signup-form button[disabled] { opacity: 0.6; pointer-events: none; }
.perks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.perks li { font-family: var(--font-serif); font-size: 1.1rem; color: var(--starlight); }
.perks svg { display: block; width: 26px; height: 26px; color: var(--crystal); margin: 0 auto 0.4rem; }

/* ---------- About ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fact {
  padding: 1.6rem 1.2rem; text-align: center; border-radius: var(--radius);
  background: rgba(59, 36, 99, 0.35); border: 1px solid rgba(185, 138, 240, 0.2);
}
.fact .label { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--crystal); }
.fact .value { margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.6rem; color: var(--starlight); line-height: 1.2; }

/* ---------- Contact ---------- */
.contact-form {
  display: grid; gap: 1.2rem; padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: 22px;
  background: rgba(27, 18, 54, 0.75); border: 1px solid rgba(185, 138, 240, 0.25); box-shadow: var(--shadow);
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label { display: block; margin-bottom: 0.45rem; font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.contact-form textarea { border-radius: 18px; min-height: 170px; resize: vertical; }
.contact-form .error-text { display: block; min-height: 1.1em; margin-top: 0.3rem; font-size: 0.9rem; color: #ff9fc4; }
.contact-form [aria-invalid="true"] { border-color: #ff9fc4; }
.contact-aside h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; margin: 2rem 0 0.6rem; }
.contact-aside h3:first-of-type { margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid rgba(185, 138, 240, 0.15); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand img { width: 260px; }
.footer-brand p { margin-top: 1.2rem; max-width: 26em; font-size: 1.02rem; }
.footer-col h4 { font-family: var(--font-label); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--crystal); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--mist); padding: 0.2rem 0; }
.footer-col a:hover { color: var(--starlight); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(185, 138, 240, 0.12); text-align: center; font-size: 0.92rem; color: var(--muted); }

/* ---------- Reveal motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal="right"] { transform: translateX(-34px); }
[data-reveal="left"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .book-feature, .book-feature.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .book-feature.reverse .cover-wrap { order: 0; }
  .cover-wrap { max-width: 340px; margin-inline: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery figure { grid-column: span 1; }
  .gallery figure.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    background: rgba(14, 10, 29, 0.97); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav-links a { font-size: 1.05rem; }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 1.08rem; }
  .brand-logo { width: 170px; }
  .brand-sub { font-size: 0.55rem; }
  .hero { align-items: flex-end; }
  .hero-bg { inset: 0; background: var(--night) url("../img/hero-sky-sm.webp") center top / cover no-repeat; }
  .hero-scrim { background: linear-gradient(0deg, var(--night) 45%, rgba(14, 10, 29, 0.5) 62%, rgba(14, 10, 29, 0.05) 100%); }
  .eyebrow { letter-spacing: 0.2em; }
  .eyebrow.flanked::before, .eyebrow.flanked::after { width: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .signup-form { flex-direction: column; }
  .perks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .figure-wrap::before { inset: 8% -0.6rem -0.6rem 8%; }
}
