:root {
  color-scheme: light;
  --paper: #eef0e7;
  --edge: #dce1d5;
  --ink: #15241d;
  --soft: #4d5a4f;
  --muted: #61705f;
  --line: #b7c1ae;
  --forest: #15271e;
  --forest-deep: #102017;
  --acid: #d3f879;
  --sans: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--edge); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #638528; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
::selection { background: var(--acid); color: var(--ink); }
.site-shell { max-width: 1320px; min-height: 100vh; margin: auto; padding: 0 38px; background: var(--paper); border-inline: 1px solid var(--line); }
.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 32px; font: 14px/1.4 var(--mono); }
.home-symbol { display: flex; }
.home-symbol img { display: block; width: 32px; height: 32px; }
.wordmark img { display: block; width: 108px; height: auto; }
.home-symbol:hover, .wordmark:hover { text-decoration: none; }
.masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding: 22px 0 28px; }
.masthead-logo { width: min(100%, 26rem); line-height: 0; }
.masthead-logo img { display: block; width: 100%; height: auto; }
.masthead-subjects { min-width: 225px; padding-left: 26px; margin-bottom: 6px; border-left: 1px solid var(--ink); font: 18px/1.55 var(--mono); }
.masthead-subjects span { display: block; }
.projects-section { padding-bottom: 32px; }
.project-stage { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1.6fr); background: var(--forest); color: var(--paper); border: 1px solid var(--ink); }
.project-copy { padding: 26px 32px 28px; border-right: 1px solid #4c6148; }
.status { display: inline-block; padding: 5px 9px; border: 1px solid #9bad80; font: 14px/1.3 var(--mono); }
.project-copy .status { color: var(--acid); border-color: #6f8852; }
.project-copy h1, .project-copy h2 { margin: 18px 0 10px; font: 500 clamp(3.5rem, 5vw, 4.25rem)/1 var(--mono); letter-spacing: -.07em; }
.project-copy h2 a:hover { text-decoration-thickness: 2px; text-underline-offset: 8px; }
.project-expansion { max-width: 270px; color: #d9e2d2; font-size: 16px; line-height: 1.5; }
.project-description { max-width: 300px; margin-top: 16px; color: #b7c8b2; font-size: 16px; line-height: 1.55; }
.project-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; color: #b7c8b2; font: 12px/1.7 var(--mono); }
.project-cta { display: flex; justify-content: space-between; gap: 30px; max-width: 230px; margin-top: 23px; padding: 12px 15px; background: var(--acid); color: var(--ink); font: 14px/1.5 var(--mono); }
.project-cta:hover { background: #e3ffa4; text-decoration: none; }
.project-stage a:focus-visible, .source-panel a:focus-visible { outline-color: var(--acid); }
.routing-figure { display: flex; flex-direction: column; min-width: 0; padding: 26px 34px 30px; background: var(--forest-deep) radial-gradient(#36503b .7px, transparent .7px) 0 0/18px 18px; color: var(--acid); }
.figure-heading { padding-bottom: 16px; border-bottom: 1px solid #3d5538; color: #c2d1b9; font: 13px/1.5 var(--mono); }
.route-map { display: grid; grid-template-columns: minmax(100px, .85fr) minmax(38px, .45fr) minmax(150px, 1.2fr); align-items: center; min-height: 286px; padding: 32px 0 12px; flex: 1; }
.route-node { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 104px; padding: 15px 17px; border: 1px solid #728b52; background: var(--forest-deep); }
.route-node::before { content: ""; position: absolute; left: -3px; top: calc(50% - 2px); width: 5px; height: 5px; background: var(--acid); }
.route-host { border-color: var(--acid); }
.route-host::before { left: auto; right: -3px; }
.node-label { color: #b7c99f; font: 12px/1.3 var(--mono); }
.route-node strong { font: 500 20px/1.2 var(--mono); }
.node-detail { color: #c0ceba; font-size: 13px; line-height: 1.3; }
.route-sinks { display: grid; gap: 46px; }
.route-lines { display: block; width: 100%; height: 150px; overflow: visible; color: var(--acid); }
.signal-path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.resource-shelf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; border: 1px solid var(--ink); border-top: 0; }
.source-disclosure { min-width: 0; border-right: 1px solid var(--ink); }
.source-disclosure summary, .specification-file, .resource-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; padding: 15px 24px; font: 14px/1.5 var(--mono); }
.resource-link + .resource-link { border-left: 1px solid var(--ink); }
.featured-project + .featured-project { margin-top: 28px; }
.project-detail-stage { margin-top: 28px; }
.detail-resources { margin-bottom: 28px; }
.source-disclosure summary { cursor: pointer; list-style: none; }
.source-disclosure summary::-webkit-details-marker { display: none; }
.source-disclosure summary:hover, .specification-file:hover, .resource-link:hover { background: #e2e9d8; text-decoration: none; }
.resource-icon { display: inline-block; min-width: 36px; color: var(--muted); font-size: 12px; }
.file-version { margin-left: 12px; color: var(--muted); font-size: 12px; }
.disclosure-icon { font-size: 20px; line-height: 1; transition: transform 160ms ease; }
.source-disclosure[open] .disclosure-icon { transform: rotate(45deg); }
.source-panel { min-width: 0; background: var(--forest-deep); color: #dce5d4; }
.source-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #415536; color: #bacdb0; font: 12px/1.5 var(--mono); }
.source-code { margin: 0; padding: 22px 24px; overflow-x: auto; font: 14px/1.75 var(--mono); tab-size: 2; }
.source-code code { font: inherit; white-space: pre; }
.source-code:focus-visible { outline: 2px solid var(--acid); outline-offset: -4px; }
.code-key { color: #b6cfdb; }
.code-string { color: #d3eb9d; }
.code-null { color: #efbe96; }
.code-note { color: #bacdb0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0 27px; border-top: 1px solid var(--ink); color: var(--soft); font: 12px/1.6 var(--mono); }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 10px 18px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.breadcrumbs { padding-top: 24px; color: var(--soft); font: 14px/1.5 var(--mono); }
.project-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 60px; padding: 36px 0 40px; }
.project-title h1 { margin: 24px 0 16px; font: 500 clamp(5rem, 9.5vw, 8rem)/1 var(--mono); letter-spacing: -.09em; }
.subtitle { max-width: 400px; font-size: 20px; line-height: 1.4; }
.lead { color: var(--soft); font-size: 19px; line-height: 1.65; }
.primary-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; margin-top: 23px; padding: 12px 17px; background: var(--ink); color: var(--paper); font: 14px/1.5 var(--mono); }
.primary-link:hover { color: var(--acid); text-decoration: none; }
.release-note { margin-top: 17px; color: var(--soft); font: 13px/1.6 var(--mono); }
.project-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ink); background: #e3e8d9; }
.project-meta div { padding: 17px 20px; }
.project-meta div + div { border-left: 1px solid var(--line); }
.project-meta dt { color: var(--soft); font: 12px/1.5 var(--mono); }
.project-meta dd { margin: 5px 0 0; font-size: 15px; }
.article-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 54px; margin: 48px 0 65px; }
.article-nav { position: sticky; top: 28px; align-self: start; padding-left: 17px; border-left: 2px solid #9caf8a; }
.article-nav a { display: block; padding: 6px 0; color: var(--soft); font: 13px/1.5 var(--mono); }
.project-article { min-width: 0; max-width: 820px; }
.article-section + .article-section { margin-top: 38px; padding-top: 31px; border-top: 1px solid var(--line); }
.article-section h2 { margin-bottom: 19px; font: 500 24px/1.25 var(--mono); letter-spacing: -.04em; }
.article-section p, .article-section li { color: var(--soft); font-size: 17px; line-height: 1.7; }
.article-section p + p { margin-top: 16px; }
.article-section ul { margin: 18px 0; padding-left: 22px; }
.article-section li + li { margin-top: 9px; }
.article-section strong { color: var(--ink); font-weight: 600; }
.article-section a { text-decoration: underline; text-underline-offset: 3px; }
.article-section .routing-figure { max-width: 610px; margin: 27px 0; }
.article-section .route-map { min-height: 295px; }
.article-section .route-node strong { color: var(--acid); font-weight: 500; }
.api-panel { margin-top: 24px; }
.article-section .source-panel + p { margin-top: 20px; }
.article-section .milestones { padding: 0; list-style: none; }
.milestones li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.milestones li + li { margin-top: 0; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font: 14px/1.5 var(--mono); }
.back-link { margin-top: 34px; }
.not-found { min-height: 65vh; padding: 85px 0; }
.not-found .eyebrow { font: 14px/1.5 var(--mono); margin-bottom: 25px; }
.not-found h1 { font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 550; letter-spacing: -.065em; line-height: 1.1; }
.not-found .text-link { margin-top: 30px; }

@media (min-width: 1500px) {
  .site-shell { min-height: calc(100vh - 56px); margin: 28px auto; border: 1px solid var(--line); }
}
@media (max-width: 1050px) {
  .site-shell { padding-inline: 28px; }
  .masthead-subjects { min-width: 180px; font-size: 16px; }
  .project-stage { grid-template-columns: minmax(260px, .95fr) minmax(0, 1.4fr); }
  .project-copy { padding: 27px 26px 30px; }
  .routing-figure { padding-inline: 25px; }
  .route-map { grid-template-columns: minmax(82px, .8fr) minmax(26px, .3fr) minmax(126px, 1.1fr); }
  .route-node { padding: 14px 12px; }
  .route-node strong { font-size: 18px; }
  .node-detail { font-size: 12px; }
  .article-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .site-shell { padding-inline: 20px; }
  .site-header { min-height: 64px; }
  .site-header nav { gap: 22px; font-size: 13px; }
  .masthead-subjects { min-width: 130px; padding-left: 18px; font-size: 13px; }
  .project-stage { grid-template-columns: minmax(0, 1fr); }
  .project-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; border-right: 0; border-bottom: 1px solid #4c6148; }
  .project-copy .status { grid-column: 1 / -1; justify-self: start; }
  .project-copy h1, .project-copy h2, .project-expansion, .project-description, .project-tags { grid-column: 1; }
  .project-cta { grid-column: 2; grid-row: 2 / 5; align-self: center; min-width: 145px; margin-top: 0; }
  .route-map { width: 100%; max-width: 560px; margin-inline: auto; grid-template-columns: minmax(90px, .9fr) minmax(35px, .5fr) minmax(145px, 1.2fr); }
  .source-disclosure summary, .specification-file, .resource-link { padding-inline: 16px; font-size: 13px; }
  .file-version { display: none; }
  .project-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .project-title h1 { font-size: 5.5rem; }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-meta div:nth-child(3) { border-left: 0; }
  .project-meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 32px; }
  .article-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .article-section p, .article-section li { font-size: 16px; }
}
@media (max-width: 480px) {
  .site-shell { padding-inline: 16px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .masthead { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 23px 0 25px; }
  .masthead-subjects { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 12px; }
  .project-copy { display: block; padding: 25px 23px; }
  .project-copy h1, .project-copy h2 { font-size: 3.5rem; }
  .project-cta { max-width: none; margin-top: 24px; }
  .routing-figure { padding: 20px 17px; }
  .route-map { min-height: 286px; grid-template-columns: minmax(75px, .85fr) minmax(24px, .3fr) minmax(115px, 1.15fr); }
  .route-node { padding: 12px 9px; }
  .route-node strong { font-size: 16px; }
  .resource-shelf { grid-template-columns: minmax(0, 1fr); }
  .source-disclosure { border-right: 0; border-bottom: 1px solid var(--ink); }
  .source-disclosure summary, .specification-file, .resource-link { min-height: 63px; padding-block: 17px; }
  .resource-link + .resource-link { border-left: 0; border-top: 1px solid var(--ink); }
  .file-version { display: inline; }
  .source-code { padding: 18px 14px; font-size: 13px; }
  .source-titlebar { padding-inline: 14px; }
  .site-footer { gap: 12px; font-size: 12px; }
  .project-meta div { padding: 15px 13px; }
  .project-meta dd { font-size: 14px; }
  .project-title h1 { font-size: 5rem; }
  .subtitle { font-size: 18px; }
  .lead { font-size: 17px; }
}
.project-copy h2, .project-row h3 { overflow-wrap: anywhere; }
.text-project { grid-template-columns: minmax(0, 1fr); }
.text-project .project-copy { border-right: 0; }
.text-project .project-description { max-width: 650px; }
.single-resource { grid-template-columns: minmax(0, 1fr); }
.single-resource .source-disclosure { border-right: 0; }
.project-archive { margin-top: 30px; }
.index-heading { margin: 0 0 16px; font: 500 14px/1.5 var(--mono); }
.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.project-list li { border-bottom: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.8fr) minmax(105px, .65fr) 20px; align-items: center; gap: 25px; padding: 24px 12px; transition: background-color 150ms ease; }
.project-row:hover { background: #e2e9d8; text-decoration: none; }
.project-row:focus-visible { outline-offset: -3px; }
.project-row h3 { font: 500 22px/1.2 var(--mono); letter-spacing: -.035em; }
.project-row p { min-width: 0; font-size: 16px; color: var(--soft); line-height: 1.5; }
.project-row-tags { display: block; margin-top: 7px; color: var(--muted); font: 12px/1.5 var(--mono); }
.project-row-status { font: 13px/1.5 var(--mono); color: var(--soft); }
.project-row-arrow { font: 22px/1 var(--mono); }
.route-node { transition: border-color 160ms ease, background-color 160ms ease; }
.signal-path { transition: opacity 160ms ease, stroke-width 160ms ease; }
@media (hover: hover) {
  .route-node:hover { border-color: var(--acid); background: #21351f; }
  .route-map:has(.route-media:hover) .signal-media,
  .route-map:has(.route-call:hover) .signal-call,
  .route-map:has(.route-host:hover) .signal-path { stroke-width: 2.3; }
  .route-map:has(.route-media:hover) .signal-call,
  .route-map:has(.route-call:hover) .signal-media { opacity: .25; }
}
@media (max-width: 760px) {
  .project-row { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 12px 20px; padding: 21px 8px; }
  .project-row-name { grid-column: 1; }
  .project-row-status { grid-column: 2; grid-row: 1; text-align: right; }
  .project-row-arrow { grid-column: 3; grid-row: 1; }
  .project-row p { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .project-row { grid-template-columns: minmax(0, 1fr) 20px; }
  .project-row-status { grid-column: 1; grid-row: 3; text-align: left; font-size: 12px; }
  .project-row-arrow { grid-column: 2; }
  .project-row p { grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .disclosure-icon, .project-row, .route-node, .signal-path { transition: none; }
}
@media print {
  body, .site-shell { background: white; }
  .site-shell { max-width: none; min-height: 0; border: 0; }
  .site-header nav, .article-nav, .project-cta, .primary-link, .skip-link { display: none; }
  .article-layout { display: block; }
  .project-stage, .routing-figure, .source-panel { print-color-adjust: exact; }
  .project-stage, .routing-figure, .article-section { break-inside: avoid; }
}
