/* ==========================================================================
   Inkling Yokai Press — "Ink & Ember" redesign stylesheet
   Companion to redesign.html
   ========================================================================== */

:root {
  --ink:      #0e0c13;
  --ink-2:    #161120;
  --cream:    #f0e6d2;
  --dim:      #c7b9a2;
  --faint:    rgba(240, 230, 210, .38);
  --hairline: rgba(240, 230, 210, .14);
  --ember:    #e2573c;
  --ember-hot:#ff6a4d;
  --gold:     #c9a35c;
  --serif-display: "Fraunces", Georgia, serif;
  --serif-body:    "Spectral", Georgia, serif;
  --mono:          "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif-body);
  font-weight: 300;
  line-height: 1.72;
  overflow-x: hidden;
}

/* ---------- atmosphere ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
  opacity: .09;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.glow--ember { width: 52vmax; height: 52vmax; top: -18vmax; left: 50%; transform: translateX(-78%);
  background: radial-gradient(closest-side, rgba(226, 87, 60, .17), transparent 70%); }
.glow--tide  { width: 46vmax; height: 46vmax; top: 118%; right: -16vmax;
  background: radial-gradient(closest-side, rgba(74, 168, 164, .13), transparent 70%); }
.glow--gold  { width: 40vmax; height: 40vmax; top: 62%; left: -14vmax;
  background: radial-gradient(closest-side, rgba(201, 163, 92, .10), transparent 70%); }

.wisp {
  position: absolute;
  width: 64vmax;
  height: 22vmax;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.wisp--1 {
  top: 8%;  left: -10%;
  background: radial-gradient(closest-side, rgba(255, 106, 77, .11), transparent);
  animation: drift-a 44s ease-in-out infinite alternate;
}
.wisp--2 {
  top: 46%; right: -18%;
  background: radial-gradient(closest-side, rgba(74, 168, 164, .10), transparent);
  animation: drift-b 56s ease-in-out infinite alternate;
}
.wisp--3 {
  top: 74%; left: 6%;
  background: radial-gradient(closest-side, rgba(232, 193, 90, .08), transparent);
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(9vw,-6vh,0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-8vw,8vh,0) scale(.94); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(.95); } to { transform: translate3d(7vw,-5vh,0) scale(1.12); } }

/* ---------- shared shell ---------- */

.shell { position: relative; z-index: 1; }

.wrap { width: min(1100px, 92vw); margin-inline: auto; }

section { padding-block: clamp(4rem, 10vh, 7rem); }

.kicker {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ember-hot);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: .8em;
}

.orn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(420px, 70vw);
  margin-inline: auto;
  color: var(--ember);
  font-size: 1.05rem;
  line-height: 1;
}
.orn::before, .orn::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline));
}
.orn::after { background: linear-gradient(90deg, var(--hairline), transparent); }

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
}
.monogram {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .28em;
  color: var(--cream);
  text-decoration: none;
}
.monogram em { font-style: normal; color: var(--ember-hot); }
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.topbar nav a {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color .25s ease;
}
.topbar nav a:hover { color: var(--cream); }

/* ---------- masthead ---------- */

.masthead {
  min-height: 96vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.masthead-inner { display: flex; flex-direction: column; align-items: center; }

.rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.rail--left  { left: clamp(.6rem, 2.4vw, 2.4rem); transform: translateY(-50%) rotate(180deg); }
.rail--right { right: clamp(.6rem, 2.4vw, 2.4rem); }
.rail .kanji {
  display: block;
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .55em;
  color: var(--ember);
  margin-bottom: 1.4em;
}
/* the left rail is flipped to read bottom-to-top; keep its kanji upright */
.rail--left .kanji { transform: rotate(180deg); }

.seal {
  width: clamp(92px, 11vw, 124px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(201, 163, 92, .55),
    0 0 0 10px var(--ember),
    0 0 0 11px rgba(201, 163, 92, .45),
    0 22px 60px -18px rgba(226, 87, 60, .45);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}
.seal:hover {
  transform: rotate(-3deg) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(201, 163, 92, .55),
    0 0 0 10px var(--ember),
    0 0 0 11px rgba(201, 163, 92, .45),
    0 26px 80px -16px rgba(226, 87, 60, .65);
}

.wordmark-kicker {
  margin-top: 2.4rem;
  color: var(--dim);
}
.wordmark-kicker::before { display: none; }

.wordmark {
  font-family: var(--serif-display);
  font-optical-sizing: auto;
  line-height: .98;
  margin-top: .9rem;
}
.wordmark-main {
  display: block;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(3rem, 9.5vw, 6.9rem);
  letter-spacing: -.015em;
  text-shadow: 0 0 90px rgba(226, 87, 60, .28);
}
.press-word {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(.68rem, 1.4vw, .88rem);
  letter-spacing: .62em;
  text-indent: .62em;
  color: var(--gold);
}
.press-word::before, .press-word::after {
  content: "";
  width: clamp(30px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 92, .7));
}
.press-word::after { background: linear-gradient(90deg, rgba(201, 163, 92, .7), transparent); }

.tagline {
  margin-top: 1.9rem;
  font-style: italic;
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  color: var(--dim);
  max-width: 36ch;
}

.genres {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .9em;
  margin-top: 1.7rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}
.genres li + li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: .9em;
  letter-spacing: 0;
}

.scroll-cue {
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .3s ease;
}
.scroll-cue:hover { color: var(--cream); }
.scroll-cue span.arrow {
  color: var(--ember-hot);
  font-size: 1.05rem;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* masthead entrance order (replaces per-element inline delays) */
.masthead-inner > :nth-child(1) { --i: 0; }
.masthead-inner > :nth-child(2) { --i: 1; }
.masthead-inner > :nth-child(3) { --i: 2; }
.masthead-inner > :nth-child(4) { --i: 3; }
.masthead-inner > :nth-child(5) { --i: 4; }
.masthead-inner > :nth-child(6) { --i: 5; }

/* ---------- manifesto ---------- */

.manifesto { padding-block: clamp(3rem, 8vh, 5rem) clamp(4rem, 10vh, 6.5rem); }
.manifesto .wrap { max-width: 720px; }
.manifesto p.lede {
  margin-top: 2rem;
  font-size: clamp(1.18rem, 2.4vw, 1.45rem);
  line-height: 1.62;
  color: var(--cream);
}
.manifesto p.lede::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 4.1em;
  line-height: .82;
  padding-right: .14em;
  padding-top: .06em;
  color: var(--ember);
}
.manifesto p.sub {
  margin-top: 1.4rem;
  font-size: 1.04rem;
  color: var(--dim);
  max-width: 58ch;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9em 1.6em;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats li { list-style: none; display: flex; align-items: center; gap: 1.6em; }
.stats li + li::before { content: "\2726"; color: var(--gold); letter-spacing: 0; }
.stats strong { color: var(--cream); font-weight: 500; }

/* ---------- worlds ---------- */

.worlds-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3.2rem;
}
.worlds-head h2,
.section-title {
  font-family: var(--serif-display);
  font-optical-sizing: auto;
  font-weight: 450;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-top: 1rem;
}
.worlds-note {
  font-style: italic;
  color: var(--faint);
  font-size: .95rem;
  max-width: 30ch;
  text-align: right;
}

.worlds-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.vol-card {
  position: relative;
  padding: 2.3rem 1.9rem 2rem;
  background: linear-gradient(165deg, rgba(240, 230, 210, .045), rgba(240, 230, 210, .015));
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: visible;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1),
              border-color .4s ease,
              box-shadow .4s ease,
              background .4s ease;
}
.vol-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(240, 230, 210, .07);
  pointer-events: none;
}
.vol-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--w) 45%, transparent);
  background: linear-gradient(165deg, rgba(240, 230, 210, .07), rgba(240, 230, 210, .02));
  box-shadow: 0 34px 60px -32px color-mix(in srgb, var(--w) 55%, transparent);
}
.vol-card:hover .vol-numeral { opacity: .3; }
.vol-numeral {
  position: absolute;
  top: -1.9rem;
  right: .4rem;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4.4rem, 7vw, 6.4rem);
  line-height: 1;
  color: var(--w);
  opacity: .15;
  pointer-events: none;
  transition: opacity .4s ease;
}
.vol-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--w);
}
.vol-card h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.12;
  margin-top: .85rem;
}
.vol-epithet {
  margin-top: .8rem;
  font-size: .98rem;
  color: var(--dim);
}
.vol-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45em;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--w) 75%, var(--dim));
}
.vol-tags li {
  border: 1px solid color-mix(in srgb, var(--w) 35%, transparent);
  border-radius: 999px;
  padding: .32em .85em;
}

/* stretched link making an entire card clickable */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* world ink colors */
.vol-card--ochre  { --w: #dd9a41; }
.vol-card--tide   { --w: #4aa8a4; }
.vol-card--sol    { --w: #e8c15a; }
.vol-card--jungle { --w: #7fb069; }

/* staggered reveal order within the grid (replaces inline delays) */
.worlds-grid .vol-card:nth-child(2) { --d: 130ms; }
.worlds-grid .vol-card:nth-child(3) { --d: 260ms; }
.worlds-grid .vol-card:nth-child(4) { --d: 390ms; }

/* ---------- featured project ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: clamp(2.4rem, 6vw, 4.6rem);
  align-items: center;
}
.plate-wrap { position: relative; }
/* compact framed portrait variant (about page) */
.plate-wrap--small {
  max-width: clamp(180px, 24vw, 240px);
  margin-inline: auto;
}
.plate {
  padding: 13px;
  background: rgba(240, 230, 210, .035);
  border: 1px solid rgba(201, 163, 92, .3);
  transform: rotate(-1.4deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.plate:hover { transform: rotate(0deg); }
.plate img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(240, 230, 210, .18);
}
/* book cover placement: keep full artwork, no cropping */
.plate--cover img {
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(240, 230, 210, .04);
}
.plate figcaption {
  margin-top: .8rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}
.stamp {
  position: absolute;
  top: -1.2rem;
  right: -1.3rem;
  z-index: 2;
  transform: rotate(7deg);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember-hot);
  border: 2px solid currentColor;
  border-radius: 4px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  padding: .6em 1em;
  background: rgba(14, 12, 19, .55);
  mix-blend-mode: screen;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23m)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' seed='7'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23m)'/%3E%3C/svg%3E");
  -webkit-mask-size: 130px;
          mask-size: 130px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.stamp:hover { transform: rotate(4deg) scale(1.05); }

.feature-copy h2 {
  font-family: var(--serif-display);
  font-optical-sizing: auto;
  font-weight: 470;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin-top: 1.1rem;
}
.feature-copy h2 em { font-style: italic; color: var(--ember-hot); }
.feature-copy .body {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--dim);
  font-size: 1.05rem;
}
.feature-copy .body strong { color: var(--cream); font-weight: 400; }
.feature-copy .body em { font-style: italic; }

/* staggered reveal order within the feature copy (replaces inline delays) */
.feature-copy h2   { --d: 100ms; }
.feature-copy .body { --d: 200ms; }
.feature-copy .btn  { --d: 300ms; }

.btn {
  position: relative;
  display: inline-block;
  margin-top: 2.2rem;
  padding: 1em 2.1em;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--ember);
  overflow: hidden;
  isolation: isolate;
  transition: color .4s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ember);
  transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateX(0); }
/* button variant for light surfaces (the slip) */
.btn--dark {
  color: #241b14;
  border-color: #b23c22;
}

/* standalone pages that center a single note */
.shell--error,
.shell--center {
  min-height: 82vh;
  display: grid;
  place-items: center;
}

/* ---------- newsletter slip ---------- */

.extras { display: grid; place-items: center; }
.slip {
  --slip-ink: #241b14;
  --slip-accent: #b23c22;
  width: min(660px, 94vw);
  background: linear-gradient(180deg, #f2e7d0, #e5d7bb);
  color: var(--slip-ink);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.6rem, 5vw, 3.2rem) 2.6rem;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .85);
  clip-path: polygon(
    0% 3%, 4% 0%, 8% 3%, 12% 1%, 16% 4%, 20% 1%, 25% 3%, 29% 0%, 33% 3%, 37% 1%,
    42% 4%, 46% 0%, 50% 3%, 54% 1%, 58% 4%, 63% 0%, 67% 3%, 71% 1%, 75% 4%, 79% 1%,
    83% 3%, 87% 0%, 91% 3%, 95% 1%, 100% 3%,
    100% 97%, 95% 99%, 91% 96%, 87% 99%, 83% 97%, 79% 100%, 75% 96%, 71% 99%,
    67% 97%, 63% 100%, 58% 96%, 54% 99%, 50% 97%, 46% 100%, 42% 96%, 37% 99%,
    33% 97%, 29% 100%, 25% 96%, 20% 99%, 16% 97%, 12% 100%, 8% 96%, 4% 99%, 0% 97%
  );
}
.slip .kicker { color: var(--slip-accent); }
.slip .kicker::before { background: var(--slip-accent); }
.slip h2 {
  font-family: var(--serif-display);
  font-weight: 520;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  margin-top: .9rem;
}
.slip .pitch {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(36, 27, 20, .82);
  max-width: 52ch;
}
.slip form {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}
.slip label {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #8a4b32;
}
.slip input[type="email"] {
  font-family: var(--serif-body);
  font-size: 1.08rem;
  color: var(--slip-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(36, 27, 20, .4);
  padding: .55em .1em;
  border-radius: 0;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.slip input[type="email"]::placeholder { color: rgba(36, 27, 20, .42); font-style: italic; }
.slip input[type="email"]:focus {
  outline: none;
  border-color: var(--slip-accent);
  box-shadow: 0 1px 0 0 var(--slip-accent);
}
.slip button {
  justify-self: start;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #f6ecd8;
  background: var(--slip-accent);
  border: 0;
  padding: .95em 2.2em;
  transition: background .3s ease, transform .3s ease;
}
.slip button:hover { background: #9c3018; transform: translateY(-2px); }
.slip .disclaimer {
  margin-top: 1.7rem;
  font-size: .72rem;
  line-height: 1.65;
  color: rgba(36, 27, 20, .6);
}
.slip .disclaimer a { color: var(--slip-accent); text-underline-offset: 2px; }

/* hidden honeypot field (anti-spam trap) */
.hp-field { display: none; }

/* ---------- subpages ---------- */

.subheader {
  min-height: 56vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}
.subheader-inner { display: flex; flex-direction: column; align-items: center; }
.subheader .seal {
  width: clamp(72px, 8vw, 96px);
}
.subheader .kicker {
  margin-top: 1.9rem;
  color: var(--dim);
}
.subheader .kicker::before { display: none; }
.subheader h1 {
  font-family: var(--serif-display);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  letter-spacing: -.015em;
  line-height: .98;
  margin-top: 1rem;
  text-shadow: 0 0 90px rgba(226, 87, 60, .28);
}
.subheader-inner > :nth-child(1) { --i: 0; }
.subheader-inner > :nth-child(2) { --i: 1; }
.subheader-inner > :nth-child(3) { --i: 2; }

/* long-form prose (legal etc.) */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose h2 {
  font-family: var(--serif-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.005em;
  margin-top: 3.2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--hairline);
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--ember);
  vertical-align: middle;
  margin-right: .65em;
}
.prose h2:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.prose p {
  margin-top: 1.15rem;
  font-size: 1rem;
  color: var(--dim);
}
.prose strong { color: var(--cream); font-weight: 500; }
.prose a {
  color: var(--ember-hot);
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 77, .45);
  text-underline-offset: 3px;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.prose a:hover {
  color: var(--cream);
  text-decoration-color: currentColor;
}

/* button rows */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.btn-row .btn { margin-top: 0; }

/* ---------- colophon ---------- */

.colophon {
  border-top: 1px solid var(--hairline);
  padding: 3.4rem 0 3.8rem;
  text-align: center;
}
.byline {
  font-style: italic;
  color: var(--dim);
  font-size: 1rem;
}
.byline a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: var(--ember); }
.byline a:hover { color: var(--ember-hot); }

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.8rem 0;
}
.social-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease, transform .3s ease;
}
.social-link .social-icon-fill { fill: var(--dim); stroke: none; transition: fill .3s ease; }
.social-link:hover svg { stroke: var(--ember-hot); transform: translateY(-3px); }
.social-link:hover .social-icon-fill { fill: var(--ember-hot); }

.fineprint {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.fineprint a { color: var(--dim); }

/* ---------- reveal system ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* section-level reveal offsets (replaces inline delays) */
.manifesto .lede            { --d: 120ms; }
.manifesto .sub             { --d: 220ms; }
.manifesto .stats           { --d: 320ms; }
.worlds-head .section-title { --d: 100ms; }
.worlds-head .worlds-note   { --d: 200ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to   { opacity: 1; transform: none;             filter: blur(0);   }
}
[data-rise] {
  animation: rise 1s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--i, 0) * 130ms);
}

/* ---------- a11y / misc ---------- */

::selection { background: var(--ember); color: var(--ink); }

:focus-visible {
  outline: 2px dashed var(--ember-hot);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #251e33; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #38304a; }

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

@media (max-width: 940px) {
  .rail { display: none; }
}

@media (max-width: 840px) {
  .feature-grid { grid-template-columns: 1fr; }
  .plate-wrap { max-width: 420px; margin-inline: auto; }
  .stamp { right: -.6rem; }
  .worlds-note { text-align: left; }
}

@media (max-width: 560px) {
  .topbar { justify-content: center; flex-wrap: wrap; gap: .8rem; }
  .genres { flex-wrap: wrap; justify-content: center; }
  .genres li + li::before { margin-right: .9em; }
}
