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

html {
  scroll-behavior: smooth;
}

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #4f5b6d;
  --accent: #2b59c3;
  --accent-dark: #1f3c88;
  --border: #e1e5ee;
  --shadow: 0 16px 30px rgba(20, 33, 61, 0.08);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.skip-link:focus-visible {
  top: 1rem;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-link {
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  background-image: url("brain-tumor-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  color: transparent;
  font-size: 0;
}

.home-page .brand-mark {
  width: 60px;
  height: 60px;
  background-size: 36px 36px;
}

.brand-title {
  font-weight: 700;
  margin: 0;
}

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

.brand-link:hover .brand-mark,
.brand-link:focus-visible .brand-mark {
  background: var(--accent-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(43, 89, 195, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 0.5rem;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(43, 89, 195, 0.1), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 3.3rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: white;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats > div {
  min-width: 170px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.stat-number {
  font-weight: 700;
  margin: 0;
  font-size: 1rem;
}

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

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.55rem;
}

.hero-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

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

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: white;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-top: 0;
  font-size: 2rem;
}

.section-header p {
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3,
.member-card h2,
.publication-list h2,
.contact-card h3 {
  margin-top: 0;
}

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

.card,
.member-card,
.publication-list article,
.contact-card,
.hero-card,
.timeline-item {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover,
.member-card:hover,
.publication-list article:hover,
.contact-card:hover,
.hero-card:hover,
.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(20, 33, 61, 0.12);
}

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

.timeline-item {
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.timeline-date {
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.note {
  color: var(--muted);
  margin-top: 1.5rem;
}

.note.strong {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(43, 89, 195, 0.06);
}

.member-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.member-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.member-role {
  margin: 0.35rem 0 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.member-card p:last-child {
  margin-bottom: 0;
}

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

.publication-list article {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.publication-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.publication-cta {
  margin-top: 2rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.contact-card.alt {
  background: linear-gradient(135deg, rgba(43, 89, 195, 0.08), white);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.65rem;
}

.contact-list a {
  color: var(--accent);
}

.site-footer {
  padding: 2rem 0 3rem;
  background: #0f172a;
  color: #e2e8f0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid rgba(43, 89, 195, 0.28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 5vw;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    min-width: min(280px, 90vw);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.5rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .hero-stats > div {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
