:root {
  --graphite: #14171c;
  --paper: #f0f1ec;
  --ink: #1a1d21;
  --amber: #e8a93a;
  --line: #d7d9d2;
  --font-display: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: -apple-system, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, 'Courier New', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(240,241,236,.95); backdrop-filter: blur(8px); }
header .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; max-width: 780px; margin: 0 auto; }
.brand { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; }
.article-nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.back-link { color: rgba(26,29,33,.62); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
main { max-width: 780px; margin: 0 auto; padding: 48px 24px 96px; overflow-wrap: break-word; }
.eyebrow { display: block; margin-bottom: 10px; color: rgba(26,29,33,.48); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin-bottom: 28px; font-family: var(--font-display); font-size: clamp(26px,4vw,36px); line-height: 1.2; }
h2 { margin: 40px 0 14px; font-family: var(--font-display); font-size: 21px; line-height: 1.28; }
h3 { margin: 24px 0 10px; font-family: var(--font-display); font-size: 17px; line-height: 1.35; }
p { margin-bottom: 16px; color: rgba(26,29,33,.85); font-size: 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 6px; color: rgba(26,29,33,.85); font-size: 16px; }
table { display: block; width: 100%; margin: 20px 0; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
tbody { display: table; width: 100%; min-width: 560px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #fff; color: rgba(26,29,33,.58); font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
footer { border-top: 1px solid var(--line); padding: 32px 24px; text-align: center; }
footer a { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 18px; border-radius: 3px; background: var(--graphite); color: var(--paper); font-family: var(--font-mono); font-size: 12.5px; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) {
  header .inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 18px; }
  .article-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .back-link { font-size: 10.5px; }
  main { padding: 38px 18px 72px; }
  p, li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
