:root {
  --bg: #ffffff;
  --text: #1c1c1e;
  --muted: #5f5f66;
  --rule: #e3e3e8;
  --accent: #0a6c4a;
  --note-bg: #fff6e0;
  --note-rule: #e8c76a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --text: #ececf0;
    --muted: #a1a1aa;
    --rule: #2c2c31;
    --accent: #4fd1a1;
    --note-bg: #2a2412;
    --note-rule: #7a6420;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
main, header, footer { max-width: 42rem; margin: 0 auto; padding: 0 16px; }

header { padding-top: 28px; }
header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
header .name { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
/* A phone gets the name on a line of its own, and the three links together. */
@media (max-width: 480px) { header .name { flex-basis: 100%; } }

h1 { font-size: 2rem; line-height: 1.2; margin: 32px 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 36px 0 8px; }
.updated { color: var(--muted); margin: 0 0 24px; }
p, ul, dl { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
a { color: var(--accent); }

dl { display: grid; gap: 14px; }
dt { font-weight: 600; }
dd { margin: 2px 0 0; }
dd .why { color: var(--muted); display: block; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--note-rule);
  padding: 12px 14px;
  border-radius: 4px;
  margin: 20px 0;
}
.note p:last-child { margin-bottom: 0; }

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