:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #101820;
  --muted: #5d6875;
  --line: #d8dee8;
  --accent: #1f5f99;
  --accent-strong: #123f67;
  --gold: #b98528;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(247, 248, 251, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 64px;
}

.hero-content {
  max-width: 760px;
}

.fact-label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.title-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  padding-top: 24px;
}

.title-line {
  margin: 0;
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.18;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lede {
  max-width: 720px;
  color: #253446;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.42;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.contact-links a,
.news-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  background: var(--paper);
  color: var(--accent-strong);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.profile-panel {
  align-self: start;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.profile-panel img {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.photo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: var(--paper);
  color: var(--accent-strong);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin: -10px 0 18px;
}

.photo-toggle:hover {
  border-color: var(--accent-strong);
}

.profile-panel p {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-panel .profile-name {
  color: var(--ink);
  font-weight: 700;
}

.profile-emails {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-emails p {
  color: var(--accent-strong);
  font-weight: 700;
}

.band {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-facts article {
  min-height: 136px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.quick-facts article:last-child {
  border-right: 1px solid var(--line);
}

.quick-facts strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.38;
}

.support-fact-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.support-fact-heading img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.support-fact-heading .fact-label {
  margin: 0;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 64px;
}

.prose {
  color: #253446;
  font-size: 1.08rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.topic-grid span,
.group-list li {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}

.group-list a {
  color: var(--accent-strong);
  text-decoration: none;
}

.group-list a:hover {
  text-decoration: underline;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.with-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 32px;
}

.research-section {
  display: grid;
  gap: 34px;
}

.research-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.research-subsection {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.research-subsection h3 {
  margin-bottom: 16px;
  font-size: 1.32rem;
}

.appearances-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.appearances-list p {
  margin: 0;
  padding: 10px 12px;
  background: var(--paper);
  color: #253446;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-grid article,
.contact-card,
.empty-state {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.news-grid p {
  color: var(--muted);
}

.grant-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.grant-heading img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.grant-heading h3 {
  margin: 0;
}

.news-grid a {
  margin: 8px 8px 0 0;
}

.search {
  display: grid;
  min-width: min(360px, 100%);
  gap: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.publication-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 16px;
}

.publication-title {
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
}

.publication-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.publication-venue {
  color: #b0171f;
  font-weight: 800;
}

.publication-link {
  display: inline;
  margin-left: 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.more-link {
  margin-top: 22px;
  color: var(--muted);
}

.group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .research-overview,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-top: 54px;
  }

  .quick-facts,
  .news-grid,
  .group-list {
    grid-template-columns: 1fr;
  }

  .quick-facts article,
  .quick-facts article:last-child {
    border-right: 1px solid var(--line);
  }

  .section-heading.with-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }
}
