:root {
  --bg: #fbfaf7;
  --fg: #1f1f1d;
  --muted: #6b6a65;
  --accent: #2f6f5e;
  --code-bg: #efede7;
  --rule: #e2dfd7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151615;
    --fg: #e6e4de;
    --muted: #9a988f;
    --accent: #7cc4ad;
    --code-bg: #222421;
    --rule: #2c2e2b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-serif, Georgia, "Times New Roman", serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
header.site {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--rule); padding-bottom: .75rem; margin-bottom: 2rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem;
}
header.site a.home { color: var(--fg); text-decoration: none; font-weight: 600; }
header.site nav a { margin-left: 1rem; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 4px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
ul.posts { list-style: none; padding: 0; }
ul.posts li { display: flex; gap: 1rem; padding: .35rem 0; }
ul.posts time { color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: .85rem; flex: 0 0 6.5rem; padding-top: .15rem; }
footer { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: .75rem; color: var(--muted); font-size: .85rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
td { padding: .35rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { color: var(--muted); white-space: nowrap; width: 9rem; }
td.v { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; word-break: break-all; }
form.num { display: flex; gap: .5rem; margin: 1rem 0; }
form.num input {
  flex: 1; min-width: 0; font: inherit; font-family: ui-monospace, Menlo, monospace;
  padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: var(--fg);
}
form.num button {
  font: inherit; padding: .45rem .9rem; border: 0; border-radius: 4px; background: var(--accent); color: var(--bg); cursor: pointer;
}
.err { color: #b4432f; }
