:root {
  --bg: #fcfcfa;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --rule: #e4e4e0;
  --link: #1c1c1c;
  --link-line: #b5b5b0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #e6e6e3;
    --muted: #9a9a96;
    --rule: #2c2c2a;
    --link: #e6e6e3;
    --link-line: #5c5c58;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -0.01em; }
h2 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
h3 { font-size: 1rem; }

p { margin: 0 0 0.75rem; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }

header { margin-bottom: 2.5rem; }
.lede { margin: 0.35rem 0 0.75rem; }

.links a { margin-right: 1rem; white-space: nowrap; }
.links a:last-child { margin-right: 0; }

section {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

article { margin-bottom: 1.75rem; }
article:last-child { margin-bottom: 0; }

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.when {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.1rem 0 0.5rem;
}

.note { color: var(--muted); font-size: 0.9rem; margin-right: 1rem; }

ul.plain { margin: 0; padding-left: 1.1rem; }
ul.plain li { margin-bottom: 0.35rem; }

footer {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  main { padding-top: 2.5rem; }
  .head { flex-direction: column; gap: 0; }
}
