:root {
  color-scheme: light;
  --black: #000000;
  --white: #ffffff;
  --blue: #073a86;
  --blue-soft: #eef6ff;
  --blue-line: rgba(7, 58, 134, 0.18);
  --black-soft: rgba(0, 0, 0, 0.68);
  --measure: 1100px;
  --serif: "Lora", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Lora", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--black);
  color: var(--white);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--blue-line);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a,
.profile-links a,
.contact-channels a,
.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.profile-links a:hover,
.profile-links a:focus-visible,
.contact-channels a:hover,
.contact-channels a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 0.25rem auto;
  background: currentColor;
}

.profile {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 56% 50%;
  border: 1px solid var(--blue-line);
}

.kicker,
.section-label {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--black);
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  line-height: 1.45;
}

.bio {
  max-width: 43rem;
  color: var(--black-soft);
}

.bio p {
  margin-bottom: 1.05rem;
}

.profile-links,
.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.profile-links a:not(:last-child)::after,
.contact-channels span:not(:last-child)::after,
.contact-channels a:not(:last-child)::after {
  content: "/";
  margin-left: 0.9rem;
  color: var(--black);
  font-weight: 400;
}

.section {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.7rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--blue-line);
}

.section-body {
  max-width: 47rem;
}

.section h2 {
  margin-bottom: 1.7rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.rows {
  border-top: 1px solid var(--blue-line);
}

.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--blue-line);
}

.row > span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.row h3 {
  margin-bottom: 0.25rem;
  color: var(--black);
  font-size: 1.03rem;
  line-height: 1.35;
}

.row h3 a {
  color: var(--black);
  text-decoration-color: var(--blue);
}

.row p {
  margin-bottom: 0;
  color: var(--black-soft);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--blue-line);
}

.link-grid a {
  min-height: 8rem;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--blue-line);
  color: var(--black);
  text-decoration: none;
}

.link-grid a:nth-child(odd) {
  border-right: 1px solid var(--blue-line);
}

.link-grid a:nth-child(even) {
  padding-left: 1rem;
}

.link-grid a:hover,
.link-grid a:focus-visible {
  background: var(--blue-soft);
}

.link-grid span {
  display: block;
  margin-bottom: 1.3rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact p {
  max-width: 42rem;
  color: var(--black-soft);
  font-size: 1.05rem;
}

.contact-channels span,
.contact-channels a {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--measure), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--blue-line);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 1.5rem);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: none;
    min-width: min(17rem, calc(100vw - 1.5rem));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--blue-line);
    background: var(--white);
    box-shadow: 0 18px 46px rgba(7, 58, 134, 0.14);
  }

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

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0.8rem;
  }

  .profile,
  .section {
    width: calc(100% - 1.5rem);
  }

  .profile {
    grid-template-columns: 1fr;
    padding-top: 2.4rem;
  }

  .portrait img {
    max-width: 20rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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

  .link-grid a:nth-child(odd) {
    border-right: 0;
  }

  .link-grid a:nth-child(even) {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
