/* Brand fonts, self-hosted (SIL Open Font License, see /fonts/OFL-*.txt). Latin subset, only the weights in use. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #F7F1E6;
  --text: #1E2B2F;
  --muted: #55605F;
  --accent: #8C3A21;
  --rule: #E4DACA;
  --note-bg: #EFE5D3;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A1C;
    --text: #EDE6DA;
    --muted: #aaa398;
    --accent: #E8865F;
    --rule: #2C3538;
    --note-bg: #1E2629;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

header .brand { color: var(--text); text-decoration: none; }

nav a { margin-left: 16px; }

main { padding-top: 16px; padding-bottom: 48px; overflow-wrap: break-word; }

code { overflow-wrap: anywhere; }

h1, h2, header .brand { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 600; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 24px 0 4px; }
h2 { font-size: 1.25rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }

a { color: var(--accent); }

.updated { color: var(--muted); margin-top: 0; }

.summary {
  background: var(--note-bg);
  border-radius: 8px;
  padding: 4px 20px;
}

.placeholder {
  background: #ffe28a;
  color: #1f1d1a;
  padding: 0 4px;
  border-radius: 3px;
}

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--rule); }
.table-wrap { overflow-x: auto; }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { margin-right: 16px; }
