/* The tokens are copied from the dashboard and the fonts self-hosted so the published page needs no other file or network. */
@font-face { font-family: "Outfit"; src: url(outfit-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root, [data-theme="light"] {
  --page: #F7FAF9; --raised: #FFFFFF; --tint: #EEF5F2; --tint-2: #E3EEEA; --hairline: #DCE8E4;
  --ink: #0A2B23; --muted: #4F6B64; --primary: #1E9A7A; --deep: #136B55;
  --selected: #C4EFE2; --amber: #F2A541; --amber-tint: #FDF1DF; --red: #C2410C;
  --link: var(--deep); --btn: var(--deep); --on-btn: #FFFFFF; --ink-fixed: #0A2B23;
  --f-head: "Outfit", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-chip: 6px; --r-btn: 8px; --r-card: 12px; --r-overlay: 18px; --r-round: 999px;
  color-scheme: light;
}
[data-theme="dark"] {
  --page: #121816; --raised: #18201E; --tint: #1E2826; --tint-2: #252F2D; --hairline: #2A3532;
  --ink: #E6ECEA; --muted: #9AA8A4; --primary: #3CC29C; --deep: #1E9A7A;
  --selected: #1D3B34; --amber: #F2A541; --amber-tint: #332816; --red: #F07B4F;
  --link: var(--primary); --btn: var(--primary); --on-btn: #121816;
  color-scheme: dark;
}

/* Art comes in a light and a dark variant; show the one that matches the theme. */
[data-theme="dark"] .lt, [data-theme="light"] .dk { display: none !important; }
:root:not([data-theme]) .dk { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: var(--f-mono); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--on-btn); padding: 10px 14px; border-radius: var(--r-btn); z-index: 10; }
.skip:focus { top: 12px; }

/* Moon toggle, as on the dashboard. */
.theme { inline-size: 44px; block-size: 44px; display: grid; place-items: center; border: 1px solid var(--hairline); background: var(--raised); color: var(--ink); border-radius: var(--r-btn); cursor: pointer; padding: 0; }
.theme svg { inline-size: 18px; block-size: 18px; }
.theme .sun { display: none; }
[data-theme="dark"] .theme .sun { display: block; }
[data-theme="dark"] .theme .moon { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
