:root {
  --bg: #fcf8ea;
  --text: #2b281f;
  --muted: #8a826e;
  --link: #8a5a14;
  --rule: #e9e0c4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1d17;
    --text: #e9e3d2;
    --muted: #9b927d;
    --link: #e8c766;
    --rule: #3a3528;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font: 19px/1.6 Georgia, "Times New Roman", serif;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

a { color: var(--link); }

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 3rem;
}
header > a { color: var(--text); text-decoration: none; font-weight: bold; }
nav a { margin-left: 1rem; }
nav a:first-child { margin-left: 0; }

h1 { font-size: 1.6rem; font-weight: normal; margin: 0 0 1.5rem; }
h2 { font-size: 1.3rem; font-weight: bold; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; font-weight: bold; margin: 2rem 0 0.5rem; }

.date { color: var(--muted); }
h1 + .date, h1 + .subtitle { margin-top: -1rem; }
.subtitle { font-style: italic; color: var(--muted); }
.subtitle + .date { margin-top: -0.5rem; }

ul.posts { list-style: none; padding: 0; }
ul.posts li { margin-bottom: 0.4rem; }
ul.posts .date { font-variant-numeric: tabular-nums; margin-right: 0.75rem; }

li { margin-bottom: 0.4rem; }
img { max-width: 100%; height: auto; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--rule); color: var(--muted); }
pre { overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
