:root {
  --bg: #f6f6ef;
  --ink: #111;
  --muted: #555;
  --line: #c8c8bf;
  --link: #0000aa;
  --code: #eeeeE6;
  --max: 900px;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 13.5px/1.55 Verdana, Geneva, sans-serif;
}
a { color: var(--link); }
a:visited { color: #551a8b; }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }
code, pre, .release, .hash, table { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { padding: 0 .18em; background: var(--code); }

.skip-link { position: fixed; left: .5rem; top: -4rem; z-index: 5; padding: .45rem; color: #fff; background: #111; }
.skip-link:focus { top: .5rem; }
.site-header, main, footer { width: min(calc(100% - 24px), var(--max)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--ink); font-weight: 700; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; }

article, .method-page { padding: 30px 0 42px; }
.article-header { max-width: 820px; }
.release { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
h1 { max-width: 820px; margin: 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.25; }
h1 code { padding: 0; background: transparent; font-size: .88em; }
h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
p { max-width: 820px; }
.abstract { margin: 14px 0 8px; font-size: 15px; line-height: 1.55; }
.summary { margin: 24px 0 0; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
section { margin-top: 34px; }
ul { max-width: 790px; padding-left: 22px; }
li + li { margin-top: 4px; }
.note, .scroll-hint, .hash { color: var(--muted); font-size: 11px; }

.scroll-hint { margin: 10px 0 4px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 11.5px; line-height: 1.35; }
caption { padding: 7px 8px; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); }
th, td { padding: 6px 8px; text-align: right; border-bottom: 1px solid #e0e0d8; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: #e6e6df; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f4f4ec; }

pre { max-width: 820px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); background: #fff; font-size: 11px; line-height: 1.5; }
.method-page { max-width: 820px; }
.method-page section { margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--line); }
.method-page .abstract { margin-bottom: 28px; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 0 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 620px) {
  body { font-size: 13px; }
  .site-header { align-items: flex-start; }
  nav { justify-content: flex-end; }
  article, .method-page { padding-top: 22px; }
  footer { display: block; }
  footer span { display: block; margin-top: 3px; }
}

@media print {
  nav, .skip-link { display: none; }
  body { background: #fff; }
  .site-header, main, footer { width: 100%; }
}
