:root {
  --bg: #fdfcf7;
  --text: #1a1a1a;
  --dim: #6b6b6b;
  --accent: #2f5033;
  --serif: Calibri, "Segoe UI", "Helvetica Neue", -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.site-header {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.portrait {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

.header-text h1 {
  margin: 0 0 0.6rem;
}

.header-text .info {
  margin: 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--dim);
  margin: 2.5rem 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

p {
  margin: 0 0 1rem;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover, a:focus { border-bottom-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.info a { margin-right: 0.4rem; }

.dim {
  color: var(--dim);
  font-size: 0.94rem;
}

.year {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.authors {
  color: var(--text);
  font-size: 0.96rem;
}

.edu p, .pubs p {
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

@media (max-width: 480px) {
  main { padding: 2.5rem 1.2rem 3.5rem; }
  h1 { font-size: 1.5rem; }
  .site-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }
  .portrait { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
