/* One stylesheet for every page: the site is three documents and a landing,
   so tokens live here rather than in a build step. */
:root {
  --paper: #fffdf5;
  --ink: #1d1b16;
  --muted: #6b665a;
  --line: #e9e3cf;
  --accent: #fde054;
  --link: #6a5300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16150f;
    --ink: #f3efe2;
    --muted: #a8a290;
    --line: #2e2b21;
    --accent: #fde054;
    --link: #fde054;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--accent);
}

nav a { margin-left: 16px; }

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

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 32px 0 8px; }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.lang-switch {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
}

section.lang + section.lang {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

footer.site {
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
}
