:root {
  --bg: #fbfaf7;
  --fg: #222;
  --muted: #6b6b6b;
  --accent: #b5562f;
  --rule: #e6e2da;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --fg: #e8e6e1;
    --muted: #9a978f;
    --accent: #e08a5f;
    --rule: #2c2c31;
  }
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0 1rem;
  margin-bottom: 2.5rem;
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -.01em;
}

nav a {
  margin-left: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .85rem;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: 2rem; margin: 0 0 .25rem; }
h2 { font-size: 1.35rem; margin-top: 2.25rem; }

.meta {
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8rem;
}

.lede { font-size: 1.1rem; color: var(--muted); margin-top: 0; }

ul.posts { list-style: none; padding: 0; margin: 2rem 0; }
ul.posts li {
  display: flex;
  gap: 1.25rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--rule);
}
ul.posts time {
  flex: 0 0 6.5rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8rem;
  padding-top: .2rem;
}

article p { margin: 0 0 1.15rem; }

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; }
pre {
  background: rgba(127, 127, 127, .08);
  padding: .9rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

footer.site {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .78rem;
}

@media (max-width: 520px) {
  ul.posts li { flex-direction: column; gap: 0; }
  ul.posts time { flex: none; }
}
