@import "/analytics-notice.css";

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/HankenGrotesk.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --ink: #302b29;
  --muted: #645d59;
  --line: #d8d1c8;
  --primary: #674638;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211f1d;
    --surface: #2b2926;
    --ink: #eeeae3;
    --muted: #bdb6ae;
    --line: #5d554b;
    --primary: #d0a184;
  }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.7 "Hanken Grotesk", system-ui, sans-serif; }
header, main, footer { width: min(100%, 54rem); margin: auto; padding: 1.25rem; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; border-bottom: 1px solid var(--line); }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
header a, footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
a { color: var(--primary); text-underline-offset: .2em; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.brand { color: var(--ink); font-size: 1.3rem; font-weight: 750; text-decoration: none; }
.skip { position: absolute; left: 1rem; top: -8rem; background: var(--surface); padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
main { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: .5rem 0 1rem; max-width: 22ch; }
h2 { margin-top: 2.5rem; font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p, li { max-width: 70ch; }
li + li { margin-top: .65rem; }
ul, ol { padding-left: 1.4rem; }
.eyebrow, .intro { color: var(--muted); }
.eyebrow { margin: 0; font-size: .9rem; font-weight: 650; }
.intro { font-size: 1.2rem; }
.note { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
code { font-size: .9em; overflow-wrap: anywhere; }
pre { padding: 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); overflow-x: auto; }
pre code { overflow-wrap: normal; }
section[id], h2[id] { scroll-margin-top: 1rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
@media (min-width: 40rem) { header, main, footer { padding-left: 2rem; padding-right: 2rem; } }
