:root {
  color-scheme: light;
  --paper: #f7f4ea;
  --ink: #111111;
  --muted: #66635c;
  --signal: #ffd800;
  --blue: #2455ff;
  --content: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: var(--signal); color: var(--ink); }
.shell { width: min(100%, calc(var(--content) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: #fff; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -0.04em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: 0.6rem; background: var(--signal); border: 2px solid var(--ink); font-size: 0.75rem; letter-spacing: -0.08em; }
.site-nav, .eyebrow, .section-kicker, .section-index, .source-meta, .button, .site-footer, .tag, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.75rem; font-weight: 700; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem) 2.5rem; border-bottom: 2px solid var(--ink); }
.eyebrow { margin: 0 0 1.25rem; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow span { background: var(--signal); padding: 0.25rem 0.45rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 6.5vw, 5.25rem); font-weight: 900; letter-spacing: -0.065em; }
h2 { margin: 0 0 1.5rem; font-size: clamp(1.65rem, 3.3vw, 2.6rem); font-weight: 850; letter-spacing: -0.045em; }
h3 { margin: 0 0 0.75rem; font-size: 1.23rem; line-height: 1.3; letter-spacing: -0.025em; }
p { margin: 0 0 1.25rem; }
.lede { max-width: 65ch; margin-top: 1.5rem; margin-bottom: 0; font-size: clamp(1.13rem, 2vw, 1.4rem); line-height: 1.55; }
.page-meta { margin-top: 1.25rem; margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 3rem 5rem; align-items: start; }
.section-index { font-size: 0.75rem; line-height: 1.6; }
.section-index p { margin-bottom: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.section-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.section-index li { border-bottom: 1px solid #b8b4a8; }
.section-index a { display: block; padding: 0.8rem 0; color: var(--ink); text-decoration: none; }
.section-index a:hover { text-decoration: underline; }
.prose { min-width: 0; max-width: 76ch; }
.single-column { padding-block: 3rem 5rem; margin-inline: auto; }
.content-section { padding-bottom: 2.75rem; margin-bottom: 2.75rem; border-bottom: 1px solid #b8b4a8; scroll-margin-top: 1.5rem; }
.content-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.section-kicker { margin-bottom: 0.75rem; color: var(--muted); font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-block: 0 1.5rem; }
.prose li { padding-left: 0.25rem; margin-bottom: 0.65rem; }
.callout { margin-block: 1.5rem; padding: 1.35rem; border: 2px solid var(--ink); background: #fff; }
.callout.signal { background: var(--signal); }
.callout.signal a:not(.button) { color: var(--ink); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout > strong:first-child { display: block; margin-bottom: 0.6rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1rem; background: var(--ink); border: 2px solid var(--ink); color: #fff; font-size: 0.78rem; font-weight: 800; text-decoration: none; text-align: center; }
.button:hover { background: var(--blue); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--signal); }
.source-list { list-style: none; padding: 0 !important; }
.source-list > li { padding: 1.5rem 0; margin: 0; border-top: 1px solid #b8b4a8; }
.source-list > li:last-child { padding-bottom: 0; }
.source-meta { margin-bottom: 0.5rem; font-size: 0.7rem; color: var(--muted); }
.source-list h3 { font-size: 1.2rem; }
.source-list p { font-size: 0.97rem; }
.source-list p:last-child { margin-bottom: 0; }
.source-limit { color: var(--muted); font-size: 0.9rem !important; }
.tag { display: inline-block; padding: 0.15rem 0.4rem; background: var(--signal); color: var(--ink); font-size: 0.68rem; font-weight: 800; }
.table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; }
table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: #fff; font-size: 0.88rem; line-height: 1.45; }
caption { padding-bottom: 0.8rem; font-weight: 700; text-align: left; }
th, td { padding: 0.85rem; border-bottom: 1px solid #b8b4a8; text-align: left; vertical-align: top; }
thead { background: var(--ink); color: #fff; }
tbody th { font-weight: 700; }
tfoot { background: var(--signal); font-weight: 800; }
code { padding: 0.1rem 0.25rem; background: #e8e5da; font-size: 0.87em; overflow-wrap: anywhere; }
pre { margin-block: 1.5rem; padding: 1.5rem; background: var(--ink); color: #fff; font-size: 0.8rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 0.45rem solid var(--signal); font-size: 1.15rem; font-weight: 650; }
.site-footer { border-top: 2px solid var(--ink); padding-block: 1.5rem 2rem; font-size: 0.72rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2rem; }

@media (max-width: 840px) {
  .article-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2rem 3.5rem; }
  .section-index ol { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
  .section-index li { border-bottom: 0; }
  .prose { max-width: none; }
}
@media (max-width: 600px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 0.45rem; padding-bottom: 0.35rem; }
  .site-nav { gap: 0 1rem; font-size: 0.69rem; }
  .page-hero { padding-top: 2.25rem; }
  .footer-row { flex-direction: column; gap: 0.5rem; }
  .callout { padding: 1rem; }
  th, td { padding: 0.6rem; }
  table { font-size: 0.78rem; }
  pre { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; font-size: 10pt; }
  .site-header, .skip-link, .section-index, .button-row, .site-footer { display: none; }
  .shell { width: 100%; padding: 0; }
  .page-hero { padding-top: 0; }
  .article-layout { display: block; padding-block: 1.5rem; }
  .prose { max-width: none; }
  .callout, .source-list > li, table { break-inside: avoid; }
  a { color: inherit; }
  h1 { font-size: 32pt; }
  h2 { font-size: 19pt; }
  pre { border: 1px solid #888; background: #fff; color: #111; }
}
