:root {
  --bg: #fbfbf9;
  --ink: #261f1d;
  --faint: #5b636d;
  --line: #e3e3dc;
  --accent: #526c89;
  --accent-soft: #526c8914;
  --code-bg: #d3d6ce;
  --content-width: 60rem;
  --font-size-base: 1.3rem;
  --line-height-base: 1.65;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --ink: #d9dbd4;
    --faint: #a3b9bb;
    --line: #2c2f31;
    --accent: #5c7b9c;
    --accent-soft: #5c7b9c1f;
    --code-bg: #1f2224;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  max-width: var(--content-width);
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}
header { margin-bottom: 3.5rem; }
.site-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-decoration: none;
}
.site-name:hover, footer a:hover { color: var(--accent); }
h1 {
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.site-title { font-size: 2.4rem; margin-bottom: 0.5rem; }
.site-subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0 0 2.5rem;
}
h2 { font-size: 1.45rem; font-weight: 500; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8em 0 0.4em; }
.meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0 0 2.5rem;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.wikilink {
  text-decoration-style: dotted;
  border-radius: 3px;
  padding: 0 0.1em;
}
a.wikilink:hover { background: var(--accent-soft); text-decoration-style: solid; }
img { max-width: 100%; height: auto; border-radius: 4px; }
blockquote {
  margin: 1.5em 0;
  padding: 0.1em 1.25em;
  border-left: 2px solid var(--accent);
  color: var(--faint);
  font-style: italic;
}
.callout { font-style: normal; background: var(--accent-soft); border-radius: 0 6px 6px 0; padding: 0.75em 1.25em; }
.callout-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.2em 0 0.4em;
}
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.12em 0.35em;
}
pre { background: var(--code-bg); border-radius: 6px; padding: 1em 1.25em; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.4em 0.8em 0.4em 0; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li {
  display: flex;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.note-list time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--faint);
  white-space: nowrap;
  min-width: 6.5rem;
}
.note-list a { font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.note-list a:hover { color: var(--accent); }
.desc { margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--faint); }
footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}
footer a { color: var(--faint); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .note-list li { flex-direction: column; gap: 0.1rem; }
}
