/* Self-hosted fonts (SIL OFL; licenses in /fonts). Latin subset only. */
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/libre-baskerville-400.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/libre-baskerville-700.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/libre-baskerville-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/dm-mono-300.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/dm-mono-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2'); }

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

:root {
  --ink: #0f0e0b;
  --paper: #f5f0e8;
  --rust: #b0472a;
  --muted: #5f5648;
  --border: rgba(15,14,11,0.12);

  --serif: 'Libre Baskerville', Georgia, serif;
  --display: 'Instrument Serif', 'Libre Baskerville', serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  padding: 48px 24px 80px;
}

main { max-width: 680px; margin: 0 auto; }
main:focus { outline: none; }

.back, .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding: 12px 0 2px;
  margin-bottom: 36px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.updated { color: var(--muted); margin-bottom: 40px; }

h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 12px;
}

p, ul { color: var(--muted); margin-bottom: 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); }

main a:not(.back) { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }

a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus { top: 12px; outline-color: var(--paper); }

.other {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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