:root {
  --bg: #fdfdfb;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --link: #0a5fb4;
  --rule: #e4e4df;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --fg: #e8e8e3; --muted: #9a9a93; --link: #7db4ec; --rule: #2c2c29; }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  padding: 3rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
}
main { max-width: 38rem; margin: 0 auto; }
h1 { font-size: 1.6rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 2.5rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
p { margin: 0 0 1rem; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.lede { color: var(--muted); margin-bottom: 2rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.posts { list-style: none; padding: 0; margin: 0; }
ul ul { margin-top: 0.4rem; }
li { margin-bottom: 0.4rem; }
.posts li { padding: 0.75rem 0; border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts time { display: block; font-size: 0.85rem; color: var(--muted); }
.posts .summary { margin: 0.2rem 0 0; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
nav.crumb { font-size: 0.9rem; margin-bottom: 2rem; }
nav.crumb a { color: var(--muted); }
article h1 { margin-bottom: 0.25rem; }
article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
article h2 { text-transform: none; letter-spacing: 0; color: var(--fg); font-size: 1.2rem; margin-top: 2rem; }
.demo { border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; margin: 1.5rem 0; }
pre { overflow-x: auto; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 6px; font-size: 0.9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
figure { margin: 1.75rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
/* Screenshots are wider than prose can be. Let them break out to ~56rem when there is room. */
@media (min-width: 60rem) {
  figure.wide { width: 56rem; margin-left: calc(50% - 28rem); }
}
footer { max-width: 38rem; margin: 4rem auto 0; color: var(--muted); font-size: 0.85rem; }
