/* SHOOTHIS — digital book edition */

:root {
  color-scheme: dark;
  --ink: #0a0b0b;
  --ink-2: #111313;
  --ink-3: #191c1b;
  --paper: #f1eee4;
  --paper-soft: #c8c7be;
  --muted: #868b87;
  --line: rgba(241, 238, 228, 0.17);
  --line-strong: rgba(241, 238, 228, 0.38);
  --signal: #d8ff42;
  --cyan: #84e6ff;
  --orange: #ff704f;
  --purple: #be9cff;
  --yellow: #ffbf56;
  --red: #ff5d5d;
  --green: #89e78c;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1440px, calc(100vw - 56px));
  --radius: 2px;
  --header-height: 74px;
}

html[data-theme="paper"] {
  color-scheme: light;
  --ink: #e9e4d7;
  --ink-2: #f3efe6;
  --ink-3: #ddd7c9;
  --paper: #171918;
  --paper-soft: #454943;
  --muted: #666b65;
  --line: rgba(23, 25, 24, 0.17);
  --line-strong: rgba(23, 25, 24, 0.38);
  --signal: #557300;
  --cyan: #006b7c;
  --orange: #a62c13;
  --purple: #6542a5;
  --yellow: #8a5700;
  --red: #b32020;
  --green: #246c2c;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 2%, rgba(132, 230, 255, 0.055), transparent 25rem),
    linear-gradient(180deg, var(--ink), var(--ink));
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: background-color 240ms ease, color 240ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
}

::selection {
  background: var(--signal);
  color: #0a0b0b;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
audio {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
audio:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

hr {
  width: var(--shell);
  margin: 80px auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.brand-mark,
.brand .dot {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  color: var(--signal);
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1;
}

.brand .dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border: 0;
  background: var(--signal);
  box-shadow: 0 0 20px rgba(216, 255, 66, 0.55);
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.links a {
  position: relative;
  padding: 8px 0;
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.links a:hover,
.links a.active {
  color: var(--paper);
}

.links a:hover::after,
.links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.edition-mark {
  justify-self: end;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  gap: 8px;
}

.theme-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink-2) 88%, transparent);
  color: var(--paper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.section-shell,
.container {
  width: var(--shell);
  margin: 0 auto;
}

.section-shell {
  padding: 120px 0;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
  padding-top: 13px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 80px;
  align-items: end;
}

.section-heading h2,
.editorial-intro h2,
.archive-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.section-heading h2 em,
.editorial-intro h2 em,
.archive-copy h2 em {
  color: var(--signal);
  font-weight: 400;
}

.section-heading > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--paper-soft);
  font-size: 15px;
}

.eyebrow,
.meta,
.tagline,
.role {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 18px;
  color: var(--signal);
}

.btn {
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:hover {
  border-color: var(--paper);
  transform: translateY(-2px);
}

.btn-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: #0a0b0b;
}

.btn-primary:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn-quiet {
  background: transparent;
}

.text-link,
.more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link::before {
  width: 20px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::before {
  width: 34px;
}

/* Cover */

.cover-hero {
  position: relative;
  width: var(--shell);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 52px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  overflow: hidden;
}

.cover-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0px, 4vw, 60px);
}

.cover-copy h1 {
  margin: 34px 0 30px;
  font-family: var(--font-serif);
  font-size: clamp(82px, 10.5vw, 164px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.65;
}

.cover-copy h1 span,
.cover-copy h1 em {
  display: block;
}

.cover-copy h1 em {
  margin: 26px 0 0 clamp(12px, 8vw, 126px);
  color: var(--signal);
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.hero-deck {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-facts {
  max-width: 700px;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.book-facts > div {
  padding: 15px 12px 0 0;
}

.book-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-facts dd {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
}

.cover-art {
  position: relative;
  z-index: 1;
  margin: 0;
  align-self: stretch;
  min-height: 620px;
}

.image-frame {
  position: absolute;
  inset: 0 0 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 54%, rgba(5, 7, 7, 0.82) 100%),
    linear-gradient(90deg, rgba(132, 230, 255, 0.08), transparent 45%);
  mix-blend-mode: multiply;
}

.image-frame::after {
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  content: "";
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
  transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 900ms ease;
}

.cover-art:hover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.018);
}

.cover-art figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-folio {
  position: absolute;
  right: 38.5%;
  bottom: 10px;
  color: var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  writing-mode: vertical-rl;
}

.signal-strip {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--signal);
  border-bottom: 1px solid var(--signal);
  background: var(--signal);
  color: #0a0b0b;
}

.signal-strip > div {
  width: max-content;
  min-width: 100%;
  padding: 11px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-strip i {
  font-style: normal;
}

/* Editorial opening */

.editorial-intro {
  padding-bottom: 160px;
}

.editorial-intro blockquote {
  max-width: 1180px;
  margin: 0 0 110px;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: clamp(50px, 7.2vw, 110px);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.editorial-intro blockquote::first-letter {
  color: var(--signal);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 90px;
  align-items: start;
}

.intro-copy {
  max-width: 560px;
  padding-top: 6px;
}

.intro-copy p {
  margin: 0 0 22px;
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.85;
}

.dropcap {
  float: left;
  margin: -7px 8px -2px 0;
  color: var(--signal);
  font-family: var(--font-serif);
  font-size: 74px;
  line-height: 0.88;
}

.intro-copy .author-line {
  margin-top: 48px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
}

.author-line span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-line strong {
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
}

/* Volumes */

.volumes-section {
  padding-top: 0;
}

.volume-stack {
  border-top: 1px solid var(--line-strong);
}

.volume {
  position: relative;
  min-height: 410px;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.62fr) minmax(290px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(22px, 3.6vw, 56px);
  align-items: start;
  border-bottom: 1px solid var(--line-strong);
}

.volume-number {
  color: var(--volume-accent);
  font-family: var(--font-serif);
  font-size: 58px;
  font-style: italic;
  line-height: 1;
}

.volume-cover {
  aspect-ratio: 4 / 5;
  max-height: 345px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.volume-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08);
  transition: filter 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.volume:hover .volume-cover img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.035);
}

.volume-copy {
  min-height: 340px;
  padding: 3px 0 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.volume-copy .meta {
  color: var(--volume-accent);
}

.volume-copy h3 {
  margin: 24px 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.volume-copy > p:not(.meta) {
  max-width: 390px;
  margin: 0;
  color: var(--paper-soft);
  font-size: 13px;
  line-height: 1.75;
}

.volume-copy .text-link {
  margin-top: auto;
}

.volume-index {
  width: 100%;
  border-top: 1px solid var(--line);
}

.volume-index summary {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.volume-index summary::-webkit-details-marker {
  display: none;
}

.volume-index summary::before {
  content: "+";
  color: var(--volume-accent);
  font-size: 17px;
  line-height: 1;
}

.volume-index[open] summary::before {
  content: "−";
}

.volume-index summary span {
  margin-right: auto;
}

.volume-index summary b {
  color: var(--muted);
  font-weight: 400;
}

.chapter-list {
  max-height: 275px;
  margin: 2px 0 0;
  padding: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  list-style: none;
  scrollbar-color: var(--volume-accent) transparent;
  scrollbar-width: thin;
}

.chapter-list li {
  margin: 0;
}

.chapter-list a {
  padding: 10px 3px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.25;
  transition: color 160ms ease, padding-left 160ms ease;
}

.chapter-list a span {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.chapter-list a:hover {
  padding-left: 8px;
  color: var(--volume-accent);
}

/* Dossiers */

.dossiers-section {
  padding-top: 80px;
}

.dossiers-heading {
  align-items: center;
}

.dossiers-heading .text-link {
  justify-self: end;
}

.dossier-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.dossier-card {
  position: relative;
  padding-bottom: 24px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}

.dossier-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 500ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.dossier-card:hover img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.025);
}

.dossier-card > span,
.dossier-card > strong,
.dossier-card > small {
  margin-right: 22px;
  margin-left: 22px;
}

.dossier-id {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-card strong {
  margin-top: 11px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dossier-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

/* Archive */

.archive-section {
  padding-top: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 0;
}

.archive-art {
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.archive-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.64) contrast(1.08);
}

.archive-copy {
  padding: clamp(44px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-left: 0;
  background: var(--ink-2);
}

.archive-copy h2 {
  margin: 42px 0 34px;
  font-size: clamp(48px, 5.4vw, 84px);
}

.archive-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 38px;
  color: var(--paper-soft);
  font-size: 14px;
}

.archive-copy .btn {
  align-self: flex-start;
}

/* Downloads */

.downloads-section {
  padding-top: 80px;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
}

.edition-grid > a {
  min-height: 112px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.edition-grid > a:nth-child(odd) {
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.edition-grid > a:nth-child(even) {
  padding-left: 34px;
}

.edition-grid > a:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--signal);
  color: #0a0b0b;
}

.edition-grid > a > span {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 34px;
  font-style: italic;
}

.edition-grid > a:hover > span {
  color: #0a0b0b;
}

.edition-grid strong,
.edition-grid small {
  display: block;
}

.edition-grid strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.edition-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.edition-grid > a:hover small {
  color: rgba(10, 11, 11, 0.68);
}

.edition-grid b {
  justify-self: end;
  font-size: 22px;
  font-weight: 400;
}

.audio-note {
  margin-top: 48px;
  padding: 24px;
  display: grid;
  grid-template-columns: 180px 1fr minmax(240px, 380px);
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
}

.audio-note > span {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.audio-note strong,
.audio-note small {
  display: block;
}

.audio-note strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.audio-note small {
  color: var(--muted);
  font-size: 11px;
}

.audio-note audio {
  width: 100%;
  height: 38px;
  filter: grayscale(1) contrast(1.05);
}

/* Existing character and card structures */

.container {
  padding-top: 52px;
  padding-bottom: 80px;
}

.container > section:first-child {
  padding: 46px 0 64px !important;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 70px;
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
}

.container > section:first-child .tagline {
  color: var(--signal) !important;
}

.container > section:first-child h1 {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(74px, 10vw, 150px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.container > section:first-child > p {
  max-width: 760px !important;
  margin: 0;
  color: var(--paper-soft) !important;
  font-size: 15px !important;
  line-height: 1.8;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 64px 0 0;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
}

.char {
  min-width: 0;
  display: grid;
  grid-template-columns: 40% 60%;
  background: var(--ink);
  overflow: hidden;
}

.char .portrait {
  min-height: 390px;
  overflow: hidden;
  background: var(--ink-2);
}

.char .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.78) contrast(1.08);
  transition: filter 500ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.char:hover .portrait img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

.char .body {
  padding: clamp(24px, 3vw, 44px);
}

.char .role {
  color: var(--signal);
}

.char h3 {
  margin: 30px 0 2px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.char .alias {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.char p {
  margin: 28px 0 0;
  color: var(--paper-soft);
  font-size: 12px;
  line-height: 1.75;
}

code {
  padding: 0.08em 0.25em;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.87em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
  background: var(--ink);
  transition: background 180ms ease;
}

.card:hover {
  background: var(--ink-2);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition: filter 500ms ease, transform 600ms ease;
}

.card:hover .thumb img {
  filter: saturate(1);
  transform: scale(1.03);
}

.card .body {
  padding: 28px;
}

.card .meta {
  color: var(--signal);
}

.card h3 {
  margin: 18px 0 12px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card p {
  color: var(--paper-soft);
  font-size: 12px;
}

.container > section > h2 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

/* Reading pages */

.story-hero {
  position: relative;
  width: var(--shell);
  height: min(74vh, 780px);
  min-height: 520px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
}

.story-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.06) 30%, rgba(5, 7, 7, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 7, 7, 0.35), transparent 55%);
  pointer-events: none;
}

.story-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.08);
}

.story-hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(30px, 6vw, 88px);
  display: flex;
  align-items: flex-end;
}

.story-hero .overlay > div {
  max-width: 960px;
}

.story-hero .meta {
  color: var(--signal);
}

.story-hero h1 {
  max-width: 980px;
  margin: 20px 0 0;
  color: #f1eee4;
  font-family: var(--font-serif);
  font-size: clamp(60px, 8.5vw, 128px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.84;
  text-wrap: balance;
}

.read-time {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(241, 238, 228, 0.34);
  color: rgba(241, 238, 228, 0.66);
}

.story-body {
  width: min(780px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.prose {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.012em;
  line-height: 1.78;
}

.prose p {
  margin: 0 0 1.35em;
  color: var(--paper-soft);
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 0.04em 0.12em 0 0;
  color: var(--signal);
  font-size: 4.25em;
  line-height: 0.75;
}

.prose strong {
  color: var(--paper);
  font-weight: 500;
}

.prose em {
  color: var(--paper);
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose blockquote,
.article blockquote {
  margin: 2.4em 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--signal);
  color: var(--paper);
  font-style: italic;
}

.chapter-nav {
  margin-top: 86px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-sans);
  font-size: 12px;
}

.chapter-nav a {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--paper-soft);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.chapter-nav a:hover {
  border-color: var(--signal);
  background: var(--ink-2);
  color: var(--paper);
}

.chapter-nav .next {
  justify-content: flex-end;
  text-align: right;
}

/* ChronoChainPedia */

.wiki {
  width: var(--shell);
  margin: 0 auto;
  padding: 70px 0 110px;
  display: grid;
  grid-template-columns: 210px minmax(0, 820px) 190px;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 64px);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  max-height: calc(100vh - var(--header-height) - 52px);
  padding: 0 !important;
  overflow: auto;
  border: 0 !important;
}

.sidebar h4 {
  margin: 0 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar h4:not(:first-child) {
  margin-top: 28px;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.sidebar a:hover {
  color: var(--paper);
}

.article {
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
}

.article > h1 {
  margin: 0;
  font-size: clamp(64px, 7.6vw, 116px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.article .subtitle {
  margin: 26px 0 50px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article p,
.article li {
  color: var(--paper-soft);
}

.article a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.article h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.article h3 {
  margin: 2em 0 0.5em;
  color: var(--paper);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.article hr {
  width: 100%;
  margin: 70px 0;
}

.infobox {
  width: 300px;
  margin: 0 0 30px 38px;
  float: right;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
}

.infobox img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.infobox h4 {
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.infobox table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 10px;
}

.infobox td {
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--paper-soft);
}

.infobox td:first-child {
  width: 36%;
  color: var(--muted);
}

.toc {
  margin: 45px 0;
  padding: 24px 28px;
  clear: both;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 12px;
}

.toc h4 {
  margin: 0 0 12px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
}

.badge.green { color: var(--green); }
.badge.cyan { color: var(--cyan); }
.badge.magenta { color: var(--purple); }
.badge.orange { color: var(--orange); }

/* Footer */

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 36px 0 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 !important;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer > p:only-child {
  grid-column: 1 / -1;
  text-align: center;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer strong {
  color: var(--paper);
  font-weight: 500;
}

/* Quiet reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 40px, 1120px);
  }

  .nav {
    grid-template-columns: auto 1fr;
  }

  .links {
    justify-content: flex-end;
  }

  .edition-mark {
    display: none;
  }

  .cover-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: 44px;
  }

  .cover-copy {
    padding-left: 0;
  }

  .cover-copy h1 {
    font-size: clamp(76px, 10.5vw, 124px);
  }

  .volume {
    grid-template-columns: 60px 210px minmax(240px, 0.75fr) minmax(330px, 1fr);
    gap: 26px;
  }

  .char-grid {
    grid-template-columns: 1fr;
  }

  .wiki {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .wiki > .sidebar:last-child {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
    --shell: calc(100% - 32px);
  }

  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .nav {
    min-height: var(--header-height);
    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .links {
    justify-content: flex-end;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    font-size: 9px;
  }

  .cover-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 64px 0 36px;
  }

  .cover-copy h1 {
    font-size: clamp(72px, 17vw, 138px);
  }

  .cover-copy h1 em {
    margin-left: clamp(10px, 14vw, 100px);
  }

  .cover-art {
    min-height: min(92vw, 780px);
  }

  .hero-folio {
    display: none;
  }

  .section-shell {
    padding: 90px 0;
  }

  .editorial-intro blockquote {
    margin-bottom: 80px;
  }

  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .intro-copy {
    max-width: 680px;
  }

  .volume {
    grid-template-columns: 52px minmax(190px, 0.7fr) minmax(280px, 1fr);
  }

  .volume-index {
    grid-column: 2 / -1;
  }

  .dossier-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-section {
    grid-template-columns: 1fr;
  }

  .archive-art {
    min-height: min(86vw, 680px);
  }

  .archive-copy {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .audio-note {
    grid-template-columns: 1fr 1fr;
  }

  .audio-note audio {
    grid-column: 1 / -1;
  }

  .container > section:first-child {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .container > section:first-child h1 {
    margin-top: 16px;
  }

  .grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki {
    grid-template-columns: 1fr;
  }

  .wiki > .sidebar:first-child {
    position: static;
    max-height: none;
    padding-bottom: 26px !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    border-bottom: 1px solid var(--line-strong) !important;
  }

  .wiki > .sidebar:first-child h4,
  .wiki > .sidebar:first-child ul {
    grid-column: span 1;
  }

  .wiki > .sidebar:first-child h4 {
    margin: 0 !important;
  }

  .wiki > .sidebar:first-child ul {
    margin-top: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .nav {
    width: 100%;
    padding: 10px 12px 9px;
    display: block;
  }

  .brand {
    margin-bottom: 8px;
  }

  .brand-mark,
  .brand .dot {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .links {
    justify-content: flex-start;
    gap: 18px;
  }

  .links a {
    padding: 2px 0;
  }

  .cover-hero {
    padding-top: 48px;
  }

  .cover-copy h1 {
    margin: 28px 0 26px;
    font-size: clamp(64px, 21vw, 104px);
    line-height: 0.68;
  }

  .cover-copy h1 em {
    margin-top: 20px;
    margin-left: 0;
    font-size: 0.39em;
    white-space: normal;
  }

  .hero-deck {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .book-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
  }

  .cover-art {
    min-height: 130vw;
  }

  .signal-strip > div {
    animation: signal-scroll 18s linear infinite;
  }

  @keyframes signal-scroll {
    to { transform: translateX(-50%); }
  }

  .section-label {
    margin-bottom: 44px;
  }

  .section-heading,
  .editorial-intro blockquote {
    margin-bottom: 58px;
  }

  .section-heading h2,
  .editorial-intro h2,
  .archive-copy h2 {
    font-size: clamp(48px, 15vw, 78px);
  }

  .editorial-intro blockquote {
    font-size: clamp(44px, 13vw, 72px);
  }

  .intro-grid {
    gap: 48px;
  }

  .volume {
    grid-template-columns: 42px 1fr;
    gap: 20px 14px;
  }

  .volume-cover {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .volume-copy,
  .volume-index {
    grid-column: 1 / -1;
  }

  .volume-copy {
    min-height: auto;
  }

  .volume-copy .text-link {
    margin-top: 34px;
  }

  .dossier-strip {
    grid-template-columns: 1fr;
  }

  .archive-section {
    width: 100%;
  }

  .archive-art {
    min-height: 105vw;
  }

  .archive-copy {
    padding: 44px 22px 52px;
  }

  .edition-grid {
    grid-template-columns: 1fr;
  }

  .edition-grid > a,
  .edition-grid > a:nth-child(odd),
  .edition-grid > a:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }

  .edition-grid > a:hover {
    padding-right: 12px;
    padding-left: 12px;
  }

  .audio-note {
    grid-template-columns: 1fr;
  }

  .audio-note audio {
    grid-column: auto;
  }

  .char-grid {
    border: 0;
    gap: 12px;
    background: transparent;
  }

  .char {
    grid-template-columns: 1fr;
    border: 1px solid var(--line-strong);
  }

  .char .portrait {
    min-height: 110vw;
  }

  .grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .story-hero {
    width: 100%;
    height: 66vh;
    min-height: 480px;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
  }

  .story-hero .overlay {
    padding: 30px 18px;
  }

  .story-hero h1 {
    font-size: clamp(52px, 17vw, 84px);
  }

  .read-time {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
  }

  .story-body {
    width: calc(100% - 32px);
    padding: 66px 0 90px;
  }

  .prose {
    font-size: 20px;
  }

  .chapter-nav {
    grid-template-columns: 1fr;
  }

  .infobox {
    width: 100%;
    margin: 0 0 34px;
    float: none;
  }

  .wiki {
    padding-top: 40px;
  }

  .wiki > .sidebar:first-child {
    display: none;
  }

  .article > h1 {
    font-size: clamp(52px, 16vw, 78px);
    overflow-wrap: anywhere;
  }

  .article {
    font-size: 17px;
  }

  .article h2 {
    font-size: 36px;
  }

  .site-footer {
    padding-bottom: 78px;
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    text-align: left;
  }

  .reader-tools {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --ink: #fff;
    --ink-2: #fff;
    --paper: #111;
    --paper-soft: #333;
    --muted: #666;
    --line: rgba(0, 0, 0, 0.2);
    --line-strong: rgba(0, 0, 0, 0.4);
    --signal: #111;
  }

  .site-header,
  .reader-tools,
  .reading-progress,
  .chapter-nav,
  .site-footer {
    display: none !important;
  }

  .story-hero {
    width: 100%;
    height: 38vh;
    min-height: 0;
    margin: 0;
  }

  .story-body {
    width: 100%;
    padding: 44px 0;
  }

  .prose {
    font-size: 12pt;
    line-height: 1.6;
  }
}
