:root {
  --ink: #080a08;
  --ink-soft: #101410;
  --paper: #f2f1eb;
  --paper-deep: #e9e8e1;
  --white: #fff;
  --green: #4dff88;
  --green-deep: #1de768;
  --green-wash: #dfffe8;
  --text: #101510;
  --muted: #5e655e;
  --line: #c9cdc6;
  --line-dark: #273127;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", Arial, sans-serif;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 2.25rem;
  color: var(--white);
  background: rgba(8, 10, 8, 0.93);
  border-bottom: 1px solid #1b211b;
  backdrop-filter: blur(14px);
}

.brand,
.site-header nav,
.live-chip,
.edition-line,
.meta-label,
.rail-label,
.section-code,
.act-kicker,
.chapter-label,
.chapter-speakers,
.micro-title,
footer div {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand {
  font-size: 0.68rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
  color: #abb3ab;
  font-size: 0.58rem;
}

.site-header nav a:hover {
  color: var(--green);
}

.live-chip {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  color: var(--green);
  border: 1px solid #2f4d37;
  font-size: 0.58rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(77, 255, 136, 0.55);
  animation: pulse 2s infinite;
}

.live-chip.paused {
  color: #abb3ab;
  border-color: #2f352f;
}

.live-chip.paused .live-dot {
  background: #7e867e;
  box-shadow: none;
  animation: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(77, 255, 136, 0);
  }
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #202720;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(77, 255, 136, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 255, 136, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-glow {
  position: absolute;
  top: -420px;
  left: 4%;
  width: 960px;
  height: 960px;
  border-radius: 50%;
  background: rgba(0, 231, 96, 0.17);
  filter: blur(130px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 4rem));
  margin: 0 auto;
  padding: 6.2rem 0 3.5rem;
}

.edition-line {
  display: flex;
  width: fit-content;
  margin-bottom: 3.4rem;
  color: var(--green);
  border: 1px solid #265737;
  font-size: 0.6rem;
}

.edition-line span {
  padding: 0.55rem 0.8rem;
}

.edition-line span + span {
  border-left: 1px solid #265737;
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(3.4rem, 8.5vw, 7.8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.88;
  text-shadow: 0 0 30px rgba(77, 255, 136, 0.1);
}

.hero h1 span {
  display: block;
  color: var(--white);
}

.hero-dek {
  max-width: 620px;
  margin: 2.35rem 0 0;
  color: #cbd2cb;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-meta {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  max-width: 900px;
  margin-top: 4.3rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.hero-meta > div {
  padding: 1.15rem 1.2rem 1.15rem 0;
}

.hero-meta > div + div {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line-dark);
}

.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #6f7c70;
  font-size: 0.55rem;
}

.hero-meta strong {
  color: #e7ece7;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 500;
}

.book-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  width: min(var(--content), calc(100% - 4rem));
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.contents {
  border-right: 1px solid var(--line);
}

.contents-sticky {
  position: sticky;
  top: 58px;
  padding: 4.5rem 2rem;
}

.rail-label,
.section-code,
.micro-title {
  margin: 0;
  color: #2fcf66;
  font-size: 0.61rem;
  font-weight: 700;
}

.contents ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contents li {
  border-top: 1px solid var(--line);
}

.contents li:last-child {
  border-bottom: 1px solid var(--line);
}

.contents a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.85rem 0;
  color: #303630;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.4;
}

.contents a:hover {
  color: #13a948;
}

.contents a span {
  color: #25bf5b;
}

.book {
  min-width: 0;
}

.book > section,
.act {
  padding: clamp(4.5rem, 8vw, 8rem) clamp(2.5rem, 7vw, 6.5rem);
}

.introduction {
  min-height: 680px;
}

.introduction h2,
.closing h2 {
  max-width: 820px;
  margin: 1.35rem 0 0;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.intro-dek {
  max-width: 690px;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.55;
}

.prose {
  max-width: 720px;
  margin-top: 3rem;
}

.prose p {
  margin: 0 0 1.4rem;
  color: #2f362f;
  font-size: 1.02rem;
  line-height: 1.78;
}

.waiting-copy {
  color: #8a908a !important;
  font-style: italic;
}

.act {
  border-top: 1px solid var(--line);
}

.act:nth-child(2) {
  background: var(--paper-deep);
}

.act:nth-child(3) {
  color: var(--white);
  background: var(--ink);
  border-color: #202720;
}

.act:nth-child(3) .act-title,
.act:nth-child(3) .chapter-title,
.act:nth-child(3) .chapter-thesis,
.act:nth-child(3) .chapter-speakers,
.act:nth-child(3) .chapter-tactics li {
  color: var(--white);
}

.act:nth-child(3) .act-subtitle,
.act:nth-child(3) .act-summary,
.act:nth-child(3) .prose p {
  color: #aeb6ae;
}

.act:nth-child(3) .chapter,
.act:nth-child(3) .chapter-topline,
.act:nth-child(3) .chapter-tactics-wrap {
  border-color: #2a322a;
}

.act:nth-child(3) .highlight {
  color: var(--ink);
  background: var(--green);
}

.act-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.act-number {
  color: var(--green-deep);
  font-family: var(--mono);
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.act-kicker {
  margin: 0 0 0.75rem;
  color: #33c866;
  font-size: 0.58rem;
  font-weight: 700;
}

.act-title {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.act-subtitle {
  max-width: 650px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.act-summary {
  max-width: 710px;
  margin: 3rem 0 0 182px;
  color: #434a43;
  font-size: 1.02rem;
  line-height: 1.75;
}

.chapters {
  margin-top: 5rem;
}

.chapter {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.chapter-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chapter-label,
.chapter-speakers {
  margin: 0;
  color: #25ba58;
  font-size: 0.58rem;
}

.chapter-speakers {
  color: #6a716a;
  text-align: right;
}

.chapter-title {
  max-width: 810px;
  margin: 2.4rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.8vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.chapter-thesis {
  max-width: 730px;
  margin: 1.45rem 0 0;
  color: #222922;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
}

.highlights,
.quotes {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-top: 2.5rem;
}

.highlight {
  margin: 0;
  padding: 1.7rem;
  color: #0b2b16;
  background: var(--green-wash);
  border-left: 4px solid #31d366;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.48;
}

blockquote {
  margin: 0;
  padding: 2.5rem 0 0 3.5rem;
  border-top: 1px solid var(--line);
}

blockquote p {
  position: relative;
  max-width: 720px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: -0.04em;
  line-height: 1.5;
}

blockquote p::before {
  position: absolute;
  top: -0.3rem;
  left: -3.5rem;
  color: var(--green-deep);
  content: "“";
  font-size: 4rem;
  line-height: 1;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  color: #4a514a;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chapter-tactics-wrap {
  max-width: 760px;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.chapter-tactics {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chapter-tactics li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  color: #303730;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.55;
}

.chapter-tactics li::before {
  position: absolute;
  left: 0;
  color: #21bf58;
  content: "→";
  font-family: var(--mono);
}

.closing {
  color: var(--white);
  background: #111411;
  border-top: 1px solid #202720;
}

.closing .section-code {
  color: var(--green);
}

.closing-summary {
  max-width: 690px;
  margin: 2rem 0 0;
  color: #abb3ab;
  font-size: 1.08rem;
  line-height: 1.7;
}

.tactic-list {
  display: grid;
  gap: 0;
  max-width: 800px;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tactics;
}

.tactic-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 1.45rem 0;
  color: #e9eee9;
  border-top: 1px solid #303730;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.55;
  counter-increment: tactics;
}

.tactic-list li::before {
  color: var(--green);
  content: counter(tactics, decimal-leading-zero);
}

footer {
  padding: 6rem max(2rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid #242a24;
}

footer > p {
  max-width: 900px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

footer div {
  display: flex;
  justify-content: space-between;
  margin-top: 5rem;
  color: #717871;
  font-size: 0.56rem;
}

footer a:hover {
  color: var(--green);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 1.25rem;
  }

  .site-header nav {
    display: none;
  }

  .hero-inner,
  .book-shell {
    width: min(100% - 2rem, var(--content));
  }

  .book-shell {
    display: block;
  }

  .contents {
    display: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .act-summary {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 640px;
  }

  .hero-inner {
    padding-top: 4.5rem;
  }

  .edition-line {
    flex-wrap: wrap;
    margin-bottom: 2.8rem;
  }

  .edition-line span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13.5vw, 4.25rem);
  }

  .book > section,
  .act {
    padding: 4.5rem 1.4rem;
  }

  .act-head {
    grid-template-columns: 1fr;
  }

  .act-number {
    font-size: 4rem;
  }

  .chapter {
    padding: 3.5rem 0;
  }

  .chapter-topline {
    display: block;
  }

  .chapter-speakers {
    margin-top: 0.7rem;
    text-align: left;
  }

  blockquote {
    padding-left: 2.8rem;
  }

  blockquote p::before {
    left: -2.8rem;
  }

  footer {
    padding: 4rem 1.5rem;
  }

  footer div {
    display: grid;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
