:root {
  color-scheme: light;
  --coal: #101a17;
  --white: #fffaeb;
  --paper: #f3eee1;
  --ink: #202920;
  --leaf: #264737;
  --quiet: #516055;
  --gold: #f3d796;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.8 var(--sans); background: var(--paper); color: var(--ink); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #93702b; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(71rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; inset: 1rem auto auto 1rem; background: var(--white); color: var(--ink); padding: .6rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { background: var(--coal); color: var(--white); border-bottom: 1px solid #f3d79627; }
.navigation, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 700 1.52rem var(--serif); letter-spacing: .12em; flex-shrink: 0; }
.brand img { border-radius: .45rem; display: block; }
nav { display: flex; align-items: center; gap: 1.7rem; font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-entry { color: var(--gold); }
.hero {
  color: var(--white);
  background: var(--coal) url("assets/crossing.jpg") center 33% / cover no-repeat;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101a17ee, #101a178c 44%, #101a1726 79%), linear-gradient(0deg, #101a17f0 2%, transparent 71%);
}
.hero-inner { min-height: clamp(37rem, 74vh, 49rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 6rem 4.5rem; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 1.2rem; color: var(--leaf); }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-size: clamp(3.15rem, 8vw, 6.6rem); line-height: 1.12; letter-spacing: -.055em; }
.hero-description { max-width: 26rem; margin-block: 1.55rem 1.75rem; color: #f5f0df; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; text-align: center; padding: .5rem 1.05rem; border: 1px solid transparent; border-radius: .32rem; text-decoration: none; font-weight: 700; }
.primary { background: var(--gold); color: #263022; }
.primary:hover { background: #fff0bb; }
.secondary { color: var(--white); border-color: #fff8e897; background: #101a1740; }
.secondary:hover { background: #fff8e829; }
.beta-note { margin: .7rem 0 0; font-size: .88rem; color: #d5dccd; }
.example, .workbench { padding-block: clamp(3rem, 8vw, 6.7rem); }
.example-grid, .workbench-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
h2 { font-size: clamp(2.25rem, 4.65vw, 3.65rem); line-height: 1.18; letter-spacing: -.045em; }
.example-intro > p:last-child { max-width: 24rem; margin: 1.3rem 0 0; color: var(--quiet); }
.ledger { background: #fffbf0; border: 1px solid #d4ccba; padding: clamp(1rem, 4vw, 2rem); border-radius: .5rem; box-shadow: 0 1rem 2.75rem #2730230b; }
.snapshot { position: relative; display: flex; gap: .9rem; align-items: center; padding: .8rem .95rem; border: 1px solid #d7dccc; border-radius: .35rem; background: #e9eee0; }
.snapshot::after { content: ""; position: absolute; height: 1.1rem; width: 1px; inset: 100% auto auto 50%; background: #a5a794; }
.snapshot-icon { flex: 0 0 .8rem; aspect-ratio: 1; transform: rotate(45deg); background: var(--leaf); border-radius: .12rem; }
.snapshot p { margin: 0; }
.snapshot-label { font-size: .875rem; color: var(--quiet); }
.snapshot-title { font-size: 1.06rem; font-weight: 700; }
.branch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-block: 1.1rem 1rem; }
.branch button { min-height: 2.75rem; border: 1px solid #b7c2ae; background: #f7f4e9; color: var(--ink); border-radius: .3rem; font-weight: 600; padding: .25rem .4rem; cursor: pointer; }
.branch button[aria-pressed=true] { color: #fffbf0; background: var(--leaf); border-color: var(--leaf); }
.branch button:hover:not([aria-pressed=true]) { background: #e8eddd; }
.outcome { min-height: 8.4rem; border-top: 1px solid #d8d2c2; padding-top: .95rem; }
.outcome h3 { font-size: 1.38rem; }
.outcome p { margin: .35rem 0 0; color: var(--quiet); }
.outcome article + article { margin-top: 1.2rem; }
.example-note { margin: .85rem 0 0; color: var(--quiet); font-size: .875rem; }
.workbench { background: #e4e9da; border-top: 1px solid #c9d1c3; }
.workbench dl { margin: 0; }
.workbench dl > div { padding: .7rem 0 .95rem; border-bottom: 1px solid #aebbae; }
.workbench dl > div:first-child { padding-top: 0; }
.workbench dt { color: var(--leaf); font-weight: 700; }
.workbench dd { margin: .25rem 0 0; }
.footer { color: #e9ecdf; background: var(--coal); }
.footer a:last-child { color: #f3d796; font-size: .92rem; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 2rem); }
  .hero { background-position: 44% center; }
  .hero::before { background: linear-gradient(0deg, #101a17fa, #101a17a8 55%, #101a1735 95%); }
  .hero-inner { min-height: 33rem; padding-block: 5rem 2.4rem; justify-content: end; }
  .example-grid, .workbench-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  nav { gap: .9rem; }
}
@media (max-width: 365px) {
  .nav-example { display: none; }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
