:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --text: #1d1d1b;
  --muted: #6b6962;
  --line: #d7d4cc;
  --accent: #9f2d20;
  --code: #efede7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171715;
    --text: #e9e6df;
    --muted: #aaa69d;
    --line: #3b3935;
    --accent: #ef7b68;
    --code: #242320;
  }
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.65;
}

.shell {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-name { color: var(--text); font-weight: 700; }
nav { display: flex; gap: 1rem; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

main { padding: 4rem 0 2rem; }
.intro { margin-bottom: 4.5rem; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { max-width: 18ch; margin: 0 0 1.25rem; font-size: clamp(2.1rem, 7vw, 3.7rem); }
h2 { margin-top: 2.6rem; font-size: 1.45rem; }
h3 { margin-top: 2rem; font-size: 1.1rem; }
.lede { max-width: 60ch; font-size: 1.12rem; color: var(--muted); }
.page-header { margin-bottom: 3rem; }
.page-header h1 { max-width: 24ch; font-size: clamp(2rem, 6vw, 3.2rem); }
.post-meta, .muted, time { color: var(--muted); font-size: .82rem; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { margin: 0 0 .65rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.post-list li > a { display: inline; font-weight: 700; }
.post-list time { float: right; margin-left: 1rem; }
.post-list p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

.prose p, .prose li { max-width: 70ch; }
.prose blockquote {
  margin: 1.6rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.prose pre { overflow-x: auto; padding: 1rem; background: var(--code); }
.prose code { padding: .12rem .28rem; background: var(--code); font-size: .9em; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
footer p { margin: .35rem 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .5rem; background: var(--bg); }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  main { padding-top: 2.75rem; }
  .intro { margin-bottom: 3rem; }
  .post-list time { display: block; float: none; margin: .2rem 0 0; }
}

