:root {
  --black: #050505;
  --surface: #101010;
  --ink: #f0ede6;
  --muted: #aaa59c;
  --dim: #706d67;
  --line: #3b3935;
  --line-strong: #77736a;
  --red: #e72621;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --measure: 78rem;
}
* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; color: var(--ink); background: var(--black); font: clamp(.92rem,.84rem + .24vw,1.06rem)/1.72 var(--mono); text-rendering: optimizeLegibility; }
::selection { color: var(--black); background: var(--red); }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover, a:focus-visible { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.site-header { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem,4vw,4rem); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-title { font-weight: 800; text-decoration: none; }
.document-layout { width: min(100% - 2rem, 74rem); margin: 0 auto; padding: 2rem 0 7rem; }
.breadcrumb { display: flex; gap: .6rem; overflow-wrap: anywhere; color: var(--muted); font-size: .75rem; }
.toc { margin: 2rem 0; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.toc ol { columns: 2; }
.toc-depth-3 { margin-left: 1rem; }
.markdown-body { min-width: 0; }
.document-page .markdown-body { max-width: 72rem; }
.document-page h1, .document-page h2, .document-page h3, .document-page h4 { font-family: var(--serif); line-height: 1.15; text-wrap: balance; }
.document-page h1 { margin-top: 3rem; font-size: clamp(2.8rem,7vw,5.8rem); font-weight: 400; letter-spacing: -.045em; }
.document-page h2 { margin-top: 3.8rem; padding-top: .7rem; border-top: 2px solid var(--ink); font-size: clamp(1.9rem,4vw,3.2rem); font-weight: 400; }
.document-page h3 { margin-top: 2.6rem; font-size: 1.55rem; }
p, ul, ol, pre, blockquote, table { margin-block: 1rem 1.4rem; }
p, ul, ol, blockquote { max-width: 72ch; }
ul, ol { padding-left: 1.5rem; }
li { margin-block: .38rem; padding-left: .35rem; }
li::marker { color: var(--red); font-weight: 700; }
blockquote { margin-left: 0; padding: .4rem 0 .4rem 1.25rem; border-left: .35rem solid var(--red); color: var(--muted); font-family: var(--serif); font-size: 1.15em; }
code { padding: .12em .3em; border: 1px solid var(--line); color: #fff; background: #111; font-family: var(--mono); font-size: .92em; }
pre { max-width: 100%; padding: 1.2rem 1.35rem; overflow-x: auto; border: 1px solid var(--line-strong); border-left: .35rem solid var(--red); background: #080808; white-space: pre-wrap; }
pre code { padding: 0; border: 0; color: var(--ink); background: transparent; font-size: .86rem; white-space: inherit; }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); font-size: clamp(.72rem,.66rem + .2vw,.9rem); line-height: 1.5; }
th, td { min-width: 8rem; padding: .75rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--black); background: var(--ink); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.page-sequence { display: flex; justify-content: space-between; margin-top: 5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.landing { width: min(100% - 2rem, 68rem); margin: 0 auto; padding: clamp(5rem,14vw,12rem) 0; }
.landing h1 { max-width: 10ch; margin: 0 0 1rem; color: var(--red); font: 400 clamp(3rem,10vw,8rem)/.9 var(--serif); letter-spacing: -.055em; }
.eyebrow { color: var(--muted); letter-spacing: .16em; text-transform: uppercase; }
.primary-link { display: inline-block; margin-top: 2rem; font-weight: 800; }
@media (max-width: 720px) { .site-header { flex-direction: column; } .toc ol { columns: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
