/* Shared by every page. Rules only one page uses stay inline in that page. */

/* Served from here so visitors never reach Google. Licences sit beside the files. */
@font-face { font-family: "Jost"; font-weight: 400 500; font-display: swap; src: url(/fonts/jost.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(/fonts/dm-mono-400.woff2) format("woff2"); }

:root {
  --paper: #111214; --ink: #ecebe7; --glow: #96f0d7;
  --soft: color-mix(in oklab, var(--ink) 70%, var(--paper));
  --muted: color-mix(in oklab, var(--ink) 52%, var(--paper));
  --rule: color-mix(in oklab, var(--ink) 11%, var(--paper));
  --sans: "Jost", ui-sans-serif, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* The Mac app's status colours, from OverlayStyle.swift. */
  --alert: #e06b73; --working: #e6bf7a; --done: #7acc96;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Each page sets --page, its content width. */
.page { max-width: var(--page); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

header { display: flex; justify-content: space-between; align-items: center; height: 5.5rem; }
nav { display: flex; gap: 1.75rem; font: 400 0.8125rem var(--mono); }
nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
nav a:hover { color: var(--ink); }

.site .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); font: 400 0.75rem var(--mono); color: var(--muted); }
.site .wm svg { display: block; height: 0.9rem; width: auto; color: var(--ink); }
.site ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site a { text-decoration: none; transition: color 0.15s; }
.site a:hover, .site a[aria-current] { color: var(--ink); }
