:root {
  --ink: #090c0f;
  --surface: #11171b;
  --paper: #e8e5dc;
  --muted: #a9b0b2;
  --line: rgba(232, 229, 220, .18);
  --red: #ed3b32;
  --cyan: #6ce5f2;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10; height: 6rem; padding: 0 clamp(1.25rem, 4vw, 5rem);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; font: 700 1.7rem/1 var(--display); letter-spacing: -.04em; }
.wordmark span { color: var(--paper); }
.wordmark strong { color: var(--red); font-weight: 800; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.8rem); }
nav a { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
nav a:not(.nav-buy):hover { color: var(--cyan); }
.nav-buy { padding: .65rem 1rem; border: 1px solid var(--red); }
.nav-buy:hover { background: var(--red); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: inherit; padding: .45rem .7rem; }

.hero {
  min-height: 100svh; padding: 9rem clamp(1.25rem, 4vw, 5rem) 4rem;
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(21rem, 1.12fr); align-items: center; gap: clamp(2rem, 6vw, 7rem);
  position: relative; overflow: hidden; background: radial-gradient(circle at 18% 70%, rgba(237,59,50,.12), transparent 30%), var(--ink);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 4rem 4rem; mask-image: linear-gradient(90deg,#000,transparent 70%); }
.hero-copy { position: relative; z-index: 1; max-width: 39rem; }
.eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .72rem; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(5.2rem, 11vw, 10rem); font-weight: 700; letter-spacing: -.055em; line-height: .74; }
h1 em { display: inline-block; margin-left: clamp(1rem, 4vw, 4.5rem); color: transparent; -webkit-text-stroke: 1px rgba(232,229,220,.72); font-style: normal; font-size: .55em; letter-spacing: -.025em; }
.hero-intro { max-width: 34rem; margin: 2.3rem 0 2rem; color: #c7cbca; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.button { min-height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid transparent; font-size: .77rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: #ff5148; }
.text-button { padding-left: 0; gap: .6rem; }
.text-button:hover { color: var(--cyan); }
.hero-art { position: relative; z-index: 1; margin: 0; min-height: min(67vh, 47rem); border: 1px solid var(--line); background: #0d1215; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(108,229,242,.12); box-shadow: inset 0 0 5rem rgba(0,0,0,.6); pointer-events: none; }
.hero-art img { width: 100%; height: min(67vh, 47rem); display: block; object-fit: cover; filter: saturate(.8) contrast(1.08); }
.hero-art figcaption { position: absolute; z-index: 2; inset: auto 0 0; display: flex; justify-content: space-between; padding: .75rem 1rem; background: rgba(9,12,15,.78); backdrop-filter: blur(8px); color: var(--cyan); font: 600 .63rem/1 var(--body); letter-spacing: .16em; }
.scroll-mark { position: absolute; bottom: 2rem; left: clamp(1.25rem,4vw,5rem); color: #6d7476; font-size: .65rem; letter-spacing: .2em; }

.world-section { position: relative; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 10rem); display: grid; grid-template-columns: .35fr .9fr 1fr; gap: 2rem 4rem; background: var(--paper); color: var(--ink); }
.section-number { font: 700 clamp(4rem, 8vw, 8rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(9,12,15,.18); }
.section-heading h2, .closing-section h2 { max-width: 48rem; margin: 0; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .85; letter-spacing: -.045em; }
.world-copy { max-width: 35rem; }
.world-copy p { color: #394044; }
.world-copy .lead { margin-top: 0; color: var(--ink); font: 500 clamp(1.45rem, 2.3vw, 2.1rem)/1.2 var(--display); text-transform: uppercase; }
.rules-grid { grid-column: 2 / -1; margin-top: 3rem; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(9,12,15,.2); border-bottom: 1px solid rgba(9,12,15,.2); }
.rules-grid article { min-height: 15rem; padding: 1.5rem; border-right: 1px solid rgba(9,12,15,.2); }
.rules-grid article:last-child { border: 0; }
.rules-grid span { color: var(--red); font-size: .7rem; letter-spacing: .15em; }
.rules-grid h3 { margin: 3.4rem 0 .5rem; font-size: 1.55rem; line-height: 1; }
.rules-grid p { margin: 0; color: #4f5759; font-size: .9rem; }

.saga-section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7.5rem); display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem 7vw; background: #dfe3de; color: var(--ink); }
.saga-section .section-heading h2 { font-size: clamp(3.5rem, 6.5vw, 6.5rem); }
.saga-intro { max-width: 38rem; }
.saga-intro .lead { margin-top: 0; font: 500 clamp(1.4rem,2.2vw,2rem)/1.1 var(--display); text-transform: uppercase; }
.saga-intro p:last-child { color: #4f5759; }
.saga-roadmap { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(9,12,15,.22); border-bottom: 1px solid rgba(9,12,15,.22); }
.saga-roadmap article { min-height: 13rem; padding: 1.2rem; border-right: 1px solid rgba(9,12,15,.22); }
.saga-roadmap article:last-child { border-right: 0; }
.saga-roadmap span { color: var(--red); font-size: .7rem; letter-spacing: .14em; }
.saga-roadmap h3 { margin: 3rem 0 .6rem; font-size: 1.45rem; line-height: 1; }
.saga-roadmap p { margin: 0; color: #4f5759; font-size: .84rem; line-height: 1.45; }
.saga-link { grid-column: 1 / -1; justify-self: start; border-color: var(--ink); color: var(--ink); }
.saga-link:hover { background: var(--ink); color: var(--paper); }

.figure-section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7.5rem); background: #10171a; }
.figure-section .section-heading { margin-bottom: 3rem; }
.figure-section .section-heading h2 { color: var(--paper); font-size: clamp(3.5rem, 6vw, 6rem); }
.figure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.figure-grid figure { position: relative; height: 27rem; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #070a0c; }
.figure-grid img { width: 100%; height: 100%; display: block; object-fit: contain; }
.figure-grid figure::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.9)); pointer-events: none; }
.figure-grid figcaption { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.figure-grid figcaption span { color: var(--cyan); font-size: .63rem; letter-spacing: .16em; }
.figure-grid figcaption strong { color: var(--paper); font: 600 1.65rem/1 var(--display); text-transform: uppercase; }

.books-section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7.5rem); display: grid; grid-template-columns: minmax(16rem,.58fr) minmax(0,1.42fr); gap: clamp(3rem,7vw,8rem); background: #12181c; }
.section-heading.inverted h2 { margin: 0 0 2rem; font-size: clamp(3.7rem, 6.6vw, 6.8rem); line-height: .85; letter-spacing: -.045em; }
.section-heading.inverted > p:last-child { max-width: 29rem; color: var(--muted); }
.catalog { display: grid; gap: 1.5rem; }
.book-card { padding: clamp(1rem,2vw,1.6rem); display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: clamp(1.3rem,3vw,3rem); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.book-card:hover { border-color: rgba(108,229,242,.5); transform: translateY(-2px); }
.book-cover { aspect-ratio: 2 / 3; position: relative; overflow: hidden; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 1rem 2.5rem rgba(0,0,0,.32); }
.novel-cover { background: #15100a; }
.novel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.altered-cover { background: linear-gradient(120deg,transparent 45%,rgba(108,229,242,.5) 46%,rgba(108,229,242,.1) 49%,transparent 51%), linear-gradient(160deg,#18262a,#060809 70%); }
.book-cover p { position: relative; z-index: 1; margin: 0; font: 700 clamp(1.4rem,2.1vw,2.2rem)/.9 var(--display); letter-spacing: -.04em; }
.book-cover p span { color: var(--red); }
.book-cover small { position: relative; z-index: 1; margin-top: .6rem; font-size: .55rem; letter-spacing: .18em; }
.book-info { align-self: center; }
.format { margin: 0; color: var(--cyan); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.book-info h3 { margin: .25rem 0 1rem; font-size: clamp(1.9rem,3vw,3rem); line-height: 1; }
.book-hook { color: var(--paper) !important; font: 500 clamp(1.25rem,2vw,1.7rem)/1.1 var(--display); text-transform: uppercase; }
.author-line { margin: -.55rem 0 1rem !important; color: #889194 !important; font-size: .72rem !important; letter-spacing: .08em; text-transform: uppercase; }
.book-info > p:not(.format) { max-width: 35rem; color: var(--muted); font-size: .92rem; }
.purchase-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.purchase-button { min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid var(--red); background: var(--red); color: white; cursor: pointer; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.purchase-button:hover { background: #ff5148; }
.purchase-button.ghost { background: transparent; border-color: var(--line); }
.purchase-button.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.store-note { grid-column: 2; margin: 0; color: #6f777a; font-size: .75rem; }

.novel-gallery { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7.5rem); background: #080b0e; }
.gallery-heading { max-width: 42rem; margin-bottom: 3rem; }
.gallery-heading h2 { margin: 0 0 1.25rem; font-size: clamp(3.2rem, 6vw, 6rem); line-height: .85; letter-spacing: -.04em; }
.gallery-heading > p:last-child { color: var(--muted); }
.gallery-carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.gallery-track { min-width: 0; }
.gallery-card { position: relative; display: none; height: min(26rem, 62vw); margin: 0; overflow: hidden; border: 1px solid var(--line); background: #11171b; }
.gallery-card.active { display: block; }
.gallery-carousel { max-width: 62rem; margin: 0 auto; }
.gallery-card img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .5s ease; }
.gallery-card:hover img { transform: scale(1.015); }
.gallery-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.86)); pointer-events: none; }
.gallery-card figcaption { position: absolute; z-index: 1; right: 1rem; bottom: 1rem; left: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.gallery-card figcaption span { color: var(--cyan); font-size: .65rem; letter-spacing: .18em; }
.gallery-card figcaption strong { font: 600 1.65rem/1 var(--display); text-transform: uppercase; }
.carousel-arrow { width: 2.8rem; height: 2.8rem; border: 1px solid var(--line); background: transparent; color: var(--paper); cursor: pointer; font-size: 1.25rem; }
.carousel-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.carousel-dots { grid-column: 2; display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.carousel-dot { width: .55rem; height: .55rem; padding: 0; border: 1px solid var(--muted); border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dot.active { border-color: var(--red); background: var(--red); }

.altered-section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7.5rem); background: #cfd6d5; color: var(--ink); }
.altered-title { max-width: 56rem; margin-bottom: 4rem; }
.altered-title h2 { margin: 0; font-size: clamp(5rem, 12vw, 12rem); line-height: .72; letter-spacing: -.055em; }
.altered-title > p:last-child { max-width: 41rem; margin-top: 2rem; font-size: 1.05rem; }
.character-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(9,12,15,.25); }
.character-strip article { min-height: 16rem; padding: 1.25rem; display: flex; flex-direction: column; border-right: 1px solid rgba(9,12,15,.25); }
.character-strip article:last-child { border-right: 0; }
.character-index { color: #687173; font-size: .66rem; letter-spacing: .15em; }
.character-strip h3 { margin: auto 0 0; font-size: clamp(1.8rem,3vw,3.2rem); line-height: 1; }
.character-strip p { margin: .2rem 0 .7rem; }
.character-strip small { color: #4c5558; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.altered-teaser { position: relative; max-width: 58rem; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.teaser-track { min-width: 0; }
.teaser-card { position: relative; display: none; width: min(100%, 22rem); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; border: 1px solid rgba(9,12,15,.25); background: #abb6b5; }
.teaser-card.active { display: block; }
.teaser-card img { width: 100%; height: 100%; display: block; object-fit: contain; }
.teaser-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 2.5rem 1rem .9rem; background: linear-gradient(transparent, rgba(9,12,15,.9)); color: #fff; }
.teaser-card figcaption span { color: var(--cyan); font-size: .62rem; letter-spacing: .16em; }
.teaser-card figcaption strong { font: 700 2rem/1 var(--display); text-transform: uppercase; }
.teaser-card figcaption small { color: #d4d9d8; font-size: .76rem; }
.teaser-arrow { width: 2.8rem; height: 2.8rem; border: 1px solid rgba(9,12,15,.3); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.25rem; }
.teaser-arrow:hover { border-color: var(--red); color: var(--red); }
.teaser-dots { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1rem; }
.teaser-dot { width: .5rem; height: .5rem; padding: 0; border: 1px solid #5f6b6c; border-radius: 50%; background: transparent; cursor: pointer; }
.teaser-dot.active { border-color: var(--red); background: var(--red); }

.closing-section { min-height: 70svh; padding: 6rem 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, rgba(237,59,50,.14), transparent 42%), #080b0e; }
.closing-section h2 { margin-bottom: 2.5rem; }
.closing-section h2 em { color: var(--cyan); font-style: normal; }
.button.light { color: #fff; }
footer { min-height: 8rem; padding: 2rem clamp(1.25rem,4vw,5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: #737b7d; font-size: .72rem; }
footer p { text-align: center; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:last-child { text-transform: uppercase; letter-spacing: .1em; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 2rem; width: min(90vw, 30rem); padding: .9rem 1.1rem; transform: translate(-50%, 8rem); opacity: 0; background: var(--paper); color: var(--ink); border-left: 4px solid var(--red); box-shadow: 0 1rem 3rem rgba(0,0,0,.45); transition: .25s ease; font-size: .85rem; }
.toast.visible { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-art { min-height: 25rem; }
  .hero-art img { height: 30rem; }
  .scroll-mark { display: none; }
  .world-section { grid-template-columns: auto 1fr; }
  .world-copy { grid-column: 2; }
  .rules-grid { grid-column: 1 / -1; }
  .books-section { grid-template-columns: 1fr; }
  .store-note { grid-column: 1; }
  .gallery-card { height: min(24rem, 72vw); }
  .teaser-card { width: min(100%, 18rem); }
  .character-strip { grid-template-columns: repeat(2,1fr); }
  .character-strip article:nth-child(2) { border-right: 0; }
  .character-strip article:nth-child(-n+2) { border-bottom: 1px solid rgba(9,12,15,.25); }
}

@media (max-width: 680px) {
  .site-header { height: 5rem; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 5rem; left: 0; right: 0; padding: 1rem 1.25rem 1.5rem; display: none; align-items: stretch; flex-direction: column; background: rgba(9,12,15,.97); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: .65rem 0; }
  .nav-buy { text-align: center; }
  h1 { font-size: clamp(4.6rem, 25vw, 7rem); }
  h1 em { margin-left: 0; }
  .hero-art { min-height: 22rem; }
  .hero-art img { height: 24rem; }
  .hero-art figcaption span:last-child { display: none; }
  .world-section { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-number { display: none; }
  .world-copy, .rules-grid { grid-column: 1; }
  .saga-section { grid-template-columns: 1fr; }
  .saga-roadmap { grid-template-columns: 1fr; }
  .saga-roadmap article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(9,12,15,.22); }
  .saga-roadmap article:last-child { border-bottom: 0; }
  .saga-roadmap h3 { margin-top: 1.5rem; }
  .figure-grid { grid-template-columns: 1fr; }
  .figure-grid figure { height: 22rem; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(9,12,15,.2); }
  .rules-grid h3 { margin-top: 2rem; }
  .book-card { grid-template-columns: 7.5rem 1fr; padding: .8rem; }
  .book-info h3 { font-size: 1.65rem; }
  .book-info > p:not(.format) { font-size: .82rem; }
  .purchase-row { gap: .5rem; }
  .purchase-button { width: 100%; }
  .character-strip { grid-template-columns: 1fr; }
  .character-strip article { min-height: 12rem; border-right: 0; border-bottom: 1px solid rgba(9,12,15,.25); }
  .gallery-carousel { gap: .5rem; }
  .carousel-arrow { width: 2.2rem; height: 2.2rem; }
  .altered-teaser { gap: .5rem; }
  .teaser-arrow { width: 2.2rem; height: 2.2rem; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
