/* A 1998 homepage with 2026 type and colors. No web fonts: system fonts only,
   so pages make zero third-party requests. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf6;
  --fg: #1e1d1a;
  --muted: #6b675e;
  --rule: #cfcabd;
  --link: #1f4fbf;
  --visited: #6a3d9a;
  --code-bg: #f0ede4;
  --mark: #fff1a8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --fg: #dcd9d0;
    --muted: #8f8b82;
    --rule: #3a3a40;
    --link: #8db4ff;
    --visited: #c3a4f5;
    --code-bg: #232328;
    --mark: #5a4e14;
  }
}

html { background: var(--bg); }

body {
  max-width: 40em;
  margin: 2.5em auto 4em;
  padding: 0 1em;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5em 0; }

h1, h2, h3, h4 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: 1.75em; margin-top: 0.4em; }
h2 { font-size: 1.35em; }
h3 { font-size: 1.1em; }

.site { margin: 0; font-size: 1.4em; font-weight: bold; }
.site a, .site a:visited { color: var(--fg); text-decoration: none; }
.nav { margin: 0.2em 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8em; color: var(--muted); }

.date { color: var(--muted); }
article > .date { margin-top: -0.4em; font-style: italic; }
.draft { color: #c0392b; font-size: 0.7em; vertical-align: middle; }

.entry h2 { margin: 0.6em 0 0.3em; font-size: 1.3em; }
.entry h2 a, .entry h2 a:visited { color: var(--fg); text-decoration: none; }
.entry h2 a:hover { text-decoration: underline; }
.entry > .date { margin: -0.2em 0 0.6em; font-size: 0.85em; font-style: italic; }
hr.soft { width: 30%; margin: 2em auto; border-top-style: dashed; }

ul.posts { list-style: none; padding: 0; }
ul.posts li { margin: 0.25em 0; }
ul.posts .date { display: inline-block; min-width: 4.2em; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }

code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.85em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 0.8em 1em; overflow-x: auto; line-height: 1.45; border-left: 3px solid var(--rule); }
pre code { background: none; padding: 0; font-size: 1em; }

blockquote { margin: 1em 0; padding: 0 1em; border-left: 3px solid var(--rule); color: var(--muted); }

img { max-width: 100%; height: auto; }
figure { margin: 1.5em 0; }
figcaption { color: var(--muted); font-size: 0.85em; }

table { border-collapse: collapse; margin: 1em 0; }
th, td { border: 1px solid var(--rule); padding: 0.3em 0.6em; text-align: left; }

mark { background: var(--mark); color: inherit; }

.footnote { font-size: 0.85em; color: var(--muted); }
.back { margin-top: 2em; }
