:root {
  color-scheme: light;
  --background: #fbfbfa;
  --surface: #ffffff;
  --text: #20242a;
  --muted: #69717c;
  --accent: #245b78;
  --accent-soft: #eaf1f5;
  --line: #dfe3e6;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 17px;
  line-height: 1.75;
}

.page {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 48px;
}

.intro {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
}

h2 {
  margin: 0 0 9px;
  width: fit-content;
  font-size: 1.45rem;
  font-weight: 600;
}

h2::after {
  content: "";
  display: block;
  width: calc(100% + 0.5em);
  height: 1px;
  margin-top: 5px;
  background: var(--line);
}

p {
  margin: 0;
}

.position {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

section {
  margin-top: 44px;
}

section a {
  text-decoration: none;
}

section a:hover,
section a:focus-visible {
  text-decoration: underline;
}

.research-description {
  margin-top: 0.5rem;
}

.research-fields {
  color: var(--text);
  font-weight: 600;
}

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

a:hover,
a:focus-visible {
  color: #163f56;
}

a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.position,
.university {
  color: var(--muted);
  font-size: 1.08rem;
}

.university a,
.university a:visited {
  color: inherit;
  text-decoration: none;
}

.university a:hover,
.university a:focus-visible {
  text-decoration: underline;
}

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

.interests li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.text-link {
  font-weight: 600;
}

footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

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

  .page {
    width: min(100% - 32px, 720px);
    padding-top: 52px;
  }

  .intro {
    margin-bottom: 48px;
  }

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

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

.profile-links {
  display: flex;
  gap: 1rem;
}

.profile-links a {
  color: var(--accent);
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  color: #163f56;
  text-decoration: underline;
}
