:root {
  --bg: #fbfaf8;
  --fg: #292524;
  --muted: #6b635d;
  --line: #e7e2dc;
  --accent: #b45309;
  --todo-bg: #fef3c7;
  --todo-fg: #78350f;
}
/* Light is the default; dark when chosen (see /theme.js). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a09;
  --fg: #e7e5e4;
  --muted: #a8a29e;
  --line: #292524;
  --accent: #f59e0b;
  --todo-bg: #451a03;
  --todo-fg: #fde68a;
}
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 14px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; padding: 0; vertical-align: middle; }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 24px; padding-bottom: 8px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
header a.brand { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; color: var(--fg); text-decoration: none; }
nav a { margin-left: 14px; font-size: 14px; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 34px; line-height: 1.2; margin: 24px 0 4px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p.updated { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.wrap { overflow-x: auto; }
.summary { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; margin: 20px 0; }
mark.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 4px; border-radius: 3px; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; padding-bottom: 32px; }
