:root {
  --hero-black: #080808;
  --hero-white: #ffffff;
  --hero-red: #c5162e;
  --hero-gray-100: #f2f2f2;
  --hero-gray-300: #c8c8c8;
  --hero-gray-600: #5b5b5b;
  --hero-display-en: Bahnschrift, "Arial Narrow", sans-serif;
  --hero-body-en: Constantia, Georgia, serif;
  --hero-zh: "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --hero-display: var(--hero-display-en);
  --hero-body: var(--hero-body-en);
  --hero-mono: Bahnschrift, Consolas, monospace;
  --content-max: 880px;
  --rail-width: 264px;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--hero-black);
  background: var(--hero-white);
  font-family: var(--hero-body);
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[data-language="zh-CN"] {
  font-family: var(--hero-zh);
  line-height: 1.78;
}

body[data-language="zh-CN"] * {
  font-family: var(--hero-zh);
}

a {
  color: inherit;
  text-decoration-color: var(--hero-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: var(--hero-red);
}

.reading-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--hero-red);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid #242424;
  color: var(--hero-white);
  background: var(--hero-black);
  font-family: var(--hero-display);
  font-size: 13px;
  text-transform: uppercase;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wordmark-mark {
  width: 11px;
  height: 11px;
  background: var(--hero-red);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-links a {
  color: var(--hero-white);
  text-decoration: none;
}

.header-links a:hover,
.header-links a:focus-visible {
  color: var(--hero-red);
}

.publication-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  padding-top: var(--header-height);
}

.toc {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100vh - var(--header-height));
  padding: 40px 28px;
  border-right: 1px solid var(--hero-gray-300);
  overflow-y: auto;
  background: var(--hero-white);
}

.toc-label {
  margin: 0 0 20px;
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 12px;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 12px;
}

.toc a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--hero-gray-600);
  font-family: var(--hero-display);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before {
  content: attr(data-index);
  color: var(--hero-gray-300);
  font-family: var(--hero-mono);
  font-size: 11px;
}

.toc a.active,
.toc a:hover,
.toc a:focus-visible {
  color: var(--hero-black);
}

.toc a.active::before {
  color: var(--hero-red);
}

.canon {
  min-width: 0;
}

.canon-section {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: 104px max(7vw, 56px) 112px;
  border-bottom: 1px solid var(--hero-gray-300);
  background: var(--hero-white);
}

.section-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.section-index {
  position: absolute;
  top: 34px;
  right: 36px;
  color: var(--hero-red);
  font-family: var(--hero-mono);
  font-size: 12px;
}

.section-kicker {
  margin: 0 0 20px;
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--hero-display);
  font-weight: 400;
  letter-spacing: 0;
}

.section-title {
  max-width: 820px;
  margin-bottom: 40px;
  font-size: 54px;
  line-height: 1.02;
}

body[data-language="zh-CN"] .section-title {
  font-size: 50px;
  line-height: 1.18;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.section-body p,
.section-body li {
  max-width: 760px;
}

.section-body p {
  margin: 0 0 24px;
}

.section-body p:has(> small) {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-body p > small {
  display: block;
  padding: 16px 0 16px 20px;
  border-left: 3px solid var(--hero-gray-300);
  color: var(--hero-gray-600);
  font-size: 0.78em;
  line-height: 1.58;
}

.section-body p > small em {
  font-style: normal;
}

.section-body ul,
.section-body ol {
  margin: 24px 0 32px;
  padding-left: 26px;
}

.section-body li + li {
  margin-top: 10px;
}

.section-body h3 {
  margin: 64px 0 24px;
  font-size: 30px;
  line-height: 1.15;
}

.section-body strong {
  font-family: var(--hero-display);
  font-weight: 400;
}

blockquote {
  max-width: 820px;
  margin: 48px 0;
  padding: 4px 0 4px 32px;
  border-left: 8px solid var(--hero-red);
  font-family: var(--hero-display);
  font-size: 32px;
  line-height: 1.24;
}

blockquote p {
  max-width: none !important;
}

.key-idea {
  margin: 0 0 52px;
  padding: 26px 0 28px;
  border-top: 2px solid var(--hero-black);
  border-bottom: 2px solid var(--hero-black);
}

.key-idea span {
  display: block;
  margin-bottom: 14px;
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 12px;
  text-transform: uppercase;
}

.key-idea strong {
  display: block;
  max-width: 760px;
  font-family: var(--hero-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.cover-section {
  min-height: calc(100svh - var(--header-height));
  align-items: stretch;
  padding: 0;
  color: var(--hero-white);
  background: var(--hero-black);
}

.cover-grid {
  width: 100%;
  height: calc(100svh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
}

.cover-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 72px max(7vw, 56px) 64px;
}

.cover-rule {
  background: var(--hero-red);
}

.cover-canon {
  margin: 0;
  color: var(--hero-red);
  font-family: var(--hero-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.cover-hero {
  margin: 44px 0 12px;
  font-family: var(--hero-display);
  font-size: 116px;
  line-height: 0.84;
}

.cover-title {
  max-width: 940px;
  margin: 0;
  font-family: var(--hero-display);
  font-size: 58px;
  line-height: 1.02;
}

body[data-language="zh-CN"] .cover-title {
  font-size: 54px;
  line-height: 1.15;
}

.cover-tagline {
  max-width: 650px;
  margin: 32px 0 0;
  font-size: 23px;
  line-height: 1.45;
}

.cover-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #3b3b3b;
  font-family: var(--hero-display);
  font-size: 14px;
}

.metadata-section,
.copyright-section,
.version-section {
  min-height: auto;
  align-items: start;
  background: var(--hero-gray-100);
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--hero-black);
}

.metadata-grid div {
  padding: 18px 0;
  border-bottom: 1px solid var(--hero-gray-300);
}

.metadata-grid div:nth-child(odd) {
  padding-right: 28px;
}

.metadata-grid dt {
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 12px;
  text-transform: uppercase;
}

.metadata-grid dd {
  margin: 6px 0 0;
  font-size: 16px;
}

.feature-section {
  min-height: 92svh;
  color: var(--hero-white);
  background: var(--hero-black);
}

.feature-section .section-title,
.feature-section .section-body {
  max-width: 940px;
}

.feature-section .section-body {
  font-family: var(--hero-display);
  font-size: 38px;
  line-height: 1.22;
}

.feature-section .section-body p {
  max-width: 900px;
}

.manifesto-section .section-body > p {
  font-size: 23px;
}

table {
  width: 100%;
  margin: 40px 0;
  border-collapse: collapse;
  font-size: 15px;
}

thead {
  border-top: 2px solid var(--hero-black);
  border-bottom: 2px solid var(--hero-black);
  font-family: var(--hero-display);
  text-align: left;
}

th,
td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hero-gray-300);
  vertical-align: top;
}

.hero-principles-table {
  table-layout: fixed;
  border-top: 2px solid var(--hero-black);
}

.hero-principles-table th:first-child,
.hero-principles-table td:first-child {
  width: 72px;
}

.hero-principles-table th:nth-child(2),
.hero-principles-table td:nth-child(2) {
  width: 38%;
}

.hero-principles-table td:first-child {
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 30px;
  line-height: 1;
}

.hero-principles-table td:nth-child(2) {
  font-family: var(--hero-display);
  font-size: 17px;
  line-height: 1.3;
}

pre {
  max-width: 100%;
  padding: 28px;
  border-left: 8px solid var(--hero-red);
  color: var(--hero-white);
  background: var(--hero-black);
  font-family: var(--hero-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}

.diagram {
  width: min(100%, 760px);
  margin: 42px auto 54px;
  padding: 34px 0;
  font-family: var(--hero-display);
}

.diagram-node {
  min-width: 190px;
  padding: 14px 24px;
  border: 2px solid var(--hero-black);
  color: var(--hero-black);
  background: var(--hero-white);
  text-align: center;
}

.diagram-node.primary {
  border-color: var(--hero-red);
  color: var(--hero-white);
  background: var(--hero-red);
}

.diagram-arrow {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-red);
  font-family: var(--hero-mono);
  font-size: 24px;
}

.diagram-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diagram-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 24px 0;
}

.diagram-branches .diagram-node {
  min-width: 0;
}

.diagram-line {
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--hero-red);
}

.flywheel {
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid var(--hero-black);
  border-radius: 50%;
}

.flywheel::after {
  content: "";
  position: absolute;
  top: 14.65%;
  right: 14.65%;
  width: 18px;
  height: 14px;
  background: var(--hero-red);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
  transform: translate(50%, -50%) rotate(45deg);
  transform-origin: center;
}

.flywheel-center,
.flywheel-node {
  position: absolute;
  font-family: var(--hero-display);
  text-align: center;
}

.flywheel-center {
  top: 50%;
  left: 50%;
  color: var(--hero-red);
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.flywheel-node:nth-child(2) { top: 7%; left: 50%; transform: translateX(-50%); }
.flywheel-node:nth-child(3) { top: 48%; right: 3%; transform: translateY(-50%); }
.flywheel-node:nth-child(4) { bottom: 7%; left: 50%; transform: translateX(-50%); }
.flywheel-node:nth-child(5) { top: 48%; left: 3%; transform: translateY(-50%); }

.brand-stack {
  border-top: 2px solid var(--hero-black);
  border-bottom: 2px solid var(--hero-black);
}

.brand-stack-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--hero-gray-300);
  text-align: center;
}

.brand-stack-hero {
  padding: 40px 0;
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 54px;
  text-align: center;
}

.index-hero {
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: 96px max(7vw, 56px) 72px;
  color: var(--hero-white);
  background: var(--hero-black);
  border-right: 18px solid var(--hero-red);
}

.index-hero h1 {
  margin: 0;
  font-size: 108px;
  line-height: 0.88;
}

.index-hero p {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: 24px;
}

.edition-band {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  min-height: 300px;
  padding: 56px max(7vw, 56px);
  border-bottom: 1px solid var(--hero-gray-300);
}

.edition-number {
  color: var(--hero-red);
  font-family: var(--hero-display);
  font-size: 74px;
}

.edition-band h2 {
  margin: 0 0 12px;
  font-size: 46px;
}

.edition-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--hero-display);
}

.edition-links a {
  min-width: 160px;
  padding: 12px 0;
  border-bottom: 2px solid var(--hero-black);
  text-decoration: none;
}

.edition-links a:hover,
.edition-links a:focus-visible {
  border-color: var(--hero-red);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  :root { --rail-width: 0px; }
  .publication-shell { display: block; }
  .toc { display: none; }
  .canon-section { padding-right: 48px; padding-left: 48px; }
  .section-title { font-size: 46px; }
  .cover-hero { font-size: 92px; }
  .cover-title { font-size: 50px; }
  .edition-band { grid-template-columns: 150px minmax(0, 1fr); }
  .edition-links { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { padding: 0 18px; }
  .header-links { gap: 12px; font-size: 11px; }
  .header-links .secondary-link { display: none; }
  .canon-section { min-height: auto; padding: 80px 24px 88px; }
  .cover-section { min-height: calc(100svh - var(--header-height)); padding: 0; }
  .section-index { top: 22px; right: 24px; }
  .section-title { margin-bottom: 28px; font-size: 38px; line-height: 1.08; }
  body[data-language="zh-CN"] .section-title { font-size: 36px; }
  .section-body h3 { margin-top: 48px; font-size: 26px; }
  blockquote { padding-left: 20px; font-size: 26px; }
  .key-idea strong { font-size: 28px; }
  .cover-grid { grid-template-columns: minmax(0, 1fr) 10px; }
  .cover-content { height: 100%; min-height: 0; padding: 48px 24px 40px; }
  .cover-hero { margin-top: 36px; font-size: 70px; }
  .cover-title { font-size: 38px; }
  body[data-language="zh-CN"] .cover-title { font-size: 36px; }
  .cover-tagline { font-size: 19px; }
  .cover-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; font-size: 11px; }
  .metadata-grid { grid-template-columns: 1fr; }
  .metadata-grid div:nth-child(odd) { padding-right: 0; }
  .feature-section .section-body { font-size: 29px; }
  table { display: block; font-size: 13px; overflow-x: auto; }
  .hero-principles-table { display: table; table-layout: auto; }
  .hero-principles-table th:first-child,
  .hero-principles-table td:first-child { width: 46px; }
  .hero-principles-table th:nth-child(2),
  .hero-principles-table td:nth-child(2) { width: auto; }
  .hero-principles-table td:first-child { font-size: 24px; }
  .hero-principles-table td:nth-child(2) { font-size: 14px; }
  .diagram { padding: 20px 0; }
  .diagram-node { min-width: 150px; padding: 12px 14px; }
  .diagram-branches { grid-template-columns: 1fr; }
  .flywheel { width: 310px; }
  .flywheel-center { font-size: 26px; }
  .flywheel-node { font-size: 13px; }
  .brand-stack-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-stack-hero { font-size: 44px; }
  .index-hero { min-height: 82svh; padding: 80px 24px 54px; border-right-width: 10px; }
  .index-hero h1 { font-size: 66px; }
  .index-hero p { font-size: 19px; }
  .edition-band { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 54px 24px; }
  .edition-number { font-size: 56px; }
  .edition-band h2 { font-size: 36px; }
  .edition-links { grid-column: 1; }
}

@page {
  size: A4;
  margin: 14mm 0;
}

@page hero-full-bleed {
  size: A4;
  margin: 0;
}

@media print {
  :root { --header-height: 0px; }
  html, body { background: var(--hero-white); }
  body { font-size: 10.5pt; line-height: 1.55; }
  body[data-language="zh-CN"] { font-size: 10pt; line-height: 1.62; }
  .site-header, .reading-progress, .toc { display: none !important; }
  .publication-shell { display: block; padding: 0; }
  .canon-section {
    min-height: auto;
    display: block;
    padding: 4mm 18mm 0;
    border: 0;
    break-before: page;
  }
  .canon-section:first-child { break-before: auto; }
  .section-inner { width: 100%; }
  .section-index { top: 11mm; right: 18mm; }
  .section-title { margin-bottom: 8mm; font-size: 28pt; }
  body[data-language="zh-CN"] .section-title { font-size: 25pt; line-height: 1.2; }
  .section-body p { margin-bottom: 4mm; orphans: 3; widows: 3; }
  .section-body p:has(> small) { margin-bottom: 7mm; break-inside: avoid-page; }
  .section-body p > small { padding: 3mm 0 3mm 4mm; font-size: 8pt; }
  .section-body li { orphans: 3; widows: 3; }
  .section-body h3 { margin: 10mm 0 5mm; font-size: 18pt; }
  h2, h3, h4 { break-after: avoid-page; }
  blockquote, .key-idea, table, thead, tr, pre, .diagram, .metadata-grid div { break-inside: avoid-page; }
  .cover-section { page: hero-full-bleed; min-height: 297mm; padding: 0; color: var(--hero-white); background: var(--hero-black) !important; }
  .cover-grid { height: 297mm; min-height: 297mm; }
  .cover-content { height: 297mm; min-height: 297mm; padding: 20mm 16mm 16mm; }
  .cover-footer { position: absolute; right: 16mm; bottom: 16mm; left: 16mm; margin: 0; }
  .cover-hero { font-size: 70pt; }
  .cover-title { font-size: 38pt; }
  body[data-language="zh-CN"] .cover-title { font-size: 35pt; }
  .cover-tagline { font-size: 16pt; }
  .feature-section {
    page: hero-full-bleed;
    min-height: 297mm;
    display: flex;
    align-items: center;
    color: var(--hero-white);
    background: var(--hero-black) !important;
  }
  .feature-section .section-body { font-size: 24pt; }
  body[data-language="zh-CN"] .feature-section .section-body { font-size: 22pt; line-height: 1.38; }
  blockquote { font-size: 19pt; }
  .key-idea strong { font-size: 21pt; }
  .metadata-section, .copyright-section, .version-section { background: var(--hero-white); }
  table { font-size: 8.5pt; }
  th, td { padding: 2.5mm 3mm 2.5mm 0; }
  .diagram { margin: 6mm auto 8mm; padding: 4mm 0; }
  .diagram-node { padding: 3mm 5mm; }
  .diagram-arrow { height: 8mm; }
  .diagram-line { height: 7mm; }
  .diagram-branches { margin: 4mm 0; }
  .flywheel { width: 105mm; }
  .reveal { opacity: 1; transform: none; }
  a { text-decoration: none; }
}
