:root {
  --bg: #fbfaf7;
  --fg: #191817;
  --muted: #6d6862;
  --rule: #e2ded6;
  --accent: #2f5d50;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #ece9e4;
    --muted: #9a948c;
    --rule: #2a2a28;
    --accent: #8fbfae;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: var(--max);
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 ui-serif, Georgia, "Times New Roman", serif;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.mark {
  font: 600 0.8125rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

nav { display: flex; gap: 1.1rem; }

nav a {
  font: 400 0.875rem/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
}

h2 {
  font: 600 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

p { margin: 0 0 1rem; }

.lead { font-size: 1.1875rem; max-width: 34rem; }

a { color: var(--accent); text-underline-offset: 0.18em; }

ul { list-style: none; margin: 0; padding: 0; }

.items li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.items li:last-child { border-bottom: 0; }

.items time {
  font: 400 0.8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.links a { text-decoration-thickness: 1px; }

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font: 400 0.8125rem/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
}

@media (max-width: 32rem) {
  .items li { grid-template-columns: 1fr; gap: 0.15rem; }
}
