:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f1c;
  --muted: #5e635c;
  --line: #e4e2dc;
  --accent: #2f6f4f;
  --accent-soft: #e7f0ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141614;
    --surface: #1b1e1b;
    --text: #e8e9e4;
    --muted: #a0a69d;
    --line: #2c302b;
    --accent: #7cc49b;
    --accent-soft: #1f2d24;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

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

main, footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-top: 4.5rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.role {
  margin: 0.35rem 0 1.4rem;
  color: var(--muted);
}

.lede {
  margin: 0 0 1.6rem;
  font-size: 1.12rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.links a {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  text-decoration: none;
}
.links a:hover { background: var(--accent-soft); border-color: var(--accent); }

section { margin-top: 3.5rem; }

h2 {
  margin: 0 0 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.item:last-child { border-bottom: 1px solid var(--line); }

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

h3 {
  margin: 0;
  font-size: 1.08rem;
}
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }

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

.item p { margin: 0.4rem 0 0; }
.sub { color: var(--muted); font-size: 0.95rem; }
.stack { color: var(--muted); font-size: 0.88rem; }

footer {
  margin-top: 4rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  main { padding-top: 3rem; }
  h1 { font-size: 2rem; }
  body { font-size: 16px; }
}
