:root {
  --ink: #071A12;
  --ink-2: #0C2418;
  --paper: #F2E8D0;
  --green: #35E06B;
  --gold: #D9A441;
  --line: #E9F3EA;
  --orange: #FF6B35;
  --muted: #8FA79A;
  --shadow: #1F3A2C;
  --line-soft: rgba(233, 243, 234, 0.16);
  --line-faint: rgba(233, 243, 234, 0.08);
  --green-soft: rgba(53, 224, 107, 0.1);
  --gold-soft: rgba(217, 164, 65, 0.1);
  --font-display: "DIN Condensed", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --rail-w: 248px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius-sm: 3px;
  --radius-md: 12px;
  --radius-pill: 999px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--green);
  color: var(--ink);
}
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 480px at 78% -8%, rgba(53, 224, 107, 0.1), transparent 62%),
    radial-gradient(720px 420px at 8% 108%, rgba(217, 164, 65, 0.06), transparent 62%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.3vw + 15px, 17.5px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
h1 {
  font-size: clamp(36px, 6vw, 68px);
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
}
h3 {
  font-size: clamp(20px, 2.4vw, 27px);
}
h4 {
  font-size: clamp(17px, 1.8vw, 20px);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.index-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--green);
}
[data-chapter] {
  scroll-margin-top: 92px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green);
  color: #04130B;
  border: 1px solid var(--green);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: relative;
  z-index: 70;
}
.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  background: var(--line-faint);
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: transform 0.08s linear;
}
.brand-rail {
  display: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(7, 26, 18, 0.96) 0%, rgba(7, 26, 18, 0.72) 62%, rgba(7, 26, 18, 0) 100%);
}
.capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px 7px 14px;
  background: rgba(12, 36, 24, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.capsule-brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--paper);
  white-space: nowrap;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.nav-toggle:hover {
  border-color: rgba(53, 224, 107, 0.65);
  color: var(--green);
}
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-toggle-box span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-label {
  display: inline-block;
}
.nav {
  display: block;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: var(--green-soft);
  color: var(--green);
}
.nav-link[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.capsule-action {
  display: none;
}
@media (max-width: 1079px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 5;
    max-height: min(70vh, calc(100vh - 120px));
    overflow-y: auto;
    padding: 8px;
    background: var(--ink-2);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    clip-path: inset(0 0 100% 0 round 20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: clip-path 0.22s ease, opacity 0.18s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-header[data-open] .nav {
    clip-path: inset(0 0 0 0 round 20px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header[data-open] .nav-toggle {
    background: var(--green);
    border-color: var(--green);
    color: #04130B;
  }
  .site-header[data-open] .nav-toggle-box span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle-box span:nth-child(2) {
    opacity: 0;
  }
  .site-header[data-open] .nav-toggle-box span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}
@media (max-width: 380px) {
  .nav-toggle-label {
    display: none;
  }
}
@media (min-width: 1080px) {
  body {
    padding-left: var(--rail-w);
  }
  .brand-rail {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: var(--rail-w);
    overflow-y: auto;
    background: linear-gradient(180deg, #0C2418 0%, #071A12 72%);
    border-right: 1px solid var(--line-soft);
  }
  .rail-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 22px 24px;
    gap: 22px;
  }
  .rail-brand {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    color: var(--paper);
  }
  .rail-mark {
    grid-row: 1 / span 2;
    align-self: start;
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.1em;
    color: var(--green);
  }
  .rail-name {
    display: block;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--paper);
    transition: color 0.15s ease;
  }
  .rail-brand:hover .rail-name {
    color: var(--green);
  }
  .rail-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
  }
  .rail-tagline {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
  }
  .rail-rule {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 6px;
  }
  .rail-rule span {
    display: block;
    height: 1px;
    background: var(--line-soft);
  }
  .rail-rule span:nth-child(1) {
    flex: 1;
  }
  .rail-rule span:nth-child(2) {
    width: 24px;
    background: var(--green);
  }
  .rail-rule span:nth-child(3) {
    width: 8px;
    background: var(--gold);
  }
  .rail-index {
    margin-top: 2px;
  }
  .rail-index-title {
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.18em;
    color: var(--muted);
  }
  .rail-index-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .rail-index-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
  .rail-index-item:hover {
    background: var(--line-faint);
    border-left-color: var(--line-soft);
    color: var(--paper);
  }
  .rail-index-item[aria-current="true"] {
    background: var(--green-soft);
    border-left-color: var(--green);
    color: var(--paper);
  }
  .rail-index-num {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--green);
  }
  .rail-index-label {
    display: block;
    min-width: 0;
  }
  .rail-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line-faint);
  }
  .rail-season {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.14em;
    color: var(--muted);
  }
  .rail-cta {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(217, 164, 65, 0.65);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }
  .rail-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1A1205;
  }
  .topbar {
    padding: 18px clamp(20px, 3vw, 40px) 8px;
  }
  .capsule {
    width: auto;
    margin-left: auto;
    padding: 7px 8px;
  }
  .capsule-brand {
    display: none;
  }
  .nav-toggle {
    display: none;
  }
  .nav {
    position: static;
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: row;
    gap: 2px;
  }
  .nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    white-space: nowrap;
  }
  .capsule-action {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: #04130B;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
  }
  [data-chapter] {
    scroll-margin-top: 104px;
  }
}
@media (min-width: 1280px) {
  :root {
    --rail-w: 260px;
  }
}
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background-image: repeating-linear-gradient(90deg, var(--green) 0 18px, transparent 18px 36px);
  opacity: 0.45;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
}
.footer-brand {
  min-width: 0;
}
.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color 0.15s ease;
}
.footer-logo:hover {
  color: var(--green);
}
.footer-line {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.footer-desc {
  max-width: 36ch;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-cta {
  margin-top: 18px;
}
.footer-col {
  min-width: 0;
}
.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.footer-list {
  display: grid;
  gap: 8px;
}
.footer-list a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  color: var(--paper);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-list a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}
.footer-contact {
  min-width: 0;
}
.contact-list {
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.contact-label {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-value {
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--paper);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-note {
  max-width: 36ch;
  margin-top: 16px;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 64px) 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.legal-links a:hover {
  color: var(--green);
}
.footer-meta {
  line-height: 1.5;
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.5fr 0.9fr 0.9fr 1.4fr;
  }
  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.container--narrow {
  max-width: 860px;
}
.prose {
  max-width: 70ch;
}
.prose p,
.prose ul,
.prose ol {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 3vw, 36px);
}
.prose h3 {
  margin-top: 1.8em;
}
.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}
.prose ol {
  padding-left: 1.2em;
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--green);
}
.prose strong {
  color: var(--paper);
  font-weight: 700;
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 2px;
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid--2,
.grid--3 {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 720px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sheet {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 6px 8px 0 rgba(31, 58, 44, 0.75);
}
.sheet--paper {
  background: var(--paper);
  border-color: #cbbd9d;
  color: var(--ink);
  box-shadow: 7px 9px 0 rgba(31, 58, 44, 0.95);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.tag--green {
  background: var(--green-soft);
  border-color: rgba(53, 224, 107, 0.48);
  color: var(--green);
}
.tag--gold {
  background: var(--gold-soft);
  border-color: rgba(217, 164, 65, 0.48);
  color: var(--gold);
}
.tag--orange {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.48);
  color: var(--orange);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #04130B;
}
.btn--primary:hover {
  background: #5CF08A;
  border-color: #5CF08A;
}
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1205;
}
.btn--gold:hover {
  background: #E8B85A;
  border-color: #E8B85A;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.crumb + .crumb::before {
  content: "/";
  color: var(--shadow);
}
.crumb a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.crumb a:hover {
  color: var(--green);
}
.crumb[aria-current="page"] {
  color: var(--paper);
}
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--ink-2);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide {
  aspect-ratio: 16 / 9;
}
.media-frame--tall {
  aspect-ratio: 3 / 4;
}
.media-frame--square {
  aspect-ratio: 1 / 1;
}
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.section-rule {
  position: relative;
  height: 1px;
  margin-block: var(--space-5);
  border: 0;
  background: var(--line-soft);
}
.section-rule::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 5px;
  background: var(--green);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.nav-link:focus-visible,
.rail-index-item:focus-visible,
.btn:focus-visible {
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover {
    transform: none;
  }
  .read-progress-bar {
    transition: none;
  }
}
