:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --text: #22201c;
  --muted: #615c54;
  --rule: #dcd7cc;
  --code-bg: #efece5;
  --accent: #9c3b17;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191b;
    --text: #e4e0d8;
    --muted: #a19b90;
    --rule: #34373b;
    --code-bg: #24272b;
    --accent: #ee9a72;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

header.site, main, footer.site {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

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

header.site nav a { margin-left: 12px; }
header.site nav a:first-child { margin-left: 0; }

main { padding-top: 8px; padding-bottom: 32px; }

footer.site {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: 1.2em 0 0.5em; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 2em 0 0.4em; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.35em; }

a { color: var(--accent); text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5em 0.75em 0.5em 0;
  border-bottom: 1px solid var(--rule);
}
th { font-weight: 600; border-bottom-color: var(--muted); }
td:first-child { min-width: 6.5em; }

.date, .muted { color: var(--muted); }

.extensions { list-style: none; padding: 0; }
.extensions li { padding: 0.9em 0; border-top: 1px solid var(--rule); margin: 0; }
.extensions li:last-child { border-bottom: 1px solid var(--rule); }
.extensions h3 { font-size: 1.05rem; margin: 0 0 0.2em; }
.extensions p { margin: 0 0 0.3em; }
.extensions .links { font-size: 0.95rem; }
