@font-face {
  font-family: Archivo;
  src: url("assets/archivo-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f3eb;
  --ink: #1c242c;
  --muted: #4d555f;
  --rule: #a6abae;
  --accent: #1646a0;
  --blue: #183c86;
  --on-blue: #fffdf4;
  --blue-label: #d3e1ff;
  --inset: #eae9e3;
  --sans: system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171c23;
    --ink: #f3eee2;
    --muted: #b4bfcd;
    --rule: #626e7f;
    --accent: #a9c7ff;
    --blue: #213f83;
    --inset: #232b37;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }
.annotation ::selection, .site-footer ::selection { background: var(--blue-label); color: var(--blue); }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .15em; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h2 { font: 700 clamp(1.9rem, 4.1vw, 3.3rem)/1.06 Archivo, var(--sans); letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
p + p { margin-top: .85rem; }
code { font: .91em var(--mono); overflow-wrap: anywhere; }

.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 1; top: .75rem; left: 1rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem .65rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.36rem; font-weight: 800; letter-spacing: -.055em; }
.masthead nav { display: flex; gap: clamp(.75rem, 3vw, 2.25rem); align-items: center; }
.masthead nav a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; color: var(--ink); font-weight: 640; font-size: .93rem; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero { padding-block: clamp(1.8rem, 4.2vw, 3.6rem) clamp(1.9rem, 4vw, 3.5rem); }
.label { font: 700 .76rem/1.4 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
h1 { margin-bottom: .32em; font: 700 clamp(2.65rem, 6.25vw, 5.65rem)/.98 Archivo, var(--sans); letter-spacing: -.04em; }
h1 span { display: block; color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.3rem 3rem; align-items: start; }
.intro { max-width: 38ch; font-size: clamp(1.04rem, 1.5vw, 1.31rem); }
.try { justify-self: end; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 2.85rem; padding: .48rem .83rem; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: underline; }
.primary { background: var(--accent); color: var(--paper); }
.hosts { margin-top: .6rem; font-size: .91rem; font-weight: 650; }
.hosts span { margin-right: .45em; color: var(--muted); font-weight: 450; }

.section { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 5fr); gap: 1.5rem 2rem; padding-block: clamp(2.6rem, 6.8vw, 6rem); border-top: 1px solid var(--rule); }
.example { padding-top: clamp(1.55rem, 3.4vw, 2.8rem); }
.section-index { color: var(--accent); padding-top: .65em; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .55rem 1.5rem; }
.provenance, .aside { color: var(--muted); font-size: .87rem; }
.example-task { margin-block: .65rem 1rem; }
.spread { display: grid; grid-template-columns: 1fr 1.16fr; border: 1px solid var(--rule); }
.spread article { padding: clamp(1.1rem, 2.65vw, 2.25rem); }
.spread h3 { font: 700 clamp(1.38rem, 2.7vw, 2rem)/1.13 Archivo, var(--sans); }
.spread .label { margin-block: .4rem 1rem; }
.report .label { color: var(--accent); }
.annotation { background: var(--blue); color: var(--on-blue); }
.annotation .label { color: var(--blue-label); }
.followup { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 680; }
summary:hover { text-decoration: underline; text-underline-offset: .19em; }
.followup summary, .faq-list summary { padding: .9rem .5rem; }
.followup .label { margin-right: .65rem; color: var(--accent); }
.followup p, .faq-list details p { margin: 0 .6rem 1.1rem; max-width: 67ch; }
.aside { margin-top: 1rem; }
.prose p { max-width: 66ch; }
.prose h2 + p, .install-intro { margin-top: 1.05rem; }
.steps { margin: 1.35rem 0 1.8rem; padding-left: 1.6rem; }
.steps li { padding-left: .35em; }
.steps li::marker { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.steps li + li { margin-top: .35rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.two-col div { border-top: 2px solid var(--rule); padding-top: .85rem; }
.two-col p { margin-top: .5rem; max-width: 42ch; }
.install-intro { max-width: 65ch; }
.install-list { margin-block: 1.5rem; }
.install-list article { padding-block: 1rem; border-top: 1px solid var(--rule); }
.install-list h3 + p { margin-top: .5rem; }
pre { margin: .7rem 0; padding: .8rem .95rem; background: var(--inset); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.link-list, .footer-links { padding: 0; margin: 0; list-style: none; }
.link-list { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.faq-list { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.site-footer { color: var(--on-blue); background: var(--blue); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 3.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.site-footer h2 { font-size: clamp(1.65rem, 4vw, 3rem); }
.site-footer p { margin-top: .85rem; max-width: 48ch; }
.site-footer a { color: inherit; }
.site-footer :focus-visible { outline-color: var(--blue-label); }
.footer-links li + li { margin-top: .32rem; }
.command-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem; margin: -.2rem 0 .65rem; }
.copy { border: 1px solid var(--rule); background: var(--paper); color: var(--accent); min-height: 44px; padding: .3rem .65rem; font: 650 .87rem var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--accent); text-decoration: underline; }
.copy-status { color: var(--muted); font-size: .87rem; }

@media (max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-bottom { grid-template-columns: 1fr; }
  .try { justify-self: start; }
  .section { grid-template-columns: 1fr; gap: .65rem; }
  .section-index { padding-top: 0; }
}

@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 4rem; }
  .masthead nav { gap: .65rem; }
  .masthead nav a { font-size: .8rem; }
  .brand { font-size: 1.12rem; gap: .38rem; }
  .brand img { width: 28px; height: 28px; }
  h1 { font-size: clamp(2.25rem, 10.75vw, 3.6rem); }
  .hero-bottom { gap: .9rem; }
  .button { padding-inline: .64rem; font-size: .9rem; }
  .section-index { justify-self: start; }
  .spread, .two-col, .footer-inner { grid-template-columns: 1fr; }
  .followup .label { display: inline; }
}
