:root {
  color-scheme: light;
  --ink: #1b2635;
  --muted: #4c5c6e;
  --accent: #263b56;
  --accent-dark: #1c3049;
  --paper: #fbfaf6;
  --line: #dce1e7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 3px solid #d38b43;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 0.75rem;
  background: white;
}

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

.site-header,
main,
.site-footer {
  width: min(100% - 3rem, 980px);
  margin-inline: auto;
}

.navigation {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.hero {
  display: flex;
  min-height: 23rem;
  align-items: stretch;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 39rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: -0.04em;
}

.institution {
  margin: 0.65rem 0 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.intro {
  max-width: 36rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.3rem;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

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

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

.button-secondary {
  color: var(--accent-dark);
}

.profile-frame {
  position: relative;
  width: 15rem;
  aspect-ratio: 1;
  align-self: center;
  flex: 0 0 auto;
}

.profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.page-content {
  max-width: 720px;
  padding-block: 1rem 4rem;
}

.page-content h2 {
  margin: 2.8rem 0 0.8rem;
  font-size: 1.8rem;
  scroll-margin-top: 1.5rem;
}

.page-content p,
.page-content li {
  color: var(--muted);
}

.page-content ul {
  padding-left: 1.3rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 2rem, 980px);
  }

  .navigation {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding-block: 1rem;
  }

  .nav-links {
    gap: 0.5rem 1rem;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-block: 3rem;
  }

  .profile-frame {
    width: 11rem;
    height: 11rem;
    align-self: flex-start;
  }
}

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