:root {
  --bg: #fffefb;
  --text: #1c1c1c;
  --muted: #9a9a9a;
  --accent: #e8590c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --text: #e6e6e6;
    --muted: #6f6f6f;
    --accent: #ff8a3d;
  }
}

::selection { background: var(--accent); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin: 12vh 0 80px 10vw;
  padding: 0 20px 0 0;
}

@media (max-width: 600px) {
  body { margin: 48px 0; padding: 0 20px; }
}

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

h1, h2 { font-size: 1em; font-weight: 600; margin: 0 0 1em; }
h2 { margin-top: 2.8em; color: var(--muted); font-weight: 400; }

nav { margin-bottom: 3em; font-size: 0.9em; }
nav a { margin-right: 1.2em; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--accent); }

.muted, .date { color: var(--muted); font-variant-numeric: tabular-nums; }

ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { display: flex; gap: 1.5em; margin-bottom: 0.3em; }
ul.posts .date { flex: none; width: 5.5em; }

article p:first-of-type::first-letter { color: var(--accent); }

footer { margin-top: 5em; color: var(--muted); font-size: 0.85em; }

hr { border: none; text-align: center; margin: 2.5em 0; color: var(--muted); }
hr::after { content: "· · ·"; letter-spacing: 0.5em; }
