/* ============================================================
   Valerion: The First Light — valeriongame.com
   Visual language matched to the game's Figma (auth screens):
   red-moon ruins key art, radiant gold emblem, Marcellus
   headings, bronze ornate buttons, frosted gold-lined inputs.
   ============================================================ */

:root {
  --black: #000000;
  --navy: #0A0E1A;              /* logo/splash field */
  --ink: #FEF6E7;               /* Primary/50 */
  --ink-dim: rgba(254, 246, 231, 0.7);
  --ink-faint: rgba(254, 246, 231, 0.45);
  --gold: #F5C35F;
  --gold-light: #F9DCA0;        /* Primary/200 */
  --brown: #523905;
  --line: rgba(249, 220, 160, 0.16);
  --line-mid: rgba(249, 220, 160, 0.2);   /* game input border */
  --line-strong: rgba(249, 220, 160, 0.4);
  --error: #FFA07A;
  /* game button plate (Gradient/Main Button/Active) */
  --bronze-hi: #B38971;
  --bronze-mid: #896F62;
  --bronze-lo: #5F5553;
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Marcellus ships one weight */
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--gold); text-decoration-color: rgba(245, 195, 95, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }

img, svg { max-width: 100%; }

::selection { background: rgba(245, 195, 95, 0.3); color: var(--ink); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

/* ---------- Shared ornaments & type ---------- */

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: 0.03em; }

.orn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin-top: 1.1rem;
}
.orn span {
  display: block; height: 1px; width: min(110px, 22vw);
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.orn span:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.orn i {
  font-style: normal; font-size: 0.6rem; color: var(--gold);
  text-shadow: 0 0 12px rgba(245, 195, 95, 0.6);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.1s ease,
              border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: translateY(1px); }

/* The game's main button: bronze radial plate, gold hairline frame,
   ember inner glows, filigree end caps, spark at the base. */
.btn-gold {
  position: relative;
  border: 1px solid var(--gold-light);
  border-radius: 3px;
  padding: 0.95em 2.4em;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E6E0D4;
  text-shadow: 0 1px 1px #1E1E1E;
  background:
    url("/assets/img/ui/btn-spark.svg") center calc(100% + 4px) / 86px 19px no-repeat,
    radial-gradient(ellipse 105% 320% at 50% 50%, var(--bronze-hi) 0%, var(--bronze-mid) 52%, var(--bronze-lo) 100%);
  box-shadow:
    inset 0 0 15.6px #A87D60,
    inset 0 0 9.1px rgba(255, 155, 37, 0.44),
    0 0 20px rgba(245, 195, 95, 0.16);
}
.btn-gold::before,
.btn-gold::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px; height: 36px;
  transform: translateY(-50%);
  background: center / contain no-repeat;
  pointer-events: none;
}
/* Same filigree on both ends, left one mirrored to face outward. */
.btn-gold::before { left: 0; background-image: url("/assets/img/ui/btn-cap-right.svg"); transform: translateY(-50%) scaleX(-1); }
.btn-gold::after { right: 0; background-image: url("/assets/img/ui/btn-cap-right.svg"); }
.btn-gold:hover {
  filter: brightness(1.12);
  box-shadow:
    inset 0 0 15.6px #A87D60,
    inset 0 0 12px rgba(255, 155, 37, 0.6),
    0 0 34px rgba(245, 195, 95, 0.35);
}
.btn-gold:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost {
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold-light);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.55em 1.15em;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 195, 95, 0.08);
  box-shadow: 0 0 20px rgba(245, 195, 95, 0.15);
}

/* ---------- Header ---------- */

.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.wordmark:hover { color: var(--gold-light); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }

.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.nav-link:hover { color: var(--gold); }

@media (max-width: 719px) {
  .nav-link { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
}

/* The game's key art: blood moon over the ruins of Valerion. */
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.88) 82%, var(--black) 97%),
    url("/assets/img/bg-hero.jpg") center 22% / cover no-repeat,
    var(--navy);
}
@media (max-width: 720px) {
  .hero-art {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.88) 82%, var(--black) 97%),
      url("/assets/img/bg-hero-mobile.jpg") center 20% / cover no-repeat,
      var(--navy);
  }
}

.hero-logo {
  width: clamp(280px, 56vw, 520px);
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55));
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.8vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 195, 95, 0.25);
  max-width: 40rem;
  margin: 0 auto 2.6rem;
}

/* ---------- Signup ---------- */

.signup-block { max-width: 34rem; margin-inline: auto; }

.signup-title {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.signup-sub {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.signup-sub strong { color: var(--ink); font-weight: 400; }

.signup { max-width: 30rem; margin-inline: auto; }

.field-row { display: flex; gap: 0.7rem; }

/* The game's input: frosted dark glass, gold-tinted hairline. */
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(3.55px);
  -webkit-backdrop-filter: blur(3.55px);
  border: 1px solid var(--line-mid);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0 1.05em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.signup input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.signup input[type="email"]:focus {
  outline: none;
  border-color: rgba(249, 220, 160, 0.55);
  box-shadow: 0 0 22px rgba(245, 195, 95, 0.18);
}

/* Honeypot — humans never see it, bots fill it */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.form-status.is-success {
  font-family: var(--font-display);
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(245, 195, 95, 0.4);
}
.form-status.is-error { color: var(--error); }

.signup.done .field-row,
.signup.done .fine { display: none; }
.signup.done .form-status { font-size: 1.15rem; }

.fine {
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin: 0.7rem 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 519px) {
  .field-row { flex-direction: column; }
  .field-row .btn-gold { width: 100%; }
}

/* ---------- Chips ---------- */

.chips {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 2.4rem 0 0;
}
.chip {
  background: rgba(30, 18, 2, 0.55);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  border: 1px solid rgba(249, 220, 160, 0.3);
  border-radius: 3px;
  padding: 0.42em 1.05em;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Scroll cue ---------- */

.scroll-cue {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.7;
  padding: 0.5rem;
}
.scroll-cue:hover { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bob 2.2s ease-in-out infinite; }
  @keyframes cue-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
}

/* ---------- The Twelve (hero roster) ---------- */

.twelve { padding-bottom: 0; }
.twelve .section-head { padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.heroes-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.6rem clamp(1.25rem, 6vw, 4rem) 1.6rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}
.heroes-strip::-webkit-scrollbar { display: none; }

.hero-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(232px, 60vw);
  aspect-ratio: 33 / 46;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(95% 55% at 50% 102%, rgba(245, 195, 95, 0.16), transparent 72%),
    linear-gradient(180deg, #0B0A12 0%, #060409 100%);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-card img {
  position: absolute;
  left: 50%; bottom: -2%;
  transform: translateX(-50%);
  height: 94%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.65));
}
.hero-card::after {
  /* floor shadow / ember line */
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 220, 160, 0.4), transparent);
}
.hero-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(245, 195, 95, 0.1);
}

.strip-hint {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0.4rem 0 0;
}

/* ---------- Feature cards ---------- */

/* 3 top, 3 bottom on desktop */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 919px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #100B08 0%, #070403 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.1rem 1.8rem 1.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(245, 195, 95, 0.08);
}

.card .num {
  position: absolute;
  top: 0.35rem; right: 1.1rem;
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(245, 195, 95, 0.09);
  user-select: none;
}

.card h3 {
  font-size: 1.32rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
  position: relative;
}
.card p { color: var(--ink-dim); font-size: 0.93rem; margin: 0; position: relative; }

/* ---------- Idle banner ---------- */

.idle-banner {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 130% at 50% 115%, rgba(120, 78, 22, 0.38), transparent 74%),
    #030201;
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 7rem);
}
.idle-banner .container { position: relative; z-index: 1; }

/* Night scene: two heroes keep fighting in the dark, embers rising. */
.idle-scene { position: absolute; inset: 0; pointer-events: none; }

.idle-hero {
  position: absolute;
  bottom: -4%;
  height: 108%;
  width: auto;
  max-width: none;
  opacity: 0.5;
  filter: brightness(0.5) saturate(0.85);
}
.idle-hero-l { left: clamp(-40px, 3vw, 7vw); }
.idle-hero-r { right: clamp(-40px, 3vw, 7vw); transform: scaleX(-1); }

.idle-scene::after {
  /* keeps the center readable over the flanking art */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 120% at 50% 55%, rgba(3, 2, 1, 0.78), transparent 78%);
}

@media (max-width: 719px) {
  .idle-hero { opacity: 0.32; height: 95%; }
  .idle-hero-l { left: -18%; }
  .idle-hero-r { right: -18%; }
}

.ember {
  position: absolute;
  bottom: -10px;
  left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px 2px rgba(245, 195, 95, 0.55);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ember { animation: ember-rise var(--d) linear var(--delay) infinite; }
  @keyframes ember-rise {
    0% { transform: translate(0, 0); opacity: 0; }
    12% { opacity: 0.9; }
    65% { opacity: 0.5; }
    100% { transform: translate(var(--drift, 18px), -300px); opacity: 0; }
  }
}

.idle-title {
  font-size: clamp(1.6rem, 4.2vw, 2.3rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(245, 195, 95, 0.3);
  margin-bottom: 0.5rem;
}
.idle-sub { color: var(--ink-dim); max-width: 38rem; margin-inline: auto; font-size: 0.98rem; }

/* ---------- Roadmap ---------- */

.roadmap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0;
  margin: 0;
  position: relative;
}
.roadmap-list::before {
  content: "";
  position: absolute;
  top: 5.5px; left: 17%; right: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.node { position: relative; text-align: center; padding-top: 2.3rem; }
.node::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: var(--black);
}
.node.is-now::before {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(245, 195, 95, 0.6);
}

.node-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.node h3 { font-size: 1.38rem; margin-bottom: 0.35rem; }
.node p { color: var(--ink-dim); font-size: 0.9rem; max-width: 17rem; margin-inline: auto; }

@media (max-width: 719px) {
  .roadmap-list { grid-template-columns: 1fr; gap: 2.6rem; }
  .roadmap-list::before { display: none; }
}

/* ---------- Final CTA ---------- */

.cta-final {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 11vw, 8rem);
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 65% at 50% 100%, rgba(245, 195, 95, 0.12), transparent 70%),
    radial-gradient(ellipse 85% 85% at 50% 115%, rgba(82, 57, 5, 0.4), transparent 76%);
}
.cta-emblem {
  width: 118px;
  height: auto;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 26px rgba(245, 195, 95, 0.35));
}
.cta-final h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.6rem);
  letter-spacing: 0.03em;
  margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.foot-mark {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}
.foot-copy { color: var(--ink-faint); font-size: 0.78rem; margin: 0; }
.foot-links { display: flex; gap: 1.6rem; }
.foot-links a {
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.foot-links a:hover { color: var(--gold); }

/* ---------- Inner pages (privacy / terms / support / thanks / 404) ---------- */

/* Soft gold glow used by thanks/404 pages (no key art there). */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 62% 44% at 50% 34%, rgba(245, 195, 95, 0.13), transparent 68%),
    radial-gradient(ellipse 95% 62% at 50% 28%, rgba(82, 57, 5, 0.38), transparent 72%),
    var(--black);
}

.page-main { padding-top: clamp(7rem, 14vw, 9rem); padding-bottom: clamp(4rem, 9vw, 6rem); }

.page-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.1rem); letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.page-head .page-sub { color: var(--ink-dim); }
.page-head .orn { margin-top: 1.3rem; }

.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 {
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin: 2.6rem 0 0.7rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-dim); font-size: 0.96rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); font-weight: 400; }
.prose .updated {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.support-card {
  background: linear-gradient(180deg, #100B08, #070403);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.4rem 2rem;
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 3.5rem;
}
.support-card p { color: var(--ink-dim); }
.support-card .btn-gold { margin-top: 0.4rem; text-transform: none; letter-spacing: 0.03em; }

.faq { max-width: 46rem; margin-inline: auto; }
.faq h2 { text-align: center; font-size: 1.6rem; margin-bottom: 1.8rem; }
.faq dt {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--gold-light);
  margin-top: 1.6rem;
}
.faq dd { margin: 0.35rem 0 0; color: var(--ink-dim); font-size: 0.95rem; }

/* Centered simple pages (thanks / 404) */
.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: 6rem 0;
}
.center-page h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: 0.03em; }
.center-page p { color: var(--ink-dim); max-width: 28rem; margin-inline: auto; }
.center-page .btn { margin-top: 1.2rem; }

/* ---------- Reveal on scroll (JS adds .js to <html>) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}
