/* System fonts only: nothing is loaded from another host. */
:root {
  color-scheme: light dark;
  --bg: #fbf9f4; --fg: #1c211f; --muted: #52605b; --line: #d9d4c7; --card: #ffffff;
  --brand: #0e4f47; --on-brand: #ffffff; --link: #0b5c52; --mark: #ffe39a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513; --fg: #e8ece9; --muted: #a8b5b0; --line: #2d3834; --card: #18201d;
    --brand: #0b3b35; --on-brand: #ffffff; --link: #7fd1c2; --mark: #6b5200;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.6 system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
header { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding: .5rem 1rem; background: var(--brand); }
header a { color: var(--on-brand); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
header :focus-visible { outline-color: var(--on-brand); }
.brand { font-size: 1.25rem; font-weight: 700; margin-right: auto; }
nav { display: flex; gap: 1.25rem; }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.skip { position: absolute; left: -999rem; }
.skip:focus { position: static; display: block; padding: .75rem 1rem; }
.status { margin: 0; padding: .35rem 1rem; font-size: .875rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.status:empty { display: none; }
main { max-width: 42rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
main:focus { outline: none; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .5rem; }
h3, h4 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
label { display: block; font-weight: 600; }
input[type="search"], input[type="text"] { width: 100%; font: inherit; padding: .65rem .75rem; margin: .25rem 0 .5rem; color: var(--fg); background: var(--card); border: 1px solid var(--muted); border-radius: .5rem; }
select { display: block; font: inherit; min-height: 2.75rem; margin: .25rem 0 .5rem; }
button, .button { font: inherit; min-height: 2.75rem; padding: .5rem 1rem; border: 0; border-radius: .5rem; background: var(--brand); color: var(--on-brand); cursor: pointer; }
.button { display: inline-flex; align-items: center; text-decoration: none; }
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: block; min-height: 2.75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); font-size: .875rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; margin: 1rem 0; }
progress { width: 100%; height: 1rem; accent-color: var(--link); }
mark { background: var(--mark); color: inherit; }
.suggestions { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.chip { background: var(--card); color: var(--link); border: 1px solid var(--muted); }
.hits { list-style: none; margin: 0; padding: 0; }
.hits a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.path { display: block; color: var(--link); font-size: .875rem; text-decoration: underline; }
.excerpt { display: block; }
textarea { display: block; width: 100%; font: inherit; padding: .65rem .75rem; margin: .25rem 0 .5rem; color: var(--fg); background: var(--card); border: 1px solid var(--muted); border-radius: .5rem; resize: vertical; }
blockquote { margin: 0; padding-left: .75rem; border-left: .25rem solid var(--link); white-space: pre-line; }
.passage { white-space: pre-line; }
.chip { text-align: left; }
.problem { color: var(--fg); font-weight: 600; }
.problem:empty { display: none; }
.caution { border-width: 2px; border-color: var(--link); font-weight: 600; }
th { width: 40%; overflow-wrap: normal; padding-right: .75rem; }
pre { white-space: pre-wrap; font-size: .8rem; }
summary { min-height: 2.75rem; cursor: pointer; }
.attribution { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .875rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .35rem .5rem .35rem 0; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
