:root {
  --bg: #ffffff;
  --text: #1c1c1a;
  --muted: #74746f;
  --rule: #e6e6e2;
  --link: #1c1c1a;
  --accent: #b5361d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --text: #e9e9e4;
    --muted: #8f8f88;
    --rule: #2a2a28;
    --link: #e9e9e4;
    --accent: #e8714f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 600px; margin: 0 auto; padding: 72px 20px 96px; }

header.site { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
header.site a.name { font-weight: 600; text-decoration: none; color: var(--text); }
header.site nav { display: flex; align-items: center; gap: 18px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
header.site nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
header.site nav a:hover { color: var(--text); }

h1 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 56px 0 16px; }
article h2 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 600; margin: 40px 0 12px; }
article h3 { font-size: 14px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--link); text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
ul { padding-left: 18px; margin: 0 0 16px; }
li { margin: 4px 0; }
li::marker { color: var(--muted); }
blockquote { margin: 24px 0; padding-left: 16px; border-left: 2px solid var(--rule); color: var(--muted); }
img { max-width: 100%; height: auto; border-radius: 4px; }
figure { margin: 24px 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }

.intro { margin: 0 0 40px; font-size: 14px; }
.intro p:last-child { margin-bottom: 0; }
nav.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 32px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 14px; }
nav.tabs a { color: var(--muted); text-decoration: none; }
nav.tabs a:hover { color: var(--text); }
nav.tabs a[aria-current="page"] { color: var(--text); font-weight: 600; }
nav.tabs + .year { margin-top: 0; }
header.site nav img { display: block; opacity: .42; }
header.site nav a:hover img { opacity: .75; }
@media (prefers-color-scheme: dark) { header.site nav img { filter: invert(1); } }
.year { font-size: 14px; color: var(--muted); margin: 28px 0 6px; font-variant-numeric: tabular-nums; }
ol.posts { list-style: none; padding: 0; margin: 0; }
ol.posts li { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 6px 0; }
ol.posts a { text-decoration: none; }
ol.posts a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
ol.posts time { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.subtitle { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
article h1 + .meta, article .subtitle + .meta { margin-top: 0; }
article h1:has(+ :not(.subtitle):not(.meta)) { margin-bottom: 32px; }
article li > p { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
footer.site { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  main { padding: 40px 16px 64px; }
  ol.posts li { flex-direction: column; gap: 0; }
}
