
:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --surface-2: #f1ece4;
  --text: #17202a;
  --muted: #5e6875;
  --line: rgba(23, 32, 42, 0.12);
  --accent: #143a66;
  --accent-soft: rgba(20, 58, 102, 0.08);
  --shadow: 0 20px 50px rgba(24, 35, 52, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1160px;
  --container-narrow: 840px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf8f5 0%, var(--bg) 100%);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), var(--container-narrow));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(250, 248, 245, 0.78);
  border-bottom: 1px solid rgba(23, 32, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-role {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.2rem 0;
  position: relative;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font: inherit;
}

.section {
  padding: 4.75rem 0;
}

.section-soft {
  background: var(--surface-2);
}

.page-hero {
  padding: 4rem 0 1rem;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.display-title,
.page-hero h1,
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.display-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.4rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

p {
  margin-top: 0;
  color: var(--text);
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-intro {
  max-width: 62ch;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.hero-card,
.card,
.stat-card {
  background: var(--surface);
  border: 1px solid rgba(23, 32, 42, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.card {
  padding: 1.5rem;
}

.project-card {
  min-height: 100%;
}

.project-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.icon-list,
.clean-list,
.link-list {
  margin: 0;
  padding-left: 1.15rem;
}

.clean-list li,
.link-list li,
.icon-list li {
  margin-bottom: 0.65rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(20, 58, 102, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-links a,
.footer-links a,
.text-link {
  font-weight: 600;
}

.section-heading {
  margin-bottom: 1.7rem;
}

.two-column-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.4rem;
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.4rem;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--accent);
  font-weight: 700;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pub-year {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

.pub-body p {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.link-list {
  list-style: none;
  padding-left: 0;
}

.link-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.link-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-year {
  min-width: 3.25rem;
  color: var(--accent);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(20, 58, 102, 0.03);
}

.site-footer {
  border-top: 1px solid rgba(23, 32, 42, 0.08);
  background: rgba(255, 255, 255, 0.42);
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 2rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 1040px) {
  .card-grid.three-up,
  .stats-grid,
  .footer-grid,
  .hero-grid,
  .two-column-text {
    grid-template-columns: 1fr;
  }

  .card-grid.two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(23, 32, 42, 0.08);
    box-shadow: var(--shadow);
    border-radius: 22px;
    padding: 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .timeline-item,
  .publication-item {
    grid-template-columns: 1fr;
  }
}

.research-card {
  padding: 0;
  overflow: hidden;
}

.research-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.research-card-content {
  padding: 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 380px);
  gap: 2rem;
  align-items: start;
}

.about-photo-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-top: 15%;
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo-card {
    max-width: 380px;
  }
  }

  .news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.news-card {
  padding: 0;
  overflow: hidden;
}

.news-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f6f3ee;
}

.news-card-content {
  padding: 1.4rem 1.5rem 1.5rem;
}

.news-date {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card h3 {
  margin-bottom: 0.65rem;
}

.news-card p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-logo {
  background: var(--surface);
  border: 1px solid rgba(23, 32, 42, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.hero-logo-image {
  display: block;
  width: 100%;
  height: auto;
  }