/* The stylesheet of the text pages (pages/*.md). The map has its own: src/style.css. */
:root {
  --bg: #fbfaf6;
  --fg: #23201b;
  --muted: #6d665b;
  --line: #ddd6c8;
  --accent: #9a4f1c;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header.site,
main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}
header.site {
  padding-top: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
main {
  padding-bottom: 48px;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  margin: 28px 0 16px;
}
h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
a {
  color: var(--accent);
}
li {
  margin: 6px 0;
}
code {
  font:
    0.88em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: #f0ece2;
  border-radius: 3px;
  padding: 1px 4px;
}
pre {
  background: #f0ece2;
  border-radius: 6px;
  padding: 10px 12px;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
}
/* A wide table scrolls inside itself, so the page never scrolls sideways. */
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #f0ece2;
}
