:root {
  --ink: #161512;
  --paper: #f4f0e5;
  --stone: #d2cbc0;
  --soft: #ebe5d8;
  --mist: #d8dcd4;
  --pool: #aeb9b3;
  --moss: #3e4942;
  --black: #12120f;
  --white: #fbf6ea;
  --muted: #6a6257;
  --line: rgba(22, 21, 18, 0.18);
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.source-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  min-height: 62px;
  padding: 0 24px;
  background: rgba(244, 240, 229, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.source-header nav,
.source-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

main {
  max-width: var(--max);
  margin: 0 auto;
}

.source-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 660px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: 54px 42px 68px;
  background: var(--stone);
}

.hero-copy span,
.section-heading span,
.batch-grid span {
  color: rgba(22, 21, 18, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: 72px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.hero-copy p,
.route-grid p,
.batch-grid p,
.question-columns p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.priority-panel {
  display: grid;
  align-content: stretch;
  background: var(--black);
  color: var(--white);
}

.priority-panel div {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 220px;
  padding: 28px;
  border-bottom: 1px solid rgba(251, 246, 234, 0.22);
}

.priority-panel div:last-child {
  border-bottom: 0;
}

.priority-panel small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.priority-panel strong {
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.priority-panel span {
  color: rgba(251, 246, 234, 0.66);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-section,
.candidate-section,
.sample-section,
.outreach-section {
  padding: 72px 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.052em;
  text-transform: uppercase;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.route-grid article {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 460px;
  padding: 28px;
  background: var(--soft);
  border-right: 1px solid var(--line);
}

.route-grid article:last-child {
  border-right: 0;
}

.route-grid article.dark {
  color: var(--white);
  background: var(--moss);
}

.route-grid article.dark p,
.route-grid article.dark li {
  color: rgba(251, 246, 234, 0.72);
}

.route-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  font-weight: 800;
}

.dark .route-index {
  color: var(--black);
  background: var(--white);
}

.route-grid h3,
.batch-grid h3,
.question-columns h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.05;
}

.route-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.candidate-table {
  border: 1px solid var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1.65fr 0.55fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.swim {
  background: var(--mist);
}

.table-head {
  min-height: 48px;
  color: rgba(22, 21, 18, 0.58);
  background: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.table-row span,
.table-row strong,
.table-row a {
  font-size: 13px;
  line-height: 1.45;
}

.table-row > span:nth-child(3) {
  color: var(--muted);
}

.table-row strong {
  font-size: 15px;
}

.table-row a {
  justify-self: start;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.batch-grid,
.question-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.batch-grid article,
.question-columns div {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.batch-grid article:nth-child(2) {
  background: var(--pool);
}

.batch-grid article:last-child,
.question-columns div:last-child {
  border-right: 0;
}

.outreach-section {
  background: var(--black);
  color: var(--white);
}

.outreach-section .section-heading span {
  color: rgba(251, 246, 234, 0.58);
}

.outreach-section .question-columns {
  border-color: rgba(251, 246, 234, 0.2);
}

.question-columns div {
  background: transparent;
  border-color: rgba(251, 246, 234, 0.2);
}

.question-columns p {
  color: rgba(251, 246, 234, 0.66);
}

.spec-link {
  display: inline-block;
  margin-top: 26px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.source-footer {
  max-width: var(--max);
  margin: 0 auto;
  justify-content: space-between;
  padding: 26px 24px;
  color: var(--black);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.source-footer a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 1120px) {
  .source-hero,
  .route-grid,
  .batch-grid,
  .question-columns {
    grid-template-columns: 1fr;
  }

  .route-grid article,
  .batch-grid article,
  .question-columns div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-grid article:last-child,
  .batch-grid article:last-child,
  .question-columns div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .source-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .source-header nav,
  .source-footer {
    justify-content: flex-start;
  }

  .source-hero {
    min-height: auto;
  }

  .hero-copy,
  .route-section,
  .candidate-section,
  .sample-section,
  .outreach-section {
    padding: 44px 18px;
  }

  h1,
  .section-heading h2 {
    font-size: 38px;
    line-height: 1.02;
  }

  .priority-panel div {
    min-height: 180px;
  }

  .priority-panel strong {
    font-size: 28px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .table-head {
    display: none;
  }

  .source-footer {
    flex-direction: column;
  }
}
