:root {
  --bg: #E6E1DF;
  --ink: #2E3A44;
  --muted: #6B6461;
  --navy: #325D80;
  --rose: #B89A8F;
  --line: rgba(50, 93, 128, 0.25);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 1rem/1.75 Inter, system-ui, sans-serif;
}

a { color: var(--navy); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.75rem 2rem rgba(46, 58, 68, 0.18);
}

h1 {
  margin: 0 0 1rem;
  font: 500 clamp(1.9rem, 6vw, 2.5rem)/1.2 Fraunces, Georgia, serif;
  color: var(--ink);
}

h2 {
  margin: 2.5rem 0 1rem;
  font: 300 1.5rem/1.3 Fraunces, Georgia, serif;
  color: var(--muted);
}

.roles { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 2; }

hr {
  width: 2.5rem;
  margin: 2rem auto;
  border: 0;
  border-top: 1px solid var(--rose);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1.5rem;
  border-radius: 0.4rem;
  background: var(--navy);
  color: #fff;
  font: 400 1rem/1.2 Fraunces, Georgia, serif;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover { background: #274a67; }
.button svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.button-row .button { padding: 0.6rem 0.75rem; }

.icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.icons a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.icons a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.icons svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.feature {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 2.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 0.6rem;
  border-top: 4px solid #8F4469;
  box-shadow: 0 0.75rem 2rem rgba(46, 58, 68, 0.14);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 1rem 2.25rem rgba(46, 58, 68, 0.2); }
.feature-mark { width: 3rem; height: 3rem; margin-bottom: 0.5rem; }
.feature-eyebrow { color: #8F4469; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.feature-title { font: 500 1.75rem/1.2 Fraunces, Georgia, serif; }
.feature-text { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.feature-cta {
  margin-top: 0.75rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.4rem;
  background: #8F4469;
  color: #fff;
  font: 400 1rem/1.2 Fraunces, Georgia, serif;
}
.feature:hover .feature-cta { background: #763754; }

.about { margin: 0; color: var(--muted); font-size: 0.95rem; }

.motto {
  margin: 1.75rem 0 0;
  font: 400 1.2rem/1.6 "Crimson Text", Georgia, serif;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logos {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logos li {
  display: grid;
  place-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 0.5rem 1.25rem rgba(46, 58, 68, 0.1);
}
.logos img { display: block; width: 100%; max-width: 20rem; height: auto; max-height: 6rem; object-fit: contain; }

.badge { margin-top: 2.5rem; }
.badge iframe { display: block; width: 100%; max-width: 20rem; aspect-ratio: 20 / 21; height: auto; margin: 0 auto; border: 0; overflow: hidden; }

footer { margin-top: 2rem; color: var(--muted); font-size: 0.8rem; }
footer p { margin: 0; }

/* CV page */
.cv { max-width: 46rem; text-align: left; }
.cv .back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; }
.cv h1 { text-align: center; }
.cv .roles { text-align: center; }
.cv h2 {
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rose);
  color: var(--navy);
  font-weight: 500;
  font-size: 1.35rem;
}
.cv h3 { margin: 1.5rem 0 0.5rem; font: 500 1.05rem/1.4 Fraunces, Georgia, serif; color: var(--ink); }
.cv ul, .cv ol { margin: 0; padding-left: 1.25rem; }
.cv li { margin-bottom: 0.6rem; }
.cv dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.35rem 1.25rem; margin: 0; }
.cv dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv dd { margin: 0 0 0.6rem; }
.cv .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.cv .actions .button { min-height: 2.5rem; font-size: 0.95rem; }

.cv .former { font-size: 0.85rem; font-style: italic; }
.cv .toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.6rem; margin: 2rem 0 0; font-size: 0.85rem; }
.cv .toc a { padding: 0.2rem 0.65rem; border: 1px solid var(--rose); border-radius: 999px; text-decoration: none; }
.cv .toc a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.cv section { scroll-margin-top: 1rem; }
.cv strong { font-weight: 400; color: var(--ink); }
.cv .pubs li { margin-bottom: 0.85rem; }
.cv .where { margin: 1rem 0 0.4rem; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cv details { margin-top: 1.25rem; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.45); border-radius: 0.4rem; }
.cv details[open] { padding-bottom: 1rem; }
.cv summary { cursor: pointer; font: 500 1rem/1.4 Fraunces, Georgia, serif; color: var(--navy); }
.cv summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.cv details > :nth-child(2) { margin-top: 1rem; }
.cv footer p + p { margin-top: 0.25rem; }

@media (max-width: 34rem) {
  .cv dl { grid-template-columns: 1fr; }
  .cv dd { margin-bottom: 1rem; }
}

@media print {
  body { background: #fff; }
  .cv .back, .cv .actions, .cv .toc, footer { display: none; }
  .cv details { padding: 0; background: none; }
  .cv summary { list-style: none; }
  .cv h2 { break-after: avoid; }
  .cv li, .cv dd { break-inside: avoid; }
}
