@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #102630;
  --navy: #101f29;
  --paper: #f9f8f3;
  --stone: #eceee8;
  --white: #f9f8f3;
  --gold: #ead5a1;
  --body: #41545a;
  --rule: #cbd3cb;
  --display: "Instrument Serif", Georgia, serif;
  --text: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.7vw, 6rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.65 var(--text);
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #187793; outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; }

.wrap {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .65rem;
  left: .65rem;
  padding: .7rem 1rem;
  background: var(--paper);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid #d9e5e52b;
}

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-inner { min-height: 5rem; }

.identity {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid #ead5a177;
  border-radius: 50%;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem clamp(.8rem, 2.5vw, 2.3rem);
}

.site-header nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav-contact { color: var(--gold); }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .35em; }

.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(38rem, 74svh, 56rem);
  color: var(--white);
  background: var(--navy);
}

.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image { object-fit: cover; object-position: 58% 48%; }

.hero::after {
  content: "";
  background:
    linear-gradient(0deg, #091923 0%, #09192300 38%),
    linear-gradient(90deg, #091923d9 0%, #0919238c 36%, #09192310 80%);
}

.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-copy {
  align-self: center;
  padding-block: 4rem;
}

.hero-label {
  margin-bottom: .8rem;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 100%;
  font: 400 clamp(4.65rem, 9.3vw, 9.7rem)/.89 var(--display);
  letter-spacing: -.045em;
}

.hero-credentials {
  display: flex;
  gap: .7rem;
  align-items: center;
  margin-top: 1.25rem;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-credentials span { opacity: .65; }

.hero-summary {
  max-width: 27rem;
  margin-top: 1.3rem;
  color: #edf1ef;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: fit-content;
  min-height: 3.1rem;
  padding: .65rem 1.05rem;
  border-radius: .25rem;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 800;
}

.hero .button { margin-top: 1.8rem; }
.button:active { background: #f4e5be; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.25rem;
  align-items: center;
  padding-block: 1.2rem;
  border-top: 1px solid #d9e5e54d;
  font-size: .84rem;
  font-weight: 700;
}

.meta-label {
  margin-right: .5rem;
  color: #cbd8d8;
  font-weight: 500;
}

.image-note { margin-left: auto; color: #cbd8d8; font-size: .72rem; }

.section { padding-block: clamp(3.75rem, 8.2vw, 8rem); }
.section:nth-of-type(odd) { background: var(--stone); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(8.5rem, .36fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
}

.profile-grid {
  grid-template-areas:
    "label intro"
    "portrait intro"
    "portrait expertise";
  grid-template-rows: auto auto 1fr;
  row-gap: 1.25rem;
}

.profile-grid .section-label { grid-area: label; }
.profile-copy { grid-area: intro; }

.profile-portrait {
  grid-area: portrait;
  width: min(100%, 17rem);
  height: auto;
  border-radius: .3rem;
}

.profile-grid .expertise-grid { grid-area: expertise; margin-top: .75rem; }

.section-label {
  width: fit-content;
  padding-top: .7rem;
  border-top: 2px solid #647d81;
  color: var(--body);
  font-size: .86rem;
  font-weight: 800;
}

h2 {
  font: 400 clamp(2.9rem, 5.5vw, 5.6rem)/.99 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.lede {
  max-width: 47rem;
  margin-top: 1.15rem;
  color: var(--body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.015em;
}

.expertise-grid, .credential-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.credential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.expertise-grid article, .credential-grid article {
  border-top: 1px solid var(--rule);
  padding-top: .95rem;
}

.section article p, .career-detail p {
  margin-top: .35rem;
  color: var(--body);
  font-size: .94rem;
}

.career { margin: 1.8rem 0 0; padding: 0; list-style: none; }

.career-row {
  display: grid;
  grid-template-columns: minmax(9rem, .37fr) minmax(0, 1fr);
  gap: .3rem 1.8rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}

.career-row:last-child { border-bottom: 1px solid var(--rule); }
.career-period { color: var(--body); font-size: .82rem; font-weight: 800; }
.career-row:first-child .career-period { color: #155747; }
.career-detail h3 { font-size: 1.15rem; }

.contact, .site-footer { background: var(--navy); color: var(--white); }

.contact { padding-block: clamp(3.3rem, 7.6vw, 7rem); }

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.contact h2 { text-wrap: initial; }
.contact p { margin-top: .65rem; color: #d1dddd; }
.site-footer { border-top: 1px solid #d9e5e52b; padding-block: .6rem; }
.site-footer p { font-size: .82rem; color: #d1dddd; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #f4e5be; }
}

@media (width <= 58rem) {
  .section-grid { grid-template-columns: 1fr; }
  .section-label { padding-top: .35rem; }
  .profile-grid {
    grid-template-areas: "label" "intro" "portrait" "expertise";
    grid-template-rows: auto;
  }
}

@media (width <= 42rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: .35rem .2rem;
  }

  .site-header nav { flex-basis: 100%; }
  .site-header nav a { font-size: .76rem; }
  .hero { min-height: max(36rem, 72svh); }
  .hero-image { object-position: 62% 48%; }
  .hero::after {
    background:
      linear-gradient(0deg, #091923 0%, #09192338 80%),
      linear-gradient(90deg, #091923c9 0%, #09192329 100%);
  }
  .hero h1 { font-size: clamp(3.45rem, 13.1vw, 5.6rem); }
  .hero-copy { padding-block: 3rem; }
  .hero-meta { display: grid; gap: .3rem; }
  .image-note { margin-left: 0; }
  .profile-portrait { width: min(100%, 13rem); }
  .expertise-grid { grid-template-columns: 1fr; }
}

@media (width <= 30rem) {
  .career-row, .credential-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image { animation: bridge-arrival 1.5s var(--ease-out) both; }
  .hero-copy { animation: copy-arrival .75s .06s var(--ease-out) both; }
  .button { transition: background-color .14s ease; }

  @keyframes bridge-arrival {
    from { opacity: .45; transform: scale(1.045); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes copy-arrival {
    from { opacity: .6; transform: translateY(.5rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

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