:root { --bg: #0a1114; --text: #dcece7; --muted: #a0b5b0; --accent: #86dac5; --line: #253633; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.7; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 2; padding: .6rem 1rem; background: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header, main, .site-footer { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font: 700 .9rem 'Orbitron', sans-serif; letter-spacing: .04em; }
.brand img { flex-shrink: 0; }
.brand-name { display: block; margin-top: .4rem; font: 400 .8rem 'Inter', sans-serif; color: var(--muted); letter-spacing: .02em; }
.site-header nav { display: flex; gap: 1.75rem; font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header nav [aria-current] { color: var(--accent); }
.breadcrumb { display: flex; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-top: 2rem; }
.breadcrumb a { text-decoration: none; }
.article-header { padding: 3.5rem 0 2rem; max-width: 880px; }
.eyebrow { margin: 0 0 1rem; font-size: .8rem; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; }
h1 { font: 700 clamp(2.1rem, 5vw, 4.2rem)/1.15 'Orbitron', sans-serif; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; text-wrap: balance; }
.subtitle { margin: 1.25rem 0; font-size: clamp(1.2rem, 2.5vw, 1.65rem); color: var(--accent); line-height: 1.4; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.lead { max-width: 64ch; font-size: 1.125rem; line-height: 1.8; color: #c4d7d1; margin: 1.5rem 0 0; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0 4rem; padding: 1.5rem 2rem; list-style: none; border-block: 1px solid var(--line); background: linear-gradient(100deg, #122320, #0d191b 65%, transparent); }
.flow li { display: flex; flex-direction: column; padding: .5rem 2.5rem .5rem 0; position: relative; }
.flow li + li { padding-left: 2rem; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; top: 45%; right: 1rem; color: var(--accent); }
.flow .step { font-family: monospace; font-size: .8rem; color: var(--accent); margin-bottom: .7rem; }
.flow strong { font-size: 1rem; font-weight: 600; }
.flow span:last-child { font-size: .875rem; color: var(--muted); }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body section { margin-bottom: 3rem; }
h2 { margin: 0 0 1.1rem; font-size: 1.45rem; line-height: 1.4; font-weight: 600; text-wrap: balance; }
.article-body p { font-size: 1rem; color: #b6c9c2; margin: 0 0 1.15rem; }
.code-example { margin: 1.8rem 0 0; border-left: 2px solid var(--accent); padding: .75rem 0 .75rem 1.25rem; }
.code-example figcaption { font-size: .875rem; color: var(--muted); }
pre { overflow: auto; font-size: .875rem; line-height: 1.8; color: var(--accent); padding-bottom: .5rem; }
.project-links { max-width: 720px; margin: 3rem auto; padding-top: 2rem; border-top: 1px solid var(--line); }
.project-links div { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .95rem; }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.next-project a { text-decoration: none; font-size: .9rem; }
.next-project a:last-child { text-align: right; }
.next-project span { display: block; font-size: .8rem; color: var(--muted); }
.next-project strong { color: var(--accent); font-size: 1.15rem; font-weight: 400; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
.directory-header { margin: 4rem 0; }
.note-row { display: grid; grid-template-columns: 4rem 1fr 2rem; gap: 1.5rem; padding: 2rem 0; text-decoration: none; border-top: 1px solid var(--line); }
.note-number { font: 400 1rem 'Orbitron', sans-serif; color: var(--accent); padding-top: .25rem; }
.note-row .eyebrow { font-size: .75rem; }
.note-row h2 { margin: .4rem 0; font-size: 1.7rem; }
.note-row p { margin: 0; color: var(--muted); }
.row-arrow { color: var(--accent); font-size: 1.5rem; align-self: center; transition: transform .2s; }
.note-row:hover .row-arrow { transform: translate(3px, -3px); }
.more-projects { margin: 4rem 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.more-projects > p { color: var(--muted); }
.more-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 4rem; }
.more-groups h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.more-groups ul { list-style: none; padding: 0; }
.more-groups li { margin-bottom: 1.5rem; }
.more-groups li > a { font-size: 1rem; }
.more-groups p { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 650px) {
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; gap: 1rem; padding: 1.4rem 0; }
  .site-header nav { flex-direction: column; gap: .5rem; text-align: right; font-size: .8rem; }
  .brand { font-size: .8rem; }
  .article-header { padding-top: 2.5rem; }
  .flow { grid-template-columns: 1fr; padding: 1rem 1.25rem; margin-bottom: 2.75rem; }
  .flow li, .flow li + li { padding: 1rem 0 1.75rem; }
  .flow li:not(:last-child)::after { content: '↓'; right: 0; top: 45%; }
  .flow li:last-child { padding-bottom: 1rem; }
  .flow .step { margin-bottom: .25rem; }
  .facts { gap: .5rem .8rem; }
  .facts li + li { padding-left: .8rem; }
  .note-row { grid-template-columns: 2rem 1fr 1rem; gap: .75rem; }
  .note-row h2 { font-size: 1.3rem; }
  .more-groups { grid-template-columns: 1fr; gap: 0; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
