:root {
  --purple-900: #341C67;
  --purple-800: #472F5B;
  --lavender: #C4AEF4;
  --rose: #CCA4B4;
  --gold: #DCCE40;

  --bg: #ffffff;
  --bg-tint: #F6F2FD;
  --fg: #201336;
  --muted: #5B4E70;
  --border: #E4DAF7;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: var(--purple-900);
}

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--purple-900);
  color: #fff;
}

.site-nav .brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav nav a {
  color: var(--lavender);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* Hero */

.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: #fff;
}

.hero .eyebrow {
  margin: 0 0 0.75rem;
  color: var(--lavender);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero .tagline {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: #EFE9FB;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.headshot {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 1.5rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* Icon buttons */

.icon-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--gold);
  color: var(--purple-900);
  transform: translateY(-2px);
}

.icon {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
}

.icon-inline {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: -0.15em;
  margin-right: 0.4rem;
  color: var(--purple-800);
}

/* Sections */

.section {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.band-tint {
  background: var(--bg-tint);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  color: var(--purple-900);
}

.section p {
  margin: 0 0 1rem;
  color: var(--fg);
}

.section h3 {
  margin: 2rem 0 1rem;
  font-size: 1.1rem;
  color: var(--purple-800);
}

.section h3:first-of-type {
  margin-top: 0;
}

/* Skills */

.skill-tags {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tags li {
  background: #fff;
  border: 1px solid var(--lavender);
  color: var(--purple-900);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* Publications */

.pub-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pub:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--fg);
}

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

.pub-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  background: var(--rose);
  color: var(--purple-900);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.cite {
  color: var(--muted);
  font-size: 0.85rem;
}

.text-link {
  color: var(--purple-900);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--purple-800);
}

.text-link.small {
  font-size: 0.9rem;
  font-weight: 500;
}

.quote {
  margin: 0.75rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--rose);
  color: var(--muted);
  font-style: italic;
}

.press-links {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.press-links a {
  color: var(--purple-800);
}

/* Talks */

.talk-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.talk-abstract {
  color: var(--muted);
}

.talk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.talk-row {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.talk-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tr-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.tr-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.talk-collapse {
  margin-top: 2rem;
}

.talk-collapse summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-800);
  list-style: none;
}

.talk-collapse summary::-webkit-details-marker {
  display: none;
}

.talk-collapse summary::marker {
  content: "";
}

.talk-collapse summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--gold);
  transition: transform 0.15s ease;
}

.talk-collapse[open] summary::before {
  transform: rotate(90deg);
}

.talk-collapse .talk-list {
  margin-top: 1.25rem;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--lavender);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.3rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--bg);
}

.band-tint .timeline li::before {
  box-shadow: 0 0 0 3px var(--bg-tint);
}

.tl-role {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.tl-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact */

.contact {
  text-align: center;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.contact .icon-links {
  margin-top: 1.5rem;
}

.contact .icon-btn {
  background: var(--bg-tint);
  color: var(--purple-900);
}

.contact .icon-btn:hover,
.contact .icon-btn:focus-visible {
  background: var(--gold);
  color: var(--purple-900);
}

/* Footer */

footer {
  background: var(--purple-900);
  color: var(--lavender);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

@media (max-width: 32rem) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
