:root {
  --page-max-width: 1160px;
  --accent: #5d75e8;
  --accent-dark: #435ed8;
  --accent-light: #eef1ff;
  --text: #222;
  --muted: #4b4b4b;
  --soft-muted: #6b6b6b;
  --line: rgba(34, 34, 34, 0.1);
  --soft-border: rgba(93, 117, 232, 0.18);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 94, 216, 0.35);
}

a:hover,
a:focus {
  border-bottom-color: var(--accent-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 1000;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  white-space: nowrap;
  border-bottom: none;
}

.site-brand:hover,
.site-brand:focus {
  border-bottom: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  color: var(--soft-muted);
  border-bottom: none;
  font-weight: 650;
  padding: 7px 9px;
  border-radius: 999px;
  line-height: 1.2;
}

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

.site-shell,
.home-page,
.research-page,
.project-page,
.teaching-page,
.cv-page,
.contact-page {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 46px 28px 72px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 54px;
}

.profile-photo-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #f4f5ff, #ffffff);
}

.profile-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #eef1ff, #ffffff);
  border: 1px solid var(--soft-border);
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 800;
  text-align: center;
  padding: 28px;
}

.home-copy {
  min-width: 0;
}

.kicker,
.project-kicker,
.teaching-kicker {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-title,
.project-title,
.teaching-title,
.home-title {
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 820;
  margin: 0 0 20px;
  color: #111;
  letter-spacing: -0.03em;
}

.home-description,
.intro,
.project-intro,
.teaching-intro {
  max-width: 910px;
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0;
}

.home-description p {
  margin: 0 0 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  border: 1px solid var(--accent-dark);
  font-weight: 800;
}

.button:hover,
.button:focus {
  color: #fff;
  border-color: var(--accent-dark);
}

.button.secondary {
  background: #fff;
  color: var(--accent-dark);
  border-color: rgba(67, 94, 216, 0.28);
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.home-section,
.research-section,
.teaching-section,
.cv-section,
.contact-section {
  margin-bottom: 44px;
}

.hero,
.project-hero,
.teaching-hero {
  margin-bottom: 42px;
}

.section-heading,
.research-heading,
.teaching-heading {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
}

.home-grid,
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.card,
.project-card,
.teaching-card,
.method-card,
.cv-card,
.contact-card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.card,
.project-card,
.teaching-card,
.cv-card,
.contact-card {
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
}

.card h2,
.card h3,
.project-card h2,
.teaching-card h3,
.cv-card h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--text);
  font-weight: 820;
}

.card p,
.project-summary,
.teaching-card p,
.method-card p,
.cv-card p,
.contact-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
}

.paper-list {
  list-style-type: square;
  margin: 0;
  padding-left: 26px;
}

.paper-item {
  margin-bottom: 26px;
  padding-left: 4px;
}

.paper-title {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 820;
  color: var(--text);
  margin: 0 0 4px;
}

.paper-meta {
  font-size: 1.02rem;
  color: #333;
  margin: 0;
}

.paper-meta em {
  font-style: italic;
}

.single-paper {
  margin-left: 26px;
  margin-bottom: 28px;
}

.project-label {
  color: var(--accent);
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 18px 0 8px;
}

.project-list,
.course-list,
.clean-list {
  margin: 0;
  padding-left: 20px;
}

.project-list li,
.clean-list li {
  margin: 6px 0;
}

.project-list strong,
.clean-list strong {
  font-weight: 820;
}

.tag-row,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag,
.project-tag,
.teaching-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.links,
.project-links,
.teaching-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.course-list {
  list-style-type: square;
  padding-left: 24px;
}

.course-list li {
  margin-bottom: 18px;
}

.course-title {
  display: block;
  font-weight: 820;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.course-meta {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 2px;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.method-card {
  padding: 22px 24px;
  border-top: 4px solid var(--accent);
}

.method-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 820;
  color: var(--text);
}

.embed-note {
  padding: 14px 16px;
  background: var(--accent-light);
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  color: #303b78;
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.featured {
    grid-column: 1 / -1;
  }

  .method-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-photo-wrap {
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    white-space: nowrap;
    padding: 8px 10px;
  }

  .site-shell,
  .home-page,
  .research-page,
  .project-page,
  .teaching-page,
  .cv-page,
  .contact-page {
    padding: 32px 20px 56px;
  }

  .home-title,
  .page-title,
  .project-title,
  .teaching-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .home-description,
  .intro,
  .project-intro,
  .teaching-intro {
    font-size: 1rem;
  }

  .section-heading,
  .research-heading,
  .teaching-heading {
    font-size: 1.08rem;
  }

  .paper-title {
    font-size: 1.05rem;
  }

  .paper-meta {
    font-size: 0.98rem;
  }

  .card,
  .project-card,
  .teaching-card,
  .method-card,
  .cv-card,
  .contact-card {
    padding: 22px 22px;
  }

  .button-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-brand {
    font-size: 0.94rem;
    letter-spacing: 0.04em;
  }

  .site-shell,
  .home-page,
  .research-page,
  .project-page,
  .teaching-page,
  .cv-page,
  .contact-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-photo-wrap {
    max-width: 100%;
  }
}
.eyebrow {
  margin: 0 0 22px;
  color: #5d75e8;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: #222;
  font-weight: 500;
}

/* Research / publications page */

.publication-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px 76px;
}

.publication-hero {
  max-width: 900px;
  margin-bottom: 40px;
}

.publication-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #202020;
}

.publication-hero p {
  max-width: 820px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.publication-section {
  max-width: 940px;
  margin-bottom: 36px;
}

.publication-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #2a2a2a;
}

.publication-list {
  margin: 0;
  padding-left: 34px;
  list-style-type: disc;
}

.publication-list li {
  margin-bottom: 12px;
  padding-left: 6px;
  font-size: 1.02rem;
  line-height: 1.58;
  color: #2d2d2d;
}

.pub-title {
  color: #5d75e8;
  font-weight: 800;
}

.publication-list em {
  font-style: italic;
}

@media (max-width: 760px) {
  .publication-page {
    padding: 40px 22px 60px;
  }

  .publication-hero {
    margin-bottom: 34px;
  }

  .publication-hero h1 {
    font-size: 2.25rem;
  }

  .publication-section {
    margin-bottom: 32px;
  }

  .publication-section h2 {
    font-size: 1.55rem;
  }

  .publication-list {
    padding-left: 24px;
  }

  .publication-list li {
    font-size: 0.98rem;
    padding-left: 4px;
  }
}

.pub-title {
  color: #5d75e8;
  font-weight: 800;
  text-decoration: none;
}

.pub-title:hover {
  color: #435ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
