@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* Brand values from BRANDING.md §6. Never add a colour that isn't listed there. */
:root {
  --background: #fafafa;
  --foreground: #18181b;
  --muted-foreground: #52525b;
  --primary: #0e7490;
  --border: #e4e4e7;
  --font: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09090b;
    --foreground: #fafafa;
    --muted-foreground: #a1a1aa;
    --primary: #22d3ee;
    --border: #3f3f46;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

main { flex: 1; display: flex; flex-direction: column; gap: 32px; }
section { display: flex; flex-direction: column; gap: 12px; }

h1 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
p, li { max-width: 68ch; }

a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.caption { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }

/* Lockup (BRANDING.md §5): mark height = cap height × 1.4, gap = 0.35 × mark height.
   Figtree's cap height is 0.7 of the font size. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--cap) * 0.49);
  min-height: 44px;
  color: var(--primary);
  text-decoration: none;
}
.lockup svg { flex: none; height: calc(var(--cap) * 1.4); width: auto; }
.lockup span {
  color: var(--foreground);
  font-size: var(--size);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lockup-large { --size: 40px; --cap: 28px; }
.lockup-small { --size: 20px; --cap: 14px; }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list a { display: flex; align-items: center; min-height: 44px; }

.prose-list { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
footer ul { list-style: none; display: flex; gap: 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
