:root {
  --bg: #fbfaf7;
  --text: #1d1b16;
  --muted: #5f5a4f;
  --rule: #e4e0d6;
  --accent: #b07a00;
  --badge: #ffc600;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --text: #ece8dd;
    --muted: #a39d8f;
    --rule: #2e2b23;
    --accent: #ffc600;
  }
}

* { box-sizing: border-box; }

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

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

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

.name::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  border-radius: 0.2em;
  background: var(--badge);
}

nav a { margin-left: 1rem; }
nav a:first-child { margin-left: 0; }

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

h1 { font-size: 1.9rem; line-height: 1.25; margin: 2rem 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }

.updated, footer { color: var(--muted); font-size: 0.9rem; }

ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

code {
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
