:root {
  color-scheme: light;
  --bg: #fafaf9;
  --text: #1a1a1a;
  --muted: #8a8a85;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e0e;
  --text: #d6d6d6;
  --muted: #6e6e6e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0e0e;
    --text: #d6d6d6;
    --muted: #6e6e6e;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 72ch;
  padding: 14vh 8vw 10vh;
}
h1 {
  margin: 0;
  font: inherit;
  font-weight: 600;
}
p { margin: 0 0 1.7em; }
.rule { color: var(--muted); }
.path { overflow-wrap: anywhere; }
dl {
  display: grid;
  grid-template-columns: 10ch 1fr;
  margin: 0 0 3.4em;
}
dt { color: var(--muted); }
dd { margin: 0; }
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
footer, footer p { color: var(--muted); font-size: 13px; margin-bottom: 0.4em; }

.theme {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  color: var(--muted);
}
.theme button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
}
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  main { padding: 48px 16px; }
  dl { grid-template-columns: 9ch 1fr; }
  .theme { top: 12px; right: 16px; }
}
