:root {
  --bg: #ffffff;
  --text: #151515;
  --muted: #5d646d;
  --soft: #eef1f4;
  --accent: #005ea8;
  --accent-soft: #eaf4ff;
  --brand-blue: #061d73;
  --max-width: 1040px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #003f70;
}

.site-header,
.page {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--soft);
}

.site-brand {
  display: grid;
  gap: 4px;
}

.site-name {
  color: var(--brand-blue);
  font-size: 3.25rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-size: 0.9rem;
  line-height: 1.2;
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.language-select {
  min-height: 2rem;
  padding: 0.28rem 2rem 0.28rem 0.75rem;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(0, 94, 168, 0.35);
  color: var(--text);
  outline: none;
}

.page {
  padding: 18px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 38px 40px;
  background: var(--brand-blue);
}

h2,
h3,
p {
  margin: 0;
}

.hero-statement {
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: 3.3rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-focus {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.28;
}

.hero-media {
  min-height: 560px;
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  border: 0;
}

.content-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  padding: 42px 0;
  border-top: 1px solid var(--soft);
}

.content-section:first-of-type {
  margin-top: 42px;
}

h2 {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-body {
  display: grid;
  gap: 16px;
}

.about-body {
  gap: 10px;
}

.section-body p {
  max-width: 680px;
}

.experience-list {
  gap: 24px;
}

.experience-list article {
  display: grid;
  gap: 2px;
}

h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.experience-list p,
.publication-venue,
.publication-authors,
.stack-list p,
.contact-section p {
  color: var(--muted);
}

.publication-list {
  gap: 0;
}

.publication-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--soft);
}

.publication-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.publication-year {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
}

.publication-detail {
  display: grid;
  gap: 8px;
}

.publication-detail h3 {
  max-width: 680px;
  font-size: 1.08rem;
}

.publication-detail a {
  color: var(--text);
  text-decoration-thickness: 0.08em;
}

.publication-detail a:hover,
.publication-detail a:focus-visible {
  color: var(--accent);
}

.publication-venue {
  font-size: 1rem;
}

.publication-authors {
  max-width: 680px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.publication-authors strong {
  color: var(--text);
  font-weight: 850;
}

.publication-profile {
  padding-top: 18px;
}

.stack-list {
  gap: 10px;
}

.stack-list strong {
  color: var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    display: grid;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero-media {
    min-height: auto;
  }

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

  .hero-copy {
    min-height: 390px;
    padding: 34px 28px 30px;
  }

  .site-name {
    font-size: 2.35rem;
  }

  .hero-statement {
    font-size: 2.65rem;
  }

  .hero-focus {
    font-size: 1.05rem;
  }

  .hero-media img {
    height: auto;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 34px 0;
  }

  .content-section:first-of-type {
    margin-top: 34px;
  }

  .publication-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

}

@media (max-width: 420px) {
  .site-header,
  .page {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-nav {
    gap: 8px 12px;
    font-size: 0.86rem;
  }

  .site-name {
    font-size: 2rem;
  }

  .hero-statement {
    font-size: 2.15rem;
  }

  .hero-copy {
    min-height: 330px;
    padding: 28px 24px 26px;
  }
}
