:root {
  color-scheme: dark;
  --background: #101316;
  --surface: #171b20;
  --surface-elevated: #1c2127;
  --text: #f2f4f5;
  --muted: #b8c0c7;
  --accent: #8eb9cf;
  --accent-strong: #b9d9e8;
  --border: #343c44;
  --focus: #d3eef9;
  --notice-surface: #151a1e;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--background);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
  border-radius: 0.125rem;
}

.page-shell {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 7rem) 2.5rem;
}

.page-header {
  max-width: 54rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

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

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 590;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 0;
  color: var(--muted);
}

.purpose {
  max-width: 46rem;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.audience {
  max-width: 49rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.pathways,
.progression,
.governed,
.notice,
.diagnostic {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pathway {
  min-width: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
}

.pathway--specialized {
  background: transparent;
  border-style: dashed;
}

.progression {
  display: grid;
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.progression h2,
.progression p {
  margin-bottom: 0;
}

.governed {
  margin-block: 0;
}

.governed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.endpoint {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-left: 0.1875rem solid var(--accent);
  background: var(--surface-elevated);
}

.endpoint p {
  margin-bottom: 1.25rem;
}

.endpoint a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
}

.notice {
  padding-inline: clamp(1.25rem, 3vw, 2rem);
  background: var(--notice-surface);
  border-bottom: 1px solid var(--border);
}

.notice p,
.diagnostic p {
  max-width: 50rem;
}

.diagnostic a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

footer > span:not([aria-hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media (max-width: 48rem) {
  .page-shell {
    width: min(100% - 2rem, var(--max-width));
    padding-top: 3.5rem;
  }

  .pathway-grid,
  .governed-grid,
  .progression {
    grid-template-columns: 1fr;
  }

  .progression {
    gap: 1.25rem;
  }
}

@media (max-width: 24rem) {
  .page-shell {
    width: min(100% - 1.5rem, var(--max-width));
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3rem);
  }

  .pathway,
  .endpoint {
    padding: 1.25rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  footer > span[aria-hidden] {
    display: none;
  }
}
