/* The only stylesheet. Plain text on a plain background; keep it under 100 lines. */
:root {
  --fg: #000;
  --bg: #fff;
  --muted: #444;
  --rule: #bbb;
  --link: #0000ee;
  --visited: #551a8b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: #e8e8e8;
    --bg: #121212;
    --muted: #b8b8b8;
    --rule: #555;
    --link: #8cb4ff;
    --visited: #c8a8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fg: #e8e8e8;
  --bg: #121212;
  --muted: #b8b8b8;
  --rule: #555;
  --link: #8cb4ff;
  --visited: #c8a8ff;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 64rem;
  padding: .75rem 1rem;
  font: 14.5px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
h1 { font-size: 1.5rem; margin: 0 0 .15rem; }
h2 {
  font-size: 1.15rem;
  margin: 1rem 0 .3rem;
  padding-bottom: .1rem;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1rem; margin: .5rem 0 .1rem; }
p { margin: .2rem 0; max-width: 46rem; }
small, time { color: var(--muted); }
small { font-size: .87em; }
.tagline { font-weight: 600; }
.preview { border: 2px solid var(--fg); padding: .3rem .5rem; }

ul { margin: .2rem 0; padding-left: 1.2rem; }
ul:not(.rows) > li { padding-block: .15rem; }
ul.rows { list-style: none; padding: 0; }
ul.rows li {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  gap: 0 .5em;
  padding: .04rem 0;
}
time, ul.rows li > span:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.article { max-width: 38rem; font-size: 1.05rem; line-height: 1.5; }
.article p { margin: .7rem 0; }
blockquote { margin: .7rem 0; padding-left: .8rem; border-left: 3px solid var(--rule); }

@media (max-width: 25rem) {
  body { font-size: 14px; }
  ul.rows li { grid-template-columns: 6.4em 1fr; }
}
@media print {
  a { color: inherit; }
}
