:root {
  color-scheme: dark;
  --background: #0f1420;
  --surface: #171f2d;
  --text: #f5f6fa;
  --muted: #bdc4d1;
  --line: #303b4e;
  --accent: #79c4e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font: 17px/1.75 "Golos Text", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 16px max(24px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; }
.brand { color: var(--text); font: 800 19px "Manrope", sans-serif; }
main, footer { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.intro { padding-block: 64px 20px; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; }
h1, h2 { font-family: "Manrope", system-ui, sans-serif; line-height: 1.2; text-wrap: balance; }
h1 { max-width: 18ch; margin: 16px 0 24px; font-size: clamp(36px, 5.8vw, 56px); font-weight: 800; letter-spacing: -0.03em; }
h2 { margin: 0 0 22px; font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.015em; }
p { margin: 0 0 20px; }
.updated { color: var(--muted); font-size: 13px; }
main > p { color: var(--muted); }
.contents { margin: 34px 0 48px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.contents h2 { font-size: 21px; }
ol, ul { margin: 16px 0 24px; padding-left: 25px; }
li { padding-left: 5px; margin: 10px 0; }
li::marker { color: var(--accent); }
.contents ol { margin-bottom: 0; }
.contents li { margin: 7px 0; }
main > section { padding-block: 38px; border-top: 1px solid var(--line); }
main > section > :last-child { margin-bottom: 0; }
code { padding: 2px 5px; border-radius: 4px; background: #232d3e; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85em; overflow-wrap: anywhere; }
pre { max-width: 100%; margin: 24px 0; padding: 22px; overflow-x: auto; background: #080d16; border: 1px solid var(--line); border-radius: 8px; line-height: 1.7; }
pre code { padding: 0; background: transparent; overflow-wrap: normal; }
.note { margin: 24px 0; padding: 22px 24px; border-left: 3px solid #e9b558; background: #26231e; border-radius: 0 8px 8px 0; }
.note strong { color: #f0c677; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: 14px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 18px; z-index: 1; background: var(--surface); }
.skip-link:focus { top: 10px; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  main, footer { width: calc(100% - 36px); }
  .site-header { padding-inline: 18px; min-height: 68px; }
  .intro { padding-top: 36px; }
  .contents, .note { padding: 22px 20px; }
  main > section { padding-block: 30px; }
  pre { padding: 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; font-size: 12pt; }
  main { width: 100%; }
  .site-header, .skip-link, footer, .contents { display: none; }
  .intro { padding-top: 0; }
  h1 { font-size: 30pt; }
  h2 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a, .eyebrow, .note strong { color: #145276; }
  .updated, main > p { color: #333; }
  pre, code, .note { color: #111; background: #f2f2f2; }
  pre { white-space: pre-wrap; }
}
