:root {
  --navy: #0b2f4f;
  --navy-deep: #061f35;
  --ink: #152432;
  --muted: #526271;
  --paper: #f7f8f8;
  --white: #ffffff;
  --gold: #f2c14e;
  --line: #d9e0e5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  color: var(--navy-deep);
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: var(--white);
  background: rgba(6, 31, 53, .96);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .09em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: .65rem;
  height: .65rem;
  margin-right: .6rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  color: #e7eef4;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -9rem -16rem auto;
  width: 31rem;
  aspect-ratio: 1;
  border: 5rem solid rgba(242, 193, 78, .09);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.hero-kicker {
  padding-top: .8rem;
  border-top: .35rem solid var(--gold);
  color: var(--gold);
  font-size: .9rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 830px;
  margin-bottom: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-subtitle {
  margin-bottom: 2.4rem;
  color: #cddbe7;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
}

.candidate-line {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.candidate-line strong {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

.people {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.person-card {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1.18fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.person-card:first-child { padding-top: 0; }
.person-card:last-child { padding-bottom: 0; border-bottom: 0; }

.person-card.reverse .portrait-link { order: 2; }

.portrait-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dce1e4;
}

.portrait-link::after {
  content: "";
  position: absolute;
  inset: .8rem -.8rem -.8rem .8rem;
  z-index: -1;
  background: var(--gold);
}

.portrait-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform .35s ease, filter .35s ease;
}

.person-card:first-child .portrait-link img { object-position: 53% center; }
.person-card:last-child .portrait-link img { object-position: center 28%; }

.portrait-link:hover img,
.portrait-link:focus-visible img {
  transform: scale(1.025);
  filter: grayscale(35%);
}

.person-copy { max-width: 590px; }

.role {
  margin-bottom: .65rem;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.role sup {
  font-size: .7em;
  text-transform: lowercase;
}

.person-copy h2,
.profile-copy h1 {
  margin-bottom: .65rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  text-transform: none;
}

.person-copy h2 a {
  text-decoration-thickness: .09em;
  text-decoration-color: transparent;
  text-underline-offset: .15em;
}

.person-copy h2 a:hover,
.person-copy h2 a:focus-visible {
  text-decoration-color: var(--gold);
}

.position {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 750;
}

.research {
  margin-top: 1.8rem;
  padding-left: 1.1rem;
  border-left: .3rem solid var(--gold);
}

.research strong {
  color: var(--navy);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.motivations {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--paper);
}

.reading-column {
  display: grid;
  grid-template-columns: 6rem minmax(0, 760px);
  justify-content: center;
  column-gap: clamp(2rem, 6vw, 5rem);
}

.section-number {
  grid-row: 1 / span 7;
  margin: .35rem 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.reading-column h2 {
  margin-bottom: 2rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.reading-column > p:not(.section-number) {
  margin-bottom: 1.35rem;
  font-size: 1.075rem;
  line-height: 1.8;
}

.reading-column > p:last-child { margin-bottom: 0; }

.site-footer {
  padding-block: 2rem;
  color: #cbd7e0;
  background: var(--navy-deep);
  font-size: .9rem;
  text-align: center;
}

.profile-page {
  min-height: calc(100vh - 8.5rem);
  padding-block: clamp(3rem, 8vw, 7rem);
  background: var(--paper);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.profile-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 1.1rem 1.1rem 0 var(--gold);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.profile-portrait-wide img { object-position: 53% center; }

.profile-copy { max-width: 590px; }

.back-link {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: var(--navy); }

/* Personal candidate page */
.candidate-detail {
  background: var(--white);
}

.candidate-hero {
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.candidate-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.candidate-hero-copy {
  position: relative;
  z-index: 2;
}

.back-link.light {
  color: #cbd8e2;
}

.back-link.light:hover,
.back-link.light:focus-visible {
  color: var(--gold);
}

.role-light {
  color: var(--gold);
}

.candidate-hero h1 {
  max-width: 620px;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
}

.candidate-intro {
  max-width: 670px;
  margin-bottom: 2rem;
  color: #e1e9ef;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.6;
}

.support-line {
  display: inline-block;
  margin: 0;
  padding: .5rem 0;
  border-bottom: .28rem solid var(--gold);
  color: var(--white);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.candidate-portrait {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: 1.25rem 1.25rem 0 var(--gold);
}

.candidate-portrait::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  pointer-events: none;
}

.candidate-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: grayscale(100%);
}

.detail-section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.detail-section-tint {
  background: var(--paper);
}

.detail-section-dark {
  color: #e7eef4;
  background: var(--navy-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.detail-label {
  position: sticky;
  top: 7rem;
}

.detail-label span {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.detail-label h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.detail-section-dark .detail-label h2 {
  color: var(--white);
}

.detail-copy {
  max-width: 740px;
}

.detail-copy p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.82;
}

.detail-copy .lead {
  margin-bottom: 2rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.35;
}

.detail-section-dark .lead {
  color: var(--gold);
}

.detail-copy h3 {
  margin: 3.2rem 0 1.4rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.priority-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: priorities;
}

.priority-list li {
  position: relative;
  min-height: 3.2rem;
  margin-bottom: 1rem;
  padding: .7rem 0 .7rem 4rem;
  border-top: 1px solid var(--line);
  counter-increment: priorities;
}

.priority-list li::before {
  content: "0" counter(priorities);
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: .08em;
}

.endorsement {
  margin-top: 4rem;
  padding: 2rem 2.2rem;
  color: var(--white);
  background: var(--navy);
  box-shadow: .65rem .65rem 0 var(--gold);
}

.endorsement p {
  margin-bottom: 0;
  font-size: 1rem;
}

.endorsement .endorsement-title {
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .shell { width: min(100% - 1.5rem, 42rem); }

  .nav {
    min-height: 4rem;
    gap: .75rem;
  }

  .nav-links { gap: .8rem; }
  .nav-links a { font-size: .82rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-block: 4rem;
  }

  .hero-kicker {
    width: max-content;
    padding-right: 1rem;
  }

  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .candidate-line { line-height: 1.9; }

  .person-card,
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .person-card.reverse .portrait-link { order: 0; }

  .portrait-link {
    width: calc(100% - .8rem);
    max-width: 30rem;
  }

  .reading-column { grid-template-columns: 1fr; }

  .section-number {
    grid-row: auto;
    margin-bottom: 1rem;
    font-size: 2rem;
  }

  .reading-column > p:not(.section-number) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .profile-page { padding-bottom: 5rem; }
  .profile-portrait { width: calc(100% - 1.1rem); }
  .back-link { margin-bottom: 2rem; }

  .candidate-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .candidate-hero-grid {
    min-height: auto;
    gap: 3.5rem;
    padding-block: 3.5rem 5rem;
  }

  .candidate-hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .candidate-portrait {
    width: calc(100% - 1.25rem);
  }

  .detail-grid { gap: 2.5rem; }

  .detail-label {
    position: static;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .detail-label span { font-size: 1.7rem; }

  .detail-copy p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .endorsement {
    padding: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nav-links a:last-child { display: none; }
  .candidate-detail .nav-links a:first-child { display: none; }
  .person-copy h2, .profile-copy h1 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait-link img { transition: none; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .hero { color: #000; background: #fff; }
  .hero::after { display: none; }
  .hero-grid { padding-block: 1.5rem; }
  .hero-kicker, .candidate-line strong, .role, .position, .research strong, .reading-column h2 { color: #000; }
  .people, .motivations { padding-block: 2rem; }
  .motivations { background: #fff; }
  .person-card { break-inside: avoid; }
}
