:root {
  --ink: #eef7fb;
  --ink-soft: #a9bac5;
  --paper: #071016;
  --panel: #0b171f;
  --line: #203743;
  --cyan: #62ddff;
  --cyan-bright: #9aedff;
  --red: #e35b67;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 75% 0%, rgba(34, 167, 216, 0.08), transparent 34rem), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(98, 221, 255, 0.28); color: white; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.reading-wrap { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--cyan);
  color: #031017;
  font-weight: bold;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(135, 222, 247, 0.12);
  background: rgba(5, 13, 18, 0.92);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-mark { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-size: 0.83rem; letter-spacing: 0.04em; }
.site-nav a:hover, .site-nav a:focus { color: var(--cyan-bright); }

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  background: #030a0f;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 14, 0.97), rgba(3, 9, 14, 0.78) 30%, rgba(3, 9, 14, 0.12) 68%),
    linear-gradient(0deg, rgba(3, 9, 14, 0.92), transparent 45%);
}

.hero-copy { position: relative; z-index: 1; padding: 96px 0 74px; }
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: normal;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.hero-tagline {
  max-width: 510px;
  margin: 28px 0 0;
  color: #c3d1d9;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.button:hover { border-color: var(--cyan); }
.button-primary { border-color: var(--cyan); background: var(--cyan); color: #04131a; }
.button-primary:hover { background: var(--cyan-bright); }
.button-quiet { background: rgba(6, 18, 25, 0.72); color: white; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  padding: 88px 0 110px;
}

.section + .section { margin-top: 88px; }
.section h2, .sidebar-card h2, .page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.1;
}

.section h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.lede { max-width: 720px; margin: 28px 0 0; color: #d1dde2; font-family: var(--serif); font-size: 1.22rem; line-height: 1.85; }
.muted-note { color: #748894; font-size: 0.82rem; }
.section-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.chapter-count { padding-bottom: 5px; color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.arc-block { margin-top: 36px; border-top: 1px solid var(--line); }
.arc-label { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; color: var(--ink-soft); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.arc-label strong { color: var(--ink); }
.chapter-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.chapter-list li + li { border-top: 1px solid var(--line); }
.chapter-list a { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; min-height: 86px; padding: 12px 14px 12px 0; }
.chapter-list a:hover { background: linear-gradient(90deg, transparent, rgba(98, 221, 255, 0.055)); }
.chapter-number { color: var(--red); font-family: var(--serif); font-size: 1.1rem; }
.chapter-info { display: flex; flex-direction: column; gap: 2px; }
.chapter-info strong { font-family: var(--serif); font-size: 1.12rem; font-weight: normal; }
.chapter-info small { color: #718490; font-size: 0.76rem; }
.chapter-arrow { color: var(--cyan); font-size: 1.25rem; }

.sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-card { padding: 28px; border: 1px solid var(--line); background: rgba(12, 27, 36, 0.72); }
.sidebar-card h2 { font-size: 1.55rem; }
.sidebar-card p:not(.section-kicker) { color: var(--ink-soft); font-size: 0.9rem; }
.latest-card { border-top: 2px solid var(--red); }
.update-card { border-top: 2px solid var(--cyan); }
.text-link { color: var(--cyan-bright); font-size: 0.82rem; font-weight: bold; letter-spacing: 0.035em; text-transform: uppercase; }

.page-main { min-height: 72vh; padding: 76px 0 110px; }
.page-kicker { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; color: var(--cyan); font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; }
.page-kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.page-title { font-size: clamp(2.8rem, 8vw, 5.4rem); letter-spacing: -0.035em; }
.page-intro { margin: 24px 0 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.2rem; }
.page-rule { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.prose { color: #d4dfe4; font-family: var(--serif); font-size: 1.12rem; line-height: 1.9; }
.prose p { margin: 0 0 1.55em; }
.prose h2 { margin: 2.4em 0 0.7em; color: white; font-size: 1.65rem; font-weight: normal; }
.prose a { color: var(--cyan-bright); border-bottom: 1px solid rgba(98, 221, 255, 0.35); }

.card-list { display: grid; gap: 18px; }
.info-card, .cast-card, .faq-item, .support-card { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.card-meta, .cast-role { color: var(--cyan); font-size: 0.72rem; font-weight: bold; letter-spacing: 0.12em; text-transform: uppercase; }
.info-card h2, .cast-card h2, .faq-item summary, .support-card h2 { margin: 7px 0 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: normal; }
.info-card p, .cast-card p, .faq-item p, .support-card p { margin-bottom: 0; color: var(--ink-soft); }
.cast-card { display: grid; grid-template-columns: 72px 1fr; gap: 22px; }
.cast-initial { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #2f515e; background: #0b1c25; color: var(--cyan); font-family: var(--serif); font-size: 1.75rem; }
.spoiler-note { padding: 14px 18px; border-left: 2px solid var(--red); background: rgba(227, 91, 103, 0.07); color: #c7a6aa; font-size: 0.85rem; }
.support-card { padding: 38px; text-align: center; border-top: 2px solid var(--red); }
.support-card .button { margin-top: 22px; }
.faq-item summary { cursor: pointer; color: white; }
.faq-item[open] summary { color: var(--cyan-bright); }

.chapter-header { text-align: center; }
.chapter-header .page-kicker { justify-content: center; }
.chapter-meta { margin: 20px 0 0; color: #718490; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.chapter-body { margin-top: 58px; }
.chapter-body p:first-child::first-letter { float: left; margin: 0.11em 0.12em 0 0; color: var(--cyan); font-size: 4.7rem; line-height: 0.72; }
.chapter-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.chapter-nav a { padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.chapter-nav a:last-child { text-align: right; }
.chapter-nav small { display: block; color: var(--ink-soft); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chapter-nav strong { display: block; margin-top: 4px; color: var(--cyan-bright); font-family: var(--serif); font-weight: normal; }
.chapter-nav .disabled { opacity: 0.45; }

.site-footer { border-top: 1px solid var(--line); color: #6f828c; font-size: 0.74rem; }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media (max-width: 820px) {
  .header-inner { min-height: 62px; align-items: stretch; flex-direction: column; gap: 0; padding-top: 14px; }
  .wordmark { justify-content: center; }
  .site-nav { width: 100%; gap: 22px; overflow-x: auto; padding: 10px 0 12px; }
  .site-nav a { white-space: nowrap; }
  .hero { min-height: 560px; }
  .hero-art { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3, 9, 14, 0.96), rgba(3, 9, 14, 0.45) 62%, rgba(3, 9, 14, 0.1)); }
  .hero-copy { padding: 220px 0 54px; }
  .content-grid { grid-template-columns: 1fr; gap: 64px; padding: 66px 0 80px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap, .reading-wrap { width: min(100% - 28px, 1120px); }
  .hero { min-height: 520px; }
  .hero h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .hero-actions .button { width: 100%; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .chapter-list a { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .arc-label { grid-template-columns: 70px 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .cast-card { grid-template-columns: 1fr; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a:last-child { text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

