:root {
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #8a8580;
  --accent: #c2410c;
  --line: #e7e3dc;
  --code: #f1eee8;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #e8e5e0;
    --muted: #8f8a84;
    --accent: #fb8b4b;
    --line: #2c2a28;
    --code: #222120;
  }
}

body {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  font: 1.125rem/1.7 var(--serif);
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

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

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.title { color: var(--text); font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin-bottom: 0.25rem; }

time { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

ul.posts { list-style: none; padding: 0; margin-top: 2rem; }
ul.posts li { display: flex; gap: 1.25rem; align-items: baseline; margin-bottom: 0.6rem; }
ul.posts time { flex-shrink: 0; }
ul.posts a { color: var(--text); text-decoration: none; }
ul.posts a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--code); padding: 2px 5px; border-radius: 4px; }
pre { background: var(--code); padding: 1rem; overflow-x: auto; border-radius: 6px; }
pre code { padding: 0; background: none; }
blockquote { border-left: 2px solid var(--accent); margin: 1.5rem 0; padding-left: 1rem; color: var(--muted); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
