:root {
  --ink: #102127;
  --deep: #152a32;
  --paper: #f4f0e8;
  --paper-2: #ebe5da;
  --line: #b8afa0;
  --muted: #617077;
  --aqua: #8ed7c6;
  --amber: #efad4d;
  --coral: #e56f52;
  --white: #fffdf8;
  --measure: 74ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: #075f61; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: #8e3e2a; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .75rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { transform: none; }
.review-banner { min-height: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem clamp(1rem,4vw,4rem); background: var(--amber); border-bottom: 1px solid var(--ink); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1rem,4vw,4rem); color: var(--white); background: var(--deep); border-bottom: 1px solid #31505b; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; margin-top: -.1rem; color: var(--aqua); font-size: .62rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 2.55rem; aspect-ratio: 1; border: 1px solid var(--aqua); color: var(--aqua); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.site-header nav a { color: #dce8e6; text-decoration: none; font-size: .86rem; }
.site-header nav a[aria-current="page"] { color: var(--amber); text-decoration: underline; }
main { min-height: 70vh; }
.breadcrumbs { max-width: 1180px; margin: 0 auto; padding: 1.2rem clamp(1rem,4vw,4rem) 0; display: flex; flex-wrap: wrap; gap: .35rem .55rem; font-size: .75rem; font-weight: 700; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.page-hero { max-width: 1180px; margin: 0 auto; padding: clamp(3rem,8vw,7rem) clamp(1rem,4vw,4rem) clamp(2.5rem,6vw,5rem); }
.page-code { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.8rem; color: #416069; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.page-code span:first-child { padding: .25rem .45rem; border: 1px solid currentColor; color: #8e3e2a; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 16ch; margin-bottom: 1.7rem; font-size: clamp(2.8rem,7.5vw,6.8rem); letter-spacing: -.055em; }
h2 { max-width: 23ch; font-size: clamp(2rem,4.5vw,3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.dek { max-width: 760px; margin: 0; color: #3c535b; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem,2.2vw,1.65rem); line-height: 1.45; }
.review-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 3rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review-strip div { padding: 1rem 1rem 1rem 0; }
.review-strip div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
dt { color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
dd { margin: .35rem 0 0; font-size: .84rem; line-height: 1.4; }
.article-body > section, .related { padding: clamp(3rem,7vw,6.5rem) max(clamp(1rem,9vw,10rem), calc((100vw - 1180px)/2 + 4rem)); border-top: 1px solid var(--line); }
.article-body > section > p, .article-body > section > ol, .article-body > section > ul { max-width: var(--measure); }
.article-body p { font-size: 1.04rem; }
.answer-label, .section-index, .kicker, .status-word { margin-bottom: 1.2rem; color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem !important; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-grid, .split-section { display: grid; grid-template-columns: 1.45fr .8fr; gap: clamp(2rem,7vw,7rem); align-items: start; }
.system-map { min-height: 24rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3rem 1rem; padding: 1.5rem; color: var(--white); background: var(--deep); border-left: .5rem solid var(--aqua); }
.system-map span { padding: .75rem; border: 1px solid #62828a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.system-map i { color: var(--amber); font-size: .7rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.task-grid, .related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px; background: var(--line); }
.task-grid article { min-height: 13rem; padding: clamp(1.3rem,3vw,2.2rem); background: var(--white); }
.task-grid h3 a { color: var(--ink); }
.task-grid p:last-child { color: var(--muted); }
.split-section aside, .callout { padding: clamp(1.5rem,3vw,2.5rem); background: var(--deep); color: var(--white); border-left: .5rem solid var(--amber); }
.split-section aside h2, .callout h2 { color: var(--white); }
.split-section aside p, .callout p { color: #d6e0df; }
.callout a, .split-section aside a { color: var(--aqua); }
.step-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; padding: 1px; background: var(--line); }
.step-grid article { padding: 1.2rem; background: var(--white); }
.step-grid b { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.step-grid h3 { margin: 1.8rem 0 .7rem; font-size: 1.15rem; }
.step-grid p { color: var(--muted); font-size: .86rem; }
.timeline, .checklist { list-style: none; padding: 0; counter-reset: steps; }
.timeline li, .checklist li { position: relative; padding: 1rem 1rem 1rem 3.5rem; border-top: 1px solid var(--line); }
.timeline li::before, .checklist li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); position: absolute; left: .25rem; color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; font-weight: 800; }
.decision-record { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; max-width: 900px; padding: 1px; background: var(--line); }
.decision-record div { padding: 1.25rem; background: var(--white); }
.decision-record dt { color: #8e3e2a; }
.decision-record dd { margin-top: .6rem; font-size: .95rem; }
.record-template { max-width: 900px !important; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-left: .45rem solid var(--aqua); }
.record-template span { color: #6d3324; font-weight: 750; }
.hardware-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; padding: 1px; background: var(--line); }
.hardware-metrics article { min-height: 13rem; padding: 1.35rem; background: var(--white); }
.hardware-metrics strong { display: block; color: #8e3e2a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem,5vw,4.5rem); line-height: 1; }
.hardware-metrics span { display: block; margin-top: .65rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hardware-metrics p { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.catalog-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; max-width: 980px !important; padding: 1px !important; background: var(--line); list-style: none; }
.catalog-counts li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--white); }
.catalog-counts span { font-size: .9rem; }
.catalog-counts strong { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.scope-note { max-width: 900px !important; padding: 1rem 1.2rem; color: #40535a; background: var(--paper-2); border-left: .35rem solid var(--amber); font-size: .9rem !important; }
.generation-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; padding: 1px; background: var(--line); }
.generation-map article { min-height: 16rem; padding: 1.35rem; background: var(--white); }
.generation-map span { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.generation-map h3 { margin: 2.6rem 0 .8rem; }
.generation-map strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.generation-map p { color: var(--muted); font-size: .86rem; }
.hardware-table td:nth-child(1) { min-width: 9rem; font-weight: 800; }
.hardware-table td:nth-child(2) { min-width: 14rem; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--white); background: var(--deep); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.record-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.record-list article { padding: 1.4rem; border: 1px solid var(--line); background: var(--white); }
.record-list article > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.record-id, .state { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.state { color: #37605f; }
.record-list h3 { margin: 1.6rem 0 .7rem; }
.record-list dl { border-top: 1px solid var(--line); }
.record-list dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-top: .8rem; }
.status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; max-width: 800px; padding: 1px; background: var(--line); }
.status-grid span { padding: 1rem; background: var(--white); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.evidence { background: var(--paper-2); }
.evidence ol { list-style: none; padding: 0; }
.evidence li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.source-id { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 900; }
.evidence li p { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }
.evidence-ref { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8em; font-weight: 800; }
.method-note { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px !important; background: var(--line); }
.method-note div { padding: 1.5rem; background: var(--white); }
.method-note span { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.method-note p { margin-bottom: 0; }
.related-card { min-height: 11rem; display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; background: var(--white); color: var(--ink); text-decoration: none; }
.related-card:hover { background: #fff8ea; color: var(--ink); }
.related-card span { color: #8e3e2a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.related-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.related-card small { margin-top: auto; color: var(--muted); font-size: .78rem; }
.feed-link, .button-link { display: inline-block; color: var(--white); background: var(--deep); padding: .8rem 1rem; border-bottom: .25rem solid var(--aqua); text-decoration: none; }
.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding: clamp(2rem,5vw,4rem) clamp(1rem,4vw,4rem); color: #d9e4e3; background: #0c1a20; border-top: .55rem solid var(--aqua); font-size: .78rem; }
.site-footer strong { color: var(--amber); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.site-footer nav { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid #39535c; }
.site-footer a { color: var(--white); }

@media (max-width: 850px) {
  .review-banner { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .review-strip { grid-template-columns: 1fr 1fr; }
  .review-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .review-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-grid, .split-section { grid-template-columns: 1fr; }
  .hardware-metrics, .generation-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.6rem,14vw,4rem); }
  .task-grid, .related-grid, .method-note { grid-template-columns: 1fr; }
  .decision-record { grid-template-columns: 1fr; }
  .hardware-metrics, .generation-map, .catalog-counts { grid-template-columns: 1fr; }
  .step-grid, .status-grid { grid-template-columns: 1fr; }
  .review-strip { grid-template-columns: 1fr; }
  .review-strip div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .article-body > section, .related { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .review-banner, .site-header nav, .related, .site-footer nav { display: none; } body { background: white; } a { color: black; } }
