:root {
  --bg: #f7f4ee;
  --ink: #1a1916;
  --muted: #6f6b64;
  --rule: #d8d2c6;
  --chip: #ece7dc;
  --ok: #3a9a5a;
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --measure: 38rem;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.page { max-width: var(--measure); margin: 0 auto; padding: 5.5rem 1.5rem 4rem; }
@media (min-width: 640px) { .page { padding: 7rem 1.75rem 5rem; } }

.name {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 450;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .name { font-size: 2.45rem; } }

.bio { display: flex; flex-direction: column; gap: 1.15em; }
.bio p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.68; }
.bio a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.lead { font-size: 1.2rem; }
.vita { color: var(--muted); font-size: 1.05rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 999px;
  font-size: .95rem; font-weight: 500; line-height: 1.4;
  background: transparent;
}
.btn:hover { text-decoration: none; border-color: var(--ink); }

.section { margin-top: 3.1rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.label {
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.15rem;
}

.work { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.work li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; align-items: baseline; }
.work li > span:last-child { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; }
.work a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.year { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.role { color: var(--muted); }
.role::before { content: "·"; margin: 0 .5rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li, .chips a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .75rem .3rem .6rem; border-radius: 8px;
  background: var(--chip); font-size: .9rem; line-height: 1.4;
}
.chips li:has(a) { padding: 0; background: none; }
.chips a:hover { text-decoration: none; background: var(--rule); }
.chips img { width: 1rem; height: 1rem; }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: .85rem; color: var(--muted);
}

@media (max-width: 420px) {
  .page { padding: 3.5rem 1.25rem 3rem; }
  .name { font-size: 1.95rem; }
  .work li { grid-template-columns: 3.8rem 1fr; gap: .7rem; }
}

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
header, main > *, .foot { animation: fade .5s ease-out both; }
main > :nth-child(1) { animation-delay: .08s; }
main > :nth-child(2) { animation-delay: .16s; }
main > :nth-child(3) { animation-delay: .24s; }
main > :nth-child(4) { animation-delay: .32s; }
main > :nth-child(5) { animation-delay: .40s; }
.foot { animation-delay: .48s; }
