/* Overexposed: shared tokens and type.
   Material world: a black-and-white darkroom. Resin-coated photo paper (a cold white), silver-gelatin
   blacks, the developing tray, and the red of the safelight, which is also the grease pencil a
   photographer circles keepers with on a contact sheet. Red is punctuation only: under 2% of any view.
   Contrast (measured): ink on paper 16.9:1, ink-2 on paper 7.4:1, bone on tray 15.6:1, grease on paper 4.6:1. */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper:  oklch(96.6% 0.004 250);  /* RC photo paper, a breath of cold */
  --paper-2: oklch(92.5% 0.006 250); /* the paper's shadow, card grounds */
  --ink:    oklch(18% 0.012 255);    /* silver-gelatin black */
  --ink-2:  oklch(42% 0.012 255);    /* fixer-grey secondary text */
  --tray:   oklch(14.5% 0.01 255);   /* the developing tray / darkroom */
  --tray-2: oklch(20% 0.01 255);
  --bone:   oklch(93% 0.014 85);     /* type on the tray: warmed, printed not emitted */
  --grease: oklch(56% 0.2 27);       /* safelight red / grease pencil */
  --line:   oklch(18% 0.012 255 / 0.14);
  --line-dark: oklch(93% 0.014 85 / 0.16);
  --gutter: clamp(16px, 3.2vw, 44px);
  --radius: clamp(16px, 1.8vw, 24px);
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--grease); }
:focus-visible { outline: 2px solid var(--grease); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }
img, svg, canvas { display: block; max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The two scales: big calm sentence-case display, tiny mono caps utility (film edge printing). */
.display { font-size: clamp(44px, 8.4vw, 132px); font-weight: 400; line-height: 0.98; letter-spacing: -0.035em; }
.mono, .kicker, .pill, .annotation {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.kicker { color: var(--ink-2); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--grease); border-radius: 1px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 13px 20px; text-decoration: none; cursor: pointer;
}
.pill .dot { color: var(--grease); font-size: 16px; line-height: 0; }
.pill.light { background: var(--bone); color: var(--ink); }

/* Top bar */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px var(--gutter); position: relative; z-index: 20;
}
.wordmark { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.bar-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.bar-links a { text-decoration: none; padding: 6px 0; border-bottom: 1px dotted transparent; }
.bar-links a:hover, .bar-links a[aria-current] { border-bottom-color: var(--ink); }

/* Footer: three fragments, the last one is the only joke on the site */
.foot { padding: 12vh var(--gutter) 40px; border-top: 1px solid var(--line); margin-top: 14vh; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.foot-links { display: flex; gap: 20px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-links { gap: 14px; }
  .foot-row { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
