:root {
  --ink: #2f1846;
  --paper: #fcfaf3;
  --gold: #fdd023;
  --lightgold: #ffe88b;
  --clay: #d6ac11;
  --teal: #461d7c;
  --soft: #fffdf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.2;
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--teal);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(70, 29, 124, 0.16);
  z-index: 20;
  color: var(--lightgold);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  height: 2.3rem;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid rgba(70, 29, 124, 0.2);
  background: rgba(70, 29, 124, 0.06);
}

.brand small {
  display: block;
  opacity: 0.75;
}

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

.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
}

.site-nav a:hover {
  background: rgba(70, 29, 124, 0.12);
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal);
}

.tagline {
  margin: 0.25rem 0 0.5rem;
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  max-width: 56ch;
}

.hero-panel {
  background: var(--soft);
  border: 1px solid rgba(70, 29, 124, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 30px rgba(70, 29, 124, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(70, 29, 124, 0.35);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}

.btn.primary {
  background: linear-gradient(140deg, var(--gold), var(--clay));
  border-color: transparent;
  font-weight: 700;
}

.page-header {
  padding: 2.5rem 0 1rem;
}

.page-content {
  padding-bottom: 2.8rem;
}

.prose {
  max-width: 75ch;
}

.cards-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--soft);
  border: 1px solid rgba(70, 29, 124, 0.15);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.meta {
  font-size: 0.92rem;
  opacity: 0.75;
  margin: 0.25rem 0;
}

.pub-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.pub-row {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.95rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(70, 29, 124, 0.2);
}

.pub-year {
  font-weight: 700;
  color: var(--teal);
}

.pub-main {
  display: grid;
  gap: 0.2rem;
}

.pub-authors,
.pub-title,
.pub-venue,
.pub-summary {
  display: block;
}

.pub-title {
  font-weight: 700;
}

.pub-venue {
  font-style: italic;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.15rem;
}

.pub-links a {
  text-decoration: none;
}

.pub-doi a {
  text-decoration: none;
}

.people-grid {
  align-items: start;
}

.person-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.person-headshot-link {
  display: block;
  width: 100%;
}

.person-headshot {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(70, 29, 124, 0.2);
  background: rgba(70, 29, 124, 0.06);
}

.person-single-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.person-headshot-large {
  width: 190px;
}

.site-footer {
  border-top: 1px solid rgba(70, 29, 124, 0.18);
  padding: 1.1rem 0 1.6rem;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .person-single-header {
    grid-template-columns: 1fr;
  }

  .pub-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
