:root {
  --bg: #ffffff;
  --ink: #12161c;
  --muted: #5d6978;
  --line: rgba(18, 22, 28, 0.14);
  --accent: #1b4e91;
  --container: 1120px;
  --narrow: 820px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", sans-serif;
}

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

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

p,
li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

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

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

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-brand {
  font-size: 1.08rem;
  font-weight: 700;
}

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

.site-nav a {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 0.96rem;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

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

.nav-toggle {
  display: none;
  padding: 0.6rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.profile-figure {
  margin: 0;
}

.home-hero {
  position: relative;
  min-height: clamp(28rem, 60vh, 40rem);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(9, 17, 31, 0.12) 0%, rgba(9, 17, 31, 0.3) 42%, rgba(9, 17, 31, 0.76) 100%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.56) 0%, rgba(7, 17, 31, 0.18) 46%, rgba(7, 17, 31, 0.22) 100%),
    url("/assets/cover_pic.jpeg");
  background-position: center center, center center, center 62%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.hero-cover {
  margin: 0;
  min-height: inherit;
}

.hero-cover img,
.profile-image {
  width: 100%;
}

.profile-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-overlay-inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
}

.home-hero h1,
.hero-kicker {
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.home-hero h1 {
  max-width: 10ch;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.hero-kicker {
  margin: 0 0 0.7rem;
  max-width: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.intro-section,
.content-section,
.page-header {
  padding: 3rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.eyebrow,
.entry-meta {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-copy p + p,
.page-intro,
.entry p,
.text-block p + p,
.cv-row p + p {
  margin-top: 1rem;
}

.page-header h1,
.entry h2 {
  margin-top: 0.55rem;
}

.page-header h1 {
  max-width: 12ch;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
}

.inline-links a {
  color: var(--accent);
  font-weight: 600;
}

.research-group + .research-group {
  margin-top: 3rem;
}

.research-group-plain {
  margin-top: 0;
}

.research-section-title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.research-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.research-item h3 {
  font-size: 1.4rem;
}

.research-item p {
  margin-top: 0.55rem;
}

.entry,
.cv-row,
.text-block {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.entry:last-child,
.cv-row:last-child {
  border-bottom: 1px solid var(--line);
}

.empty-block {
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}

.cv-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
}

.pdf-link-row {
  margin-bottom: 1rem;
}

.pdf-link-row a,
.cv-row a {
  color: var(--accent);
  font-weight: 600;
}

.pdf-frame {
  width: 100%;
  height: 1200px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.site-footer {
  padding: 2.4rem 0;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-shell p {
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .intro-grid,
  .cv-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .profile-figure {
    max-width: 320px;
  }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #ffffff;
  }

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

  .hero-cover,
  .home-hero {
    min-height: 24rem;
  }

  h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.8rem);
  }

  .home-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .hero-overlay-inner {
    padding-bottom: 2rem;
  }

  .intro-section,
  .content-section,
  .page-header {
    padding: 2.2rem 0;
  }
}
