:root {
  --bg: #fbfaf8; --fg: #2a2a2e; --fg-strong: #16161a; --fg-muted: #6f6c66; --fg-faint: #8f8b84;
  --rule: #e6e3dd; --card: #f3f1ec; --dot: #2f9e6a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214; --fg: #cfccc6; --fg-strong: #f4f2ee; --fg-muted: #8f8b84; --fg-faint: #6f6c66;
    --rule: #26262a; --card: #1a1a1d; --dot: #3fb87d;
  }
  ::selection { background: #f4f2ee; color: #121214; }
}

html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; transition: background .2s, color .2s;
}
::selection { background: #1c1c1f; color: #fff; }
a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .15s, color .15s;
}
a:hover { text-decoration-color: var(--fg-strong); color: var(--fg-strong); }
p { margin: 0; text-wrap: pretty; }
.mono, .header-meta, .section-title, .role-when, .footer { font-family: 'Geist Mono', ui-monospace, monospace; }

main { max-width: 680px; margin: 0 auto; padding: 96px 24px 64px; display: flex; flex-direction: column; gap: 64px; }

.header { display: flex; flex-direction: column; gap: 16px; }
.header-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--fg-faint); }
h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; color: var(--fg-strong); text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; color: var(--fg-muted); max-width: 36ch; }
.header-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: 14px; font-weight: 500; }

.section { display: grid; grid-template-columns: 104px 1fr; gap: 16px 24px; }
.section-title { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-faint); padding-top: 4px; }
.section-title--card { padding-top: 14px; }
.em { font-weight: 500; color: var(--fg-strong); }
strong { font-weight: 600; color: var(--fg-strong); }

.card { background: var(--card); border-radius: 10px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.dot { flex: none; margin-top: 9px; display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.prose { display: flex; flex-direction: column; gap: 16px; }

.roles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.role { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.role:last-child { border-bottom: 1px solid var(--rule); }
.role-when { font-size: 13px; color: var(--fg-faint); padding-top: 3px; white-space: nowrap; }
.role-body { display: flex; flex-direction: column; gap: 4px; }
.role-title { font-weight: 600; color: var(--fg-strong); line-height: 1.4; }
.role-org { font-weight: 400; color: var(--fg-muted); }
.role-summary, .role-detail { color: var(--fg-muted); font-size: 15px; }
.role-detail { margin-top: 2px; }
.role-more { margin-top: 2px; font-size: 14px; }

.stack { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; font-size: 15px; }
.stack div { display: flex; flex-direction: column; gap: 4px; }
.stack dt { font-weight: 500; color: var(--fg-strong); }
.stack dd { margin: 0; color: var(--fg-muted); }

.footer { padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--fg-faint); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }

@media (max-width: 560px) {
  main { padding-top: 64px; gap: 48px; }
  h1 { font-size: 36px; }
  .section { grid-template-columns: 1fr; gap: 8px; }
  .section-title, .section-title--card { padding-top: 0; }
  .role { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
