:root {
  --ink: #16233b;
  --muted: #56617a;
  --paper: #f1f4f7;
  --card: #ffffff;
  --rule: #d3dbe4;
  --college: #2f6bff;
  --trade: #ef8a1f;
  --apprentice: #1c9e5f;
  --gap: #d6336c;
  --fellow: #7048e8;
  --self: #0f9db0;
  --focus: #2f6bff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--college); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header,
main,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 8px;
}

.wordmark {
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark .tld { color: var(--muted); font-weight: 600; }

.header-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 13ch;
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}

/* Waitlist form */
.join {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 12px;
  max-width: 34em;
}

.field { display: grid; gap: 4px; }
.field-label { font-size: 0.875rem; font-weight: 600; }

input[type="email"],
select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 52px;
  width: 100%;
}
input[type="email"]:focus,
select:focus { border-color: var(--ink); outline: none; }
input[type="email"]:focus-visible,
select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.check {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.join button {
  grid-column: 1 / -1;
  justify-self: start;
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 15px 28px 13px;
  min-height: 52px;
  cursor: pointer;
}
.join button:hover { background: #24365a; }
.join button[disabled] { opacity: 0.6; cursor: progress; }

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.ok { color: var(--apprentice); }
.form-status.err { color: var(--gap); }

/* Route map */
.map { margin: 0; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }

.line { stroke-dasharray: 700; stroke-dashoffset: 0; }
.l1 { stroke: var(--college); }
.l2 { stroke: var(--trade); }
.l3 { stroke: var(--apprentice); }
.l4 { stroke: var(--gap); }
.l5 { stroke: var(--fellow); }
.l6 { stroke: var(--self); }

.stations circle { fill: var(--paper); stroke-width: 5; }
.s1 { stroke: var(--college); }
.s2 { stroke: var(--trade); }
.s3 { stroke: var(--apprentice); }
.s4 { stroke: var(--gap); }
.s5 { stroke: var(--fellow); }
.s6 { stroke: var(--self); }

.origin rect { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }

.st-name { font-family: inherit; font-weight: 800; font-size: 19px; fill: var(--ink); }
.st-sub { font-family: inherit; font-size: 13px; fill: var(--muted); }
.st-origin { font-family: inherit; font-weight: 800; font-size: 17px; fill: var(--ink); }

.map figcaption {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* One orchestrated moment: the lines draw out from graduation on load */
@media (prefers-reduced-motion: no-preference) {
  .line { animation: draw 1.4s cubic-bezier(.6,.05,.25,1) both; }
  .l2 { animation-delay: .08s; }
  .l3 { animation-delay: .16s; }
  .l4 { animation-delay: .24s; }
  .l5 { animation-delay: .32s; }
  .l6 { animation-delay: .40s; }
  .stations circle, .labels text { animation: appear .4s ease-out 1.1s both; }
}
@keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Promises */
.promises {
  border-top: 2px solid var(--ink);
  padding-top: 32px;
  padding-bottom: 72px;
}
.promises h2 {
  font-weight: 800;
  font-size: 1.375rem;
  margin: 0 0 24px;
}
.promises dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
}
.promises dt { font-weight: 800; font-size: 1.125rem; margin-bottom: 6px; }
.promises dd { margin: 0; color: var(--muted); max-width: 30em; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; }

/* Privacy page */
.prose { max-width: 40em; padding-top: 40px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); max-width: none; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .promises dl { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
  .st-name { font-size: 26px; }
  .st-origin { font-size: 21px; }
  .st-sub { display: none; }
  .labels text.st-name { transform: translateY(6px); }
  .join { grid-template-columns: 1fr; }
  .join button { width: 100%; }
  .header-link { display: none; }
}

/* Homepage: way into each section */
.explore { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.explore-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px 8px; border-radius: 999px; font-weight: 800; text-decoration: none; color: #fff; }
.explore-link.path-college { background: var(--college); }
.explore-link.path-trade { background: var(--trade); color: var(--ink); }
.explore-link:hover { filter: brightness(1.08); text-decoration: underline; }
.map a text { text-decoration: underline; }
.explore-link.path-apprentice { background: var(--apprentice); }
