:root {
  color-scheme: light dark;
  --fg: #2a2723;
  --bg: #fbf9f4;
  --muted: #8a8378;
  --rule: #e6e1d6;
  --tint: #f2eee4;
  --accent: #9b2c2c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e3ded3;
    --bg: #161412;
    --muted: #8f887c;
    --rule: #2b2824;
    --tint: #1f1c19;
    --accent: #e0867a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  padding: 4rem 1.5rem 7rem;
  max-width: 36rem;
  background: var(--bg);
  color: var(--fg);
  font: 19px/1.7 ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  hyphens: auto;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

h1, h2 { text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 2.3rem; line-height: 1.15; font-weight: 600; margin: 0 0 0.6rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 3rem 0 0.6rem; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.25rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }

header { margin-bottom: 4rem; padding-bottom: 1.5rem; position: relative; }
header::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 2rem;
  border-bottom: 1px solid var(--accent);
}
header h1 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
header h1 a { text-decoration: none; }
header .meta { margin: 0; font-style: italic; }

.meta { color: var(--muted); font-size: 0.9rem; }
time {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
article > .meta { margin: 0 0 3rem; }

.posts { list-style: none; padding: 0; margin: 0; }
.posts li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  margin: 0;
  padding: 0.7rem 0;
}
.posts .date { order: -1; }
.posts a { font-size: 1.15rem; text-decoration: none; }
@media (max-width: 30rem) {
  .posts li { grid-template-columns: 1fr; }
  .posts .date { order: 0; }
}

hr { border: 0; margin: 3rem 0; text-align: center; }
hr::after { content: "\2042"; color: var(--muted); font-size: 1.2rem; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
code { background: var(--tint); padding: 0.1em 0.35em; border-radius: 3px; }
pre {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border-radius: 4px;
  line-height: 1.55;
}
pre code { background: none; padding: 0; font-size: 0.82em; }

blockquote {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}
blockquote p:last-child { margin-bottom: 0; }

footer { margin-top: 5rem; text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.03em; }
footer::before { content: "\2042"; display: block; margin-bottom: 1rem; font-size: 1.2rem; }
footer a { text-decoration: none; }

@media (max-width: 30rem) {
  body { font-size: 17px; padding: 2.5rem 1.25rem 5rem; }
  h1 { font-size: 1.9rem; }
}

@media print {
  body { background: none; color: #000; padding: 0; font-size: 12pt; }
  header::after, footer { display: none; }
}
