@font-face { font-family: Fraunces; src: url('/fonts/Fraunces-Gathr-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --text: #1d1a17;
  --muted: #66625d;
  --rule: #e2e2de;
  --accent: #b24e22;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a17;
    --text: #f6f6f4;
    --muted: #bfb2a6;
    --rule: #3b342e;
    --accent: #f2a06a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.top, main, .bottom { width: min(68ch, 100% - 32px); margin-inline: auto; }
.top { padding: 24px 0 0; }
.home { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
main { padding: 32px 0 64px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { margin: 0 0 8px; font-size: clamp(32px, 7vw, 48px); }
h2 { margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 28px; font-weight: 600; }
h3 { margin: 32px 0 8px; font-size: 20px; font-weight: 600; }
.updated { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.langs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
section { scroll-margin-top: 16px; }
ul, ol { padding-left: 1.25em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }

.bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 40px; border-top: 1px solid var(--rule); color: var(--muted); }
.bottom > * { font-size: 14px; }

.skip-link { position: absolute; left: 16px; top: 12px; transform: translateY(-200%); padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { transform: none; }
