:root {
  --ink-950: #071526;
  --ink-900: #0b1d31;
  --ink-800: #10263e;
  --ink-700: #173552;
  --paper: #f3f2ec;
  --paper-muted: #b9c2cb;
  --paper-faint: #8392a1;
  --blue-300: #7cc8ee;
  --blue-400: #42a7df;
  --line: rgb(224 235 244 / 14%);
  --line-strong: rgb(224 235 244 / 22%);
  --max-width: 1120px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Aptos, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-950);
  color: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900) 45%, var(--ink-950));
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-300);
  text-decoration-color: rgb(124 200 238 / 60%);
  text-underline-offset: 0.24em;
}

a:hover {
  color: #c8edff;
  text-decoration-color: currentcolor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.08;
}

.page-width {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  transform: translateY(-200%);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--blue-300);
  border-radius: 0.25rem;
  background: var(--ink-800);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__image {
  z-index: -2;
  background-image: url("../img/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.5;
}

.hero__overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgb(7 21 38 / 93%), rgb(7 21 38 / 72%) 56%, rgb(7 21 38 / 84%));
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: min(45rem, 92vh);
  padding-block: clamp(6rem, 16vh, 10rem);
}

.hero__intro {
  max-width: 46rem;
}

.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--paper-faint);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.21em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: var(--space-4);
  font-size: clamp(3.25rem, 8vw, 6.6rem);
}

.hero h1 span {
  color: var(--blue-300);
}

.hero__lead {
  max-width: 42rem;
  margin-bottom: var(--space-5);
  color: #d2dce3;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__lead strong {
  color: var(--paper);
  font-weight: 650;
}

.hero__links,
.footer__content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero__links a {
  font-size: 0.95rem;
  font-weight: 650;
}

.hero__links .muted-link {
  color: var(--paper-muted);
  text-decoration-color: var(--line-strong);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  background: rgb(9 28 48 / 78%);
  box-shadow: 0 1.75rem 4rem -2.5rem #000;
}

.profile-card img {
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.profile-card figcaption {
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.profile-card figcaption strong {
  color: var(--paper);
}

.profile-card figcaption span {
  color: var(--paper-muted);
  font-size: 0.78rem;
}

.section {
  padding-block: var(--space-8);
}

.section--tinted {
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 2%);
}

.about {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 7vw, 7rem);
}

.about .pills {
  grid-column: 1 / -1;
}

.prose {
  color: var(--paper-muted);
}

.prose--large {
  max-width: 48rem;
  font-size: clamp(1.1rem, 1.9vw, 1.28rem);
}

.prose--narrow {
  max-width: 43rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper-muted);
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 50rem;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
}

.timeline__period {
  margin: 0;
  color: var(--blue-300);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline h3,
.cards h3,
.value-cards h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.timeline__role {
  margin-bottom: var(--space-4);
  color: var(--paper-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline li div > p:last-child {
  margin-bottom: 0;
  color: var(--paper-muted);
}

.section-intro {
  max-width: 48rem;
  margin-bottom: var(--space-6);
  color: var(--paper);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.3;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards li,
.value-cards article {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 2%);
  box-shadow: 0 1.5rem 3.5rem -2.75rem #000;
}

.cards li > span {
  color: var(--blue-300);
  font-size: 0.76rem;
  font-weight: 700;
}

.cards h3 {
  margin-top: var(--space-3);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.cards p,
.value-cards p {
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: 0.95rem;
}

.prose-section > .eyebrow {
  max-width: 50rem;
}

.prose-section .prose--large {
  margin-bottom: var(--space-4);
}

.leisure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 25rem);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.leisure__figure {
  margin: 0;
}

.leisure__figure img {
  display: block;
  width: 100%;
  max-height: 38rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 1.75rem 4rem -2.5rem #000;
}

.leisure__figure figcaption {
  margin-top: var(--space-2);
  color: var(--paper-faint);
  font-size: 0.85rem;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.value-cards h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}

footer {
  border-top: 1px solid var(--line);
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  color: var(--paper-faint);
  font-size: 0.9rem;
}

.footer__content p {
  margin: 0;
}

.footer__content a {
  color: var(--paper-muted);
}

@media (max-width: 740px) {
  :root {
    --space-8: 4.5rem;
  }

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

  .hero__content,
  .about,
  .leisure {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding-block: 6rem;
  }

  .profile-card {
    max-width: 22rem;
  }

  .about .pills {
    grid-column: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-left: var(--space-4);
    border-left: 1px solid var(--line-strong);
  }

  .cards,
  .value-cards {
    grid-template-columns: 1fr;
  }

  .leisure__figure {
    max-width: 28rem;
  }
}

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