/* Shared typography, paper and ink tokens for the product sheet and field manual. */
:root {
  color-scheme: light;
  --bg: #f6f3eb;
  --ink: #202821;
  --muted: #555e55;
  --line: #cbd0c2;
  --accent: #215b48;
  --wash: #e8ecdf;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --focus: var(--accent);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.7 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; inset: 8px auto auto 8px; background: var(--bg); padding: 8px 16px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.header-inner, .header-inner nav { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner { min-height: 68px; justify-content: space-between; gap: 0 24px; padding-block: 8px; }
.header-inner nav { column-gap: clamp(12px, 3vw, 32px); }
.header-inner nav a, .brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.header-inner nav a { font-size: .875rem; }
.header-inner nav a:hover, .header-inner nav [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.brand { font-weight: 800; letter-spacing: -.02em; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* Product sheet: one illustration on the cover, then ruled indexes, not card grids. */
.cover, .ledger, .field-note { display: grid; gap: clamp(24px, 5vw, 76px); }
.cover { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: center; padding-block: clamp(36px, 6vw, 86px); }
.folio { color: var(--accent); font: 600 .8rem/1.4 var(--mono); letter-spacing: .08em; margin: 0 0 16px; }
.cover .folio, .cover-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.cover .folio { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cover h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); letter-spacing: -.07em; line-height: 1.1; }
.cover-intro { max-width: 27rem; margin-block: 24px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); }
.cover-actions { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.button, .text-action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 650; }
.button { padding: 8px 16px; background: var(--accent); color: var(--bg); text-decoration: none; }
.button:hover { background: var(--ink); }
.platform { color: var(--muted); font: .8rem/1.5 var(--mono); margin-bottom: 0; }
.platform span { margin-inline: .25em; }
.cover-figure { margin: 0; }
.cover-figure img { display: block; width: 100%; height: auto; background: var(--accent); }
.cover-figure figcaption { padding-block: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font: .8rem/1.4 var(--mono); }
.ledger { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); border-top: 1px solid var(--ink); padding-block: clamp(32px, 6vw, 72px); }
.ledger h2, .field-note h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.055em; }
.section-intro > p:last-child { color: var(--muted); }
.ledger-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger-rows a { display: grid; grid-template-columns: 3ch minmax(0, 1fr) minmax(0, 1.18fr) auto; align-items: center; gap: 4px 16px; min-height: 60px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ledger-rows a:hover, .ledger-rows a:focus-visible { background: var(--wash); }
.row-no, .ledger-rows a > :last-child { color: var(--accent); font: .85rem/1.4 var(--mono); }
.ledger-rows strong { font-size: 1.05rem; }
.row-copy { color: var(--muted); font-size: .875rem; }
.field-note { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); background: #203b32; color: #f6f3eb; padding: clamp(24px, 5vw, 64px); --focus: #dce8ca; }
.field-note a, .field-note .folio { color: #dce8ca; }
.field-note ol { list-style: none; counter-reset: step; margin: 0; padding: 0; align-self: center; }
.field-note li { counter-increment: step; display: flow-root; border-bottom: 1px solid #8da294; padding-block: 12px; padding-inline-start: 3ch; }
.field-note li:first-child { border-top: 1px solid #8da294; }
.field-note li::before { content: counter(step, decimal-leading-zero); float: inline-start; margin-inline-start: -3ch; color: #dce8ca; font: .8rem/2.1 var(--mono); }
.releases { margin-block-start: clamp(32px, 6vw, 72px); }
.release-rows a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.releases .text-action { margin-block-start: 8px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .ledger, .field-note { grid-template-columns: minmax(0, 1fr); }
  .section-intro > p:last-child { margin-bottom: 0; }
}
@media (max-width: 680px) {
  .cover { grid-template-columns: minmax(0, 1fr); }
  .cover h1 { font-size: clamp(2.6rem, 10vw, 4.3rem); }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { column-gap: 12px; }
  .header-inner nav { column-gap: 12px; }
  .ledger-rows a { grid-template-columns: 3ch minmax(0, 1fr) auto; }
  .ledger-rows .row-copy { grid-column: 2; grid-row: 2; }
  .ledger-rows a > :last-child { grid-column: 3; grid-row: 1 / 3; }
  .release-rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .release-rows .row-copy { grid-column: 1; }
  .release-rows a > :last-child { grid-column: 2; }
}
