:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #76746e;
  --rule: #e4e1da;
  --link: #1d1d1b;
  --accent: #b5462f;
  --quote: #f2efe8;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #e6e3dc;
    --muted: #8c897f;
    --rule: #2c2b28;
    --link: #e6e3dc;
    --accent: #e0805f;
    --quote: #1f1e1c;
  }
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0 auto;
  max-width: 36rem;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

header.site {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
  font-family: var(--mono); font-size: .85rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem;
}
header.site .name { font-weight: 700; text-decoration: none; }
header.site .tagline { color: var(--muted); }
header.site nav { margin-left: auto; display: flex; gap: 1rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }

h1 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 .35rem; letter-spacing: -.01em; }
.meta, time { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.meta { margin: 0 0 2rem; }
article p { margin: 0 0 1.15rem; }
blockquote {
  margin: 1.5rem 0; padding: .9rem 1.1rem;
  background: var(--quote); border-left: 3px solid var(--accent);
  font-family: var(--mono); font-size: .88rem; line-height: 1.6;
}
blockquote p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.15rem; }
li { margin-bottom: .35rem; }

.start { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin: 0 0 2rem; }
h2.year { font-family: var(--mono); font-size: .85rem; color: var(--muted); font-weight: 400; margin: 2rem 0 .6rem; }
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { display: flex; gap: 1.1rem; padding: .3rem 0; border-bottom: 1px dashed var(--rule); }
ul.posts time { flex: 0 0 auto; padding-top: .15rem; }

nav.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: .8rem;
}
nav.pager a { color: var(--muted); text-decoration: none; max-width: 48%; }
nav.pager a:last-child { text-align: right; }
nav.pager a:hover { color: var(--accent); }

footer.site {
  margin-top: 4rem; font-family: var(--mono); font-size: .75rem; color: var(--muted);
}
.small { font-size: .8rem; color: var(--muted); }

article h2 { font-family: var(--mono); font-size: .85rem; font-weight: 400; color: var(--muted); margin: 2.25rem 0 .75rem; }
.things li { margin-bottom: .6rem; }

.progress { overflow-x: auto; padding-bottom: .5rem; }
.year-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.y-label { font-family: var(--mono); font-size: .7rem; color: var(--muted); width: 2.4rem; flex: 0 0 auto; }
.grid { display: grid; grid-template-rows: repeat(7, 8px); grid-auto-flow: column; grid-auto-columns: 8px; gap: 2px; }
.c { width: 8px; height: 8px; border-radius: 2px; background: var(--rule); }
.c.x { background: transparent; }
.c.l { background: #9be9a8; }
.c.g { background: #2da44e; }
.c.y { background: #e3b341; }
@media (prefers-color-scheme: dark) {
  .c.l { background: #0e4429; }
  .c.g { background: #39d353; }
  .c.y { background: #bb8009; }
}

pre {
  font-family: var(--mono); font-size: .72rem; line-height: 1.55;
  background: var(--quote); padding: .9rem 1rem; margin: 1.5rem 0;
  overflow-x: auto; white-space: pre;
}
a.c { display: block; text-decoration: none; }
body.bare { display: flex; min-height: 90vh; align-items: center; justify-content: center; font-family: var(--mono); font-size: .9rem; }
