@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@500;700&display=swap");

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

:root {
  color-scheme: dark;
  --bg: #111413;
  --panel: #181d1b;
  --ink: #f4eee3;
  --muted: rgba(244, 238, 227, 0.66);
  --faint: rgba(244, 238, 227, 0.42);
  --line: rgba(231, 220, 196, 0.14);
  --green: #7ba78e;
  --amber: #d6bf67;
  --rust: #ad5c46;
  --paper: #e9dfc9;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(24, 29, 27, 0.94), rgba(17, 20, 19, 0.98) 38%, #0d0f0f 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
}

::selection {
  background: rgba(214, 191, 103, 0.26);
}

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

.hero {
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem max(1.25rem, calc((100vw - 1180px) / 2)) 5.2rem;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 8, 0.1), rgba(7, 9, 8, 0.64) 58%, rgba(17, 20, 19, 0.98)),
    linear-gradient(90deg, rgba(7, 9, 8, 0.88), rgba(7, 9, 8, 0.45) 48%, rgba(7, 9, 8, 0.7)),
    url("/assets/screenshots/shot-01.webp");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 760px;
}

.series,
.eyebrow {
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.hero h1 {
  margin-top: 0.75rem;
  font-family: "Noto Serif SC", serif;
  font-size: 4rem;
  line-height: 1.08;
  font-weight: 700;
}

.subtitle {
  margin-top: 0.6rem;
  font-family: "Noto Serif SC", serif;
  font-size: 1.45rem;
  color: rgba(244, 238, 227, 0.84);
}

.lead {
  margin-top: 1.35rem;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-actions a,
.footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.58rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(214, 191, 103, 0.28);
  background: rgba(214, 191, 103, 0.12);
  color: #f7eecf;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.hero-actions a:hover,
.footer a:hover {
  transform: translateY(-1px);
  background: rgba(214, 191, 103, 0.2);
  border-color: rgba(214, 191, 103, 0.46);
}

.scene-band {
  padding: 3.5rem max(1rem, calc((100vw - 1180px) / 2)) 3.8rem;
  background:
    linear-gradient(180deg, rgba(17, 20, 19, 0.98), rgba(21, 27, 24, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(255, 255, 255, 0.025) 43px 44px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.65rem;
  line-height: 1.25;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.scene {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scene.large {
  grid-column: span 2;
}

.scene.wide {
  grid-column: span 2;
}

.scene img {
  width: 100%;
  aspect-ratio: 1001 / 751;
  height: auto;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: #060908;
}

.scene figcaption {
  padding: 0.65rem 0.72rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.55;
}

.essay-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 780px);
  gap: 3rem;
  justify-content: center;
  padding: 4.5rem max(1.1rem, calc((100vw - 1180px) / 2)) 2rem;
}

.toc {
  position: sticky;
  top: 1.4rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.toc .eyebrow {
  margin-bottom: 0.35rem;
}

.toc a {
  display: block;
  border-left: 2px solid rgba(214, 191, 103, 0.2);
  padding: 0.45rem 0 0.45rem 0.7rem;
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--paper);
  border-left-color: var(--amber);
}

.essay-body {
  font-size: 1.06rem;
  line-height: 2.05;
  color: rgba(244, 238, 227, 0.86);
}

.essay-body section {
  padding: 0 0 3.1rem;
}

.essay-body h2 {
  margin-bottom: 1.05rem;
  font-family: "Noto Serif SC", serif;
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--paper);
}

.essay-body p {
  margin: 0 0 1.05rem;
  text-align: justify;
}

.essay-body .turn {
  margin: 1.45rem 0;
  padding: 1rem 1.05rem;
  border-left: 3px solid var(--rust);
  background: rgba(173, 92, 70, 0.1);
  color: #f1d6c9;
  font-family: "Noto Serif SC", serif;
  font-size: 1.16rem;
  line-height: 1.8;
  border-radius: 0 8px 8px 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem;
  border-top: 1px solid rgba(214, 191, 103, 0.22);
  border-bottom: 1px solid rgba(214, 191, 103, 0.22);
  color: #f3df98;
  font-family: "Noto Serif SC", serif;
  font-size: 1.18rem;
  line-height: 1.8;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem 1rem 4rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero {
    min-height: 78vh;
    padding-top: 4rem;
    padding-bottom: 3.6rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

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

  .essay-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 3rem;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 0.8rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
  }

  .toc .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 74vh;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .lead,
  .essay-body {
    font-size: 0.98rem;
  }

  .scene-band {
    padding-top: 2.3rem;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 0.25rem;
  }

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

  .scene.large,
  .scene.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .essay-body p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-actions a,
  .footer a {
    transition: none;
  }
}
