:root {
  color-scheme: light;
  --ink: #17272b;
  --muted: #617175;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dce5e1;
  --green: #27645c;
  --green-dark: #173f3a;
  --green-pale: #e8f1ed;
  --coral: #e9694b;
  --coral-pale: #f9e9e3;
  --yellow: #f1c96a;
  --shadow: 0 18px 44px rgba(23, 39, 43, .08);
  font-family: "Manrope", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.7;
}

body,
input,
button {
  font-family: "Manrope", sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, .96);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 56px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: #fff;
  background: var(--coral);
  font-size: 17px;
  font-weight: 800;
}

.brand-name,
.footer-brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 27px);
  margin-left: auto;
}

.primary-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.mobile-nav a:hover {
  color: var(--green-dark);
}

.site-search {
  position: relative;
  width: 190px;
  flex: 0 1 190px;
  margin: 0;
}

.site-search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 12px;
}

.site-search input::placeholder {
  color: #84918f;
}

.search-shortcut {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 12px/19px "DM Mono", monospace;
  text-align: center;
}

.mobile-nav-toggle,
.mobile-nav {
  display: none;
}

.page-frame {
  width: min(1240px, calc(100% - 56px));
  flex: 1;
  margin: 0 auto;
}

.page-frame.has-chapter-rail {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
}

.site-main {
  min-width: 0;
  padding: 48px 0 76px;
}

.page-frame:not(.has-chapter-rail) .site-main {
  width: min(900px, 100%);
  margin: 0 auto;
}

.page-content {
  min-width: 0;
}

.chapter-rail {
  position: sticky;
  top: 100px;
  align-self: start;
  height: calc(100vh - 120px);
  margin-top: 26px;
  overflow: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.chapter-rail-toggle {
  display: none;
}

.chapter-rail .book-summary,
.chapter-rail .book-summary nav {
  position: static;
  width: auto;
  margin: 0;
  padding: 0 18px 22px 0;
  background: transparent;
}

.chapter-rail .summary,
.chapter-rail .chapter-summary {
  padding: 0;
  margin: 0;
  list-style: none;
}

.chapter-rail li {
  list-style: none;
}

.chapter-rail .summary > li.header {
  padding: 17px 8px 5px;
  color: var(--green);
  font: 500 10px/1.5 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chapter-rail .summary > li.chapter {
  margin: 1px 0;
}

.chapter-rail .summary > li.chapter a {
  display: block;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
}

.chapter-rail .summary > li.chapter a:hover,
.chapter-rail .summary > li.chapter.active a {
  color: var(--green-dark);
  background: var(--green-pale);
}

.chapter-rail .summary > li.chapter.active a {
  font-weight: 800;
}

.chapter-rail .summary > li.divider {
  height: 1px;
  margin: 12px 8px;
  background: var(--line);
}

.page-heading {
  margin: 0 0 32px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.feature-index,
.hero-caption,
.topic-number {
  color: var(--green);
  font: 500 10px/1.5 "DM Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
}

.page-title {
  max-width: 800px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.page-subtitle {
  max-width: 680px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
}

.learning-page {
  max-width: 820px;
}

.learning-intro {
  max-width: 680px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.roadmap-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap-index a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px;
  color: var(--green-dark);
  font: 10px/1.5 "DM Mono", monospace;
  text-decoration: none;
}

.roadmap-index a + a {
  border-left: 1px solid var(--line);
}

.roadmap-index a span {
  color: var(--ink);
  font: 700 11px/1.5 "Manrope", sans-serif;
}

.roadmap-track {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.roadmap-track header .eyebrow {
  margin-bottom: 7px;
}

.roadmap-track h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.roadmap-track header > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.roadmap-track ol {
  padding: 0 0 0 26px;
  margin: 0;
  color: var(--coral);
}

.roadmap-track li {
  padding: 5px 0 5px 3px;
  font-size: 12px;
}

.roadmap-track li a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.roadmap-track li a:hover,
.learning-next a:hover {
  color: var(--coral);
}

.learning-next {
  padding: 16px 0 0;
  margin: 25px 0 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.learning-next a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.course-tracks {
  border-top: 1px solid var(--line);
}

.course-track {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 15px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.course-track-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-pale);
  font: 10px/1 "DM Mono", monospace;
}

.course-track:nth-child(2) .course-track-number {
  color: #9a503b;
  background: var(--coral-pale);
}

.course-track:nth-child(3) .course-track-number {
  color: #805c1b;
  background: #f8f0d9;
}

.course-track:nth-child(4) .course-track-number {
  color: #506786;
  background: #e8edf3;
}

.course-track h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.course-track div > p:not(.track-topics) {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.track-topics {
  margin: 0;
  color: #71807d;
  font-size: 10px;
}

.course-track > a {
  padding-top: 7px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.course-track > a:hover {
  color: var(--coral);
}

.mentoring-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .8fr);
  gap: 24px;
  padding: 20px 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mentoring-links h2 {
  max-width: 420px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.mentoring-links p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.mentoring-links nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.mentoring-links nav a {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.mentoring-links nav a:hover {
  color: var(--coral);
}

.mentoring-links .all-mentoring-services {
  color: var(--coral);
}

.breadcrumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font: 10px/1.6 "DM Mono", monospace;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a3afab;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.chapter-title {
  margin-bottom: 25px;
}

.draft-notice {
  padding: 9px 12px;
  margin-bottom: 18px;
  border-left: 3px solid var(--yellow);
  color: var(--ink);
  background: #fff8e4;
  font-size: 12px;
  font-weight: 700;
}

.article-content {
  color: #344448;
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4,
.home-content h2,
.home-content h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.article-content h2 {
  margin: 2.1em 0 .65em;
  font-size: 25px;
}

.article-content h3 {
  margin: 1.8em 0 .5em;
  font-size: 19px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
}

.article-content li + li {
  margin-top: .35em;
}

.article-content blockquote {
  padding: 4px 20px;
  margin: 1.5em 0;
  border-left: 3px solid var(--coral);
  color: var(--muted);
  background: #f5f7f5;
}

.article-content img,
.article-content iframe,
.article-content video {
  max-width: 100%;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
}

.article-content th,
.article-content td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--ink);
  background: var(--green-pale);
}

.article-content pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid #243a3d;
  border-radius: 5px;
  color: #edf5f1;
  background: #17272b;
  font: 12px/1.65 "DM Mono", monospace;
}

.article-content code {
  font-family: "DM Mono", monospace;
  font-size: .88em;
}

.article-content pre code {
  color: inherit;
  font-size: inherit;
  background: transparent;
}

.article-content pre.highlight {
  color: #e7eee9;
  background: #17272b;
}

.article-content pre.highlight .c,
.article-content pre.highlight .ch,
.article-content pre.highlight .cd,
.article-content pre.highlight .cm,
.article-content pre.highlight .cpf,
.article-content pre.highlight .c1 {
  color: #91a7a0;
  font-style: italic;
}

.article-content pre.highlight .k,
.article-content pre.highlight .kc,
.article-content pre.highlight .kd,
.article-content pre.highlight .kn,
.article-content pre.highlight .kr,
.article-content pre.highlight .kv {
  color: #f1c96a;
  font-weight: 700;
}

.article-content pre.highlight .kt,
.article-content pre.highlight .nc {
  color: #a9c9ef;
  font-weight: 700;
}

.article-content pre.highlight .nn,
.article-content pre.highlight .nb,
.article-content pre.highlight .bp {
  color: #91d0bd;
}

.article-content pre.highlight .nf,
.article-content pre.highlight .fm {
  color: #f0a88f;
  font-weight: 700;
}

.article-content pre.highlight .s,
.article-content pre.highlight .sb,
.article-content pre.highlight .dl,
.article-content pre.highlight .s2,
.article-content pre.highlight .sh,
.article-content pre.highlight .s1,
.article-content pre.highlight .sc {
  color: #e9b7a1;
  background: transparent;
}

.article-content pre.highlight .m,
.article-content pre.highlight .mb,
.article-content pre.highlight .mx,
.article-content pre.highlight .mi,
.article-content pre.highlight .il,
.article-content pre.highlight .mf,
.article-content pre.highlight .mh,
.article-content pre.highlight .mo {
  color: #d2b3e8;
  font-weight: 500;
}

.article-content pre.highlight .o,
.article-content pre.highlight .p {
  color: #c2d0ca;
}

.article-content pre.highlight .err {
  color: #ffd6d2;
  background: #633b3a;
}

.article-content :not(pre) > code {
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--green-dark);
  background: var(--green-pale);
}

.chapter-abstract,
.page-toc {
  padding: 17px 19px;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.chapter-abstract {
  border-left: 3px solid var(--green);
  color: var(--muted);
}

.page-toc-heading {
  font-size: 12px;
  font-weight: 800;
}

.page-toc ul {
  padding-left: 20px;
  margin: 8px 0 0;
  font-size: 12px;
}

.chapter-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 26px;
  margin: 34px 0 10px;
  border-top: 1px solid var(--line);
}

.chapter-pager a {
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.chapter-pager a:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

.chapter-next {
  grid-column: 2;
  text-align: right;
}

.chapter-prev.pager-unique,
.chapter-next.pager-unique {
  grid-column: 1 / -1;
}

.pager-labels .part {
  color: var(--muted);
  font: 10px/1.5 "DM Mono", monospace;
  text-transform: uppercase;
}

.pager-labels .chapter-label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 800;
}

.home-content {
  width: 100%;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(35px, 7vw, 92px);
  min-height: 510px;
  padding: 58px clamp(30px, 6vw, 72px);
  margin: 14px 0 70px;
  overflow: hidden;
  background: var(--green-pale);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.hero-copy .eyebrow {
  color: var(--coral);
}

.hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-intro {
  max-width: 510px;
  margin: 23px 0 26px;
  color: #4c6260;
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--green-dark);
}

.button-primary:hover {
  color: #fff;
  background: var(--green);
}

.text-link {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.text-link span,
.button span,
.topic-link span,
.cta-links span {
  color: var(--coral);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #687a75;
  font: 10px/1.5 "DM Mono", monospace;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.hero-art {
  position: relative;
  padding: 24px 24px 45px;
  background: var(--yellow);
  box-shadow: 16px 16px 0 rgba(39, 100, 92, .18);
  transform: rotate(2deg);
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  background: #fff;
}

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 15px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-dark);
  font-size: 8px;
}

.home-section {
  padding: 0 clamp(0px, 2vw, 22px);
  margin: 0 auto 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.home-feature h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

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

.topic-item {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px 24px 25px;
  color: var(--ink);
  text-decoration: none;
}

.topic-item + .topic-item {
  border-left: 1px solid var(--line);
}

.topic-number {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-pale);
}

.topic-systems .topic-number {
  color: #89532a;
  background: #f8edda;
}

.topic-interviews .topic-number {
  color: #a14531;
  background: var(--coral-pale);
}

.topic-item h3 {
  margin: 21px 0 7px;
  font-size: 19px;
}

.topic-item p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.topic-link {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

.topic-item:hover {
  background: #f3f7f4;
}

.home-feature {
  display: grid;
  grid-template-columns: .8fr 1.4fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: 35px clamp(26px, 5vw, 56px);
  margin: 0 0 74px;
  color: #fff;
  background: var(--green-dark);
}

.feature-index {
  max-width: 160px;
  color: #a9d0c5;
}

.home-feature h2 {
  color: #fff;
  font-size: 27px;
}

.home-feature p {
  max-width: 530px;
  margin: 11px 0 0;
  color: #c5d7d1;
  font-size: 12px;
}

.button-light {
  color: var(--green-dark);
  background: #fff;
  white-space: nowrap;
}

.button-light:hover {
  color: var(--green-dark);
  background: var(--yellow);
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding-bottom: 50px;
}

.cta-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.cta-links a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 35px max(28px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f2f5f2;
}

.footer-brand {
  color: var(--ink);
  text-decoration: none;
}

.site-footer p {
  margin: 4px 0 16px;
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-bottom: 15px;
}

.site-footer nav a {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer small {
  font-size: 10px;
}

.search-overlay {
  position: fixed;
  z-index: 40;
  top: 86px;
  right: max(28px, calc((100vw - 1240px) / 2));
  display: none;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 106px);
  padding: 15px 19px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-overlay.open {
  display: block;
}

.search-results-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.search-results-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-results-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.search-results-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.search-results-item p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.search-results-item mark,
.search-highlight-keyword {
  color: var(--ink);
  background: #ffe49c;
}

.search-overlay .no-results,
.search-overlay.no-results .has-results {
  display: none;
}

.search-overlay.no-results .no-results {
  display: block;
}

.search-overlay .no-results .search-results-title {
  margin: 0;
}

@media (max-width: 1050px) {
  .site-header-inner,
  .page-frame {
    width: min(100% - 40px, 900px);
  }

  .site-header-inner {
    gap: 20px;
  }

  .primary-nav {
    gap: 13px;
  }

  .primary-nav a {
    font-size: 11px;
  }

  .site-search {
    width: 155px;
    flex-basis: 155px;
  }

  .page-frame.has-chapter-rail {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 32px;
  }

  .home-hero {
    min-height: 440px;
    gap: 36px;
    padding: 44px 36px;
  }

  .home-feature {
    grid-template-columns: .65fr 1.35fr;
  }

  .home-feature .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header-inner,
  .page-frame {
    width: calc(100% - 32px);
  }

  .site-header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    font-size: 15px;
  }

  .primary-nav {
    display: none;
  }

  .site-search {
    width: auto;
    flex: 1;
    margin-left: auto;
  }

  .site-search input {
    height: 36px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--green-dark);
    background: var(--surface);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 8px 16px 14px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav a {
    padding: 10px;
    background: var(--surface);
  }

  .page-frame.has-chapter-rail {
    display: block;
  }

  .chapter-rail {
    position: fixed;
    z-index: 18;
    top: 64px;
    bottom: 0;
    left: 0;
    display: none;
    width: min(320px, calc(100vw - 45px));
    height: auto;
    padding: 18px 12px 24px 18px;
    margin: 0;
    border-right: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .chapter-rail-toggle:not([hidden]) {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--green-dark);
    background: var(--surface);
    font-size: 11px;
    font-weight: 800;
  }

  body.chapter-rail-open .chapter-rail {
    display: block;
  }

  body.chapter-rail-open::after {
    position: fixed;
    z-index: 17;
    inset: 64px 0 0;
    content: "";
    background: rgba(23, 39, 43, .32);
  }

  .site-main {
    padding: 32px 0 52px;
  }

  .roadmap-index {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .roadmap-index a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .roadmap-track {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }

  .course-track {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 17px 0;
  }

  .course-track > a {
    grid-column: 2;
    padding-top: 0;
  }

  .mentoring-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mentoring-links nav {
    grid-template-columns: 1fr 1fr;
  }

  .page-frame:not(.has-chapter-rail) .site-main {
    width: 100%;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 37px 24px 40px;
    margin: 0 -16px 52px;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-intro {
    font-size: 14px;
  }

  .hero-art {
    width: min(360px, 82%);
    justify-self: center;
  }

  .home-section {
    margin-bottom: 53px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-item {
    min-height: 0;
    padding: 20px 4px;
  }

  .topic-item + .topic-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .topic-item h3 {
    margin-top: 13px;
  }

  .home-feature {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 27px 23px;
    margin-bottom: 52px;
  }

  .home-feature h2 {
    font-size: 24px;
  }

  .home-feature .button {
    grid-column: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .cta-links {
    grid-template-columns: 1fr;
  }

  .chapter-pager {
    grid-template-columns: 1fr;
  }

  .chapter-next,
  .chapter-prev.pager-unique,
  .chapter-next.pager-unique {
    grid-column: 1;
  }

  .chapter-next {
    text-align: left;
  }

  .search-overlay {
    top: 70px;
    right: 12px;
    max-height: calc(100vh - 82px);
  }

  .site-footer {
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}