:root {
  --stone: #EEF0EC;
  --paper: #F8F9F6;
  --ink: #16213A;
  --ink-soft: #4B5569;
  --lapis: #2A44B8;
  --lapis-deep: #1E3290;
  --ochre: #C0871C;
  --line: #D3D8D1;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--lapis); text-underline-offset: 0.2em; }
a:hover { color: var(--lapis-deep); }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--stone) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: auto; }
.btn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: var(--stone); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--lapis); color: #fff; }

.doc { max-width: 46rem; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem); }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.doc .updated { margin: 1rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.doc .summary { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; background: var(--paper); border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--line); }
.doc .summary p { margin: 0; }
.doc .summary ul { margin: .75rem 0 0; padding-left: 1.2rem; }
.doc .summary li + li { margin-top: .35rem; }
.doc nav.toc { margin: 2.5rem 0 0; }
.doc nav.toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2.5rem; font-size: .95rem; }
.doc nav.toc li { break-inside: avoid; padding: .15rem 0; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin: 3.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0; }
.doc p, .doc ul, .doc ol { margin: 1rem 0 0; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: .4rem; }
.doc strong { font-weight: 600; }
.doc table { width: 100%; margin: 1.25rem 0 0; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc .ph { background: #F6E3B8; color: var(--ink); padding: 0 .3em; border-radius: .25em; }

.site-footer { background: var(--ink); color: #AEB6C8; padding: 2rem 0 2.5rem; font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: #D4D9E3; }
.site-footer .links { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .doc nav.toc ol { columns: 1; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border-top: 0; padding: .2rem 0; }
  .doc tr { border-top: 1px solid var(--line); padding: .75rem 0; }
  .doc td:first-child { font-weight: 600; }
  .doc td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
}
