/* No remote fonts, scripts, or runtime dependencies.
   Colors follow the visitor's light or dark setting. */
:root {
  color-scheme: light;
  --ink: #14262c;
  --muted: #3c525a;
  --paper: #f4f1e8;
  --panel: #fffdf8;
  --line: #cfdad4;
  --accent: #0a5c54;
  --accent-hover: #08443e;
  --on-accent: #ffffff;
  --warm: #d4f77e;
  --on-warm: #14262c;
  --code-bg: #e7efe8;
  --code-line: #b7cdc2;
  --hero-code-bg: #14262c;
  --hero-code-fg: #d4f77e;
  --banner-bg: #e7eee4;
  --banner-ink: #243832;
  --quote: #2c463f;
  --hover: #e5eee6;
  --current: #d7eadc;
  --current-ink: #08332f;
  --header: #f4f1e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6f1ec;
    --muted: #b7c9c2;
    --paper: #10181b;
    --panel: #182226;
    --line: #314148;
    --accent: #7ddec8;
    --accent-hover: #9aecd8;
    --on-accent: #06221e;
    --warm: #d4f77e;
    --on-warm: #14262c;
    --code-bg: #1c2c30;
    --code-line: #345056;
    --hero-code-bg: #071012;
    --hero-code-fg: #d4f77e;
    --banner-bg: #1a2a26;
    --banner-ink: #d5e6df;
    --quote: #c5ddd4;
    --hover: #243034;
    --current: #1e3a34;
    --current-ink: #d8f6ee;
    --header: #10181b;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--warm); color: var(--on-warm); }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 6; padding: .5rem 1rem; background: var(--warm); color: var(--on-warm); }
.skip:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 4; max-width: 1440px; margin: auto; padding: .9rem 4vw; display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; background: var(--header); border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.7rem; font-weight: 800; letter-spacing: -.06em; color: var(--ink); text-decoration: none; }
.wordmark-dot { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .92rem; font-weight: 650; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: .35rem .15rem; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.draft-banner { padding: .7rem 4vw; border-bottom: 1px solid var(--line); background: var(--banner-bg); color: var(--banner-ink); display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.2rem; font-size: .78rem; }
.draft-banner strong { white-space: nowrap; }
main:not(.document) { max-width: 1120px; margin: auto; padding: 0 4vw 4rem; }
main.narrow { max-width: 760px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 5rem; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { margin-top: 2.2rem; font-size: 1.7rem; }
h3 { margin-top: 1.8rem; font-size: 1.2rem; }
h4 { margin-top: 1.6rem; font-size: 1rem; }
p { margin: 1rem 0; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero { padding: 3.2rem 0 2rem; max-width: 820px; }
.hero h1 { margin: .6rem 0 1rem; font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: .92; letter-spacing: -.055em; font-weight: 750; }
.intro { max-width: 42rem; font-size: 1.12rem; }
.intro p:last-child { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.button { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); text-decoration: none; font-size: .92rem; font-weight: 650; border-radius: 4px; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--hover); color: var(--ink); }
pre { max-width: 100%; overflow-x: auto; padding: 1rem 1.15rem; line-height: 1.55; border: 1px solid var(--code-line); background: var(--code-bg); border-radius: 6px; tab-size: 2; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .86em; overflow-wrap: anywhere; background: var(--code-bg); padding: .08em .28em; border-radius: 3px; }
pre code { display: block; width: max-content; min-width: 100%; background: none; padding: 0; overflow-wrap: normal; }
.hero-code { background: var(--hero-code-bg); border-color: var(--hero-code-bg); color: var(--hero-code-fg); margin: 0; padding: 1.15rem 1.25rem; font-size: 1.05rem; }
.hero-code code { color: inherit; }
.caption { color: var(--muted); font-size: .85rem; }
.scope, .examples { border-top: 1px solid var(--line); padding: 2.2rem 0; }
.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem; }
.scope h2 { margin-top: .4rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.scope p:first-child { margin-top: 0; }
.next { padding: 1rem 0 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.cards a { display: flex; flex-direction: column; gap: .4rem; min-height: 7.5rem; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--accent); }
.cards span { color: var(--muted); font-size: .88rem; }
footer { max-width: 1440px; margin: auto; padding: 1.4rem 4vw 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .8rem 1.4rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
footer a { color: var(--ink); }
.docs-layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3vw; padding: 1.6rem 4vw 4rem; }
.sidebar { font-size: .82rem; border-right: 1px solid var(--line); padding-right: 1rem; }
.sidebar-title { display: block; font-weight: 700; color: var(--ink); margin: 0 0 .8rem; text-decoration: none; }
.sidebar ul { padding: 0; list-style: none; margin: 0; }
.sidebar li { margin: .15rem 0; }
.sidebar li a { display: block; padding: .28rem .5rem; text-decoration: none; color: var(--muted); border-radius: 4px; }
.sidebar li a.depth-3 { padding-left: 1rem; }
.sidebar li a:hover { background: var(--hover); color: var(--accent); }
.sidebar li a[aria-current] { color: var(--current-ink); background: var(--current); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.document { min-width: 0; max-width: 48rem; }
.document h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: .4rem 0 1rem; }
.document h2 { border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.source-note { font-size: .82rem; color: var(--muted); }
.lede { font-size: 1.12rem; }
.toc { margin: 1.2rem 0; padding: .6rem 1rem; background: var(--banner-bg); border: 1px solid var(--line); border-radius: 6px; font-size: .88rem; }
.toc summary { cursor: pointer; font-weight: 650; }
.toc ul { columns: 2; padding-left: 1.2rem; }
.toc li { break-inside: avoid; padding-bottom: .25rem; }
.family-list { padding-left: 1.2rem; }
.family-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.family-list span { display: inline-block; margin-left: .8rem; font-size: .75rem; color: var(--muted); }
table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin-block: 1.2rem; font-size: .88rem; }
th, td { border: 1px solid var(--line); padding: .55rem .7rem; vertical-align: top; min-width: 7rem; }
th { background: var(--hover); text-align: left; }
td { background: var(--panel); }
blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.2rem 0; color: var(--quote); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.not-found { padding: 4rem 0; }
@media (min-width: 1000px) {
  .sidebar { align-self: start; position: sticky; top: 5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .scope { grid-template-columns: 1fr; gap: .4rem; }
  .docs-layout { display: block; padding-top: 1rem; }
  .sidebar { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 .8rem; margin-bottom: 1.2rem; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: .2rem .35rem; }
  .sidebar li { margin: 0; max-width: 100%; }
  .toc ul { columns: 1; }
  .hero-code { font-size: .92rem; }
  footer { flex-direction: column; }
}
@media (forced-colors: active) {
  .button, .cards a, .draft-banner, pre { border: 1px solid ButtonText; }
  a:focus-visible, summary:focus-visible { outline-color: Highlight; }
}
@media print {
  .site-header, .sidebar, .toc, .actions, footer, .draft-banner { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .docs-layout { display: block; padding: 0; }
  a { color: inherit; }
  pre { white-space: pre-wrap; }
}
