.roadmap-home :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.roadmap-home :is(h1, h2) {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.028em;
  line-height: 1.02;
}
.roadmap-home h2 { font-size: clamp(2.75rem, 4.3vw, 4.15rem); }
.roadmap-home p { line-height: 1.55; }
.roadmap-home a:focus-visible, .roadmap-home summary:focus-visible { outline-offset: 4px; }
.rm-hero {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: start;
  gap: clamp(2.4rem, 6.2vw, 6rem);
  padding-block: clamp(3rem, 5.5vw, 5.2rem);
}
.rm-pitch { padding-top: clamp(.15rem, 1.4vw, 1.2rem); }
.rm-author, .rm-section-label, .rm-folio-label, .rm-meta {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.rm-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4em;
  font-size: .78rem;
  color: var(--muted);
}
.rm-author::before {
  content: "";
  align-self: center;
  width: 1.65rem;
  margin-right: .3rem;
  border-top: 2px solid var(--accent);
}
.rm-author strong { color: var(--ink); font-weight: 600; }
.rm-pitch h1 {
  margin: 1.35rem 0 1.3rem;
  font-size: clamp(3.6rem, 6.55vw, 6.2rem);
  line-height: .99;
}
.rm-pitch h1 span { display: block; max-width: 13.6ch; }
.rm-pitch h1 em { display: block; margin-top: .06em; font-size: .82em; color: var(--forest); }
.rm-pitch .rm-lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.28vw, 1.125rem);
  color: #3e463d;
}
.rm-actions { display: flex; align-items: center; gap: .25rem 1.45rem; flex-wrap: wrap; margin-top: 1.55rem; }
.roadmap-home .rm-button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 2px;
  min-height: 50px;
  padding: .78rem 1.15rem;
  font-size: 1rem;
  font-weight: 660;
  gap: 1.3rem;
}
.roadmap-home .rm-button:hover { background: #86291b; color: white; }
.rm-button span { font-size: 1.28rem; line-height: 1; }
.rm-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); font-size: .94rem; text-underline-offset: .28em; }
.rm-pitch .rm-delivery { margin-top: .7rem; color: var(--muted); font-size: .8rem; }

/* Page three of the roadmap also works as a small, keyboard-operated coding lab. */
.roadmap-home .rm-folio {
  position: relative;
  min-width: 0;
  width: 100%;
  background: var(--forest);
  border-left: clamp(.52rem, .9vw, .78rem) solid #b54c32;
  padding: clamp(1rem, 2.35vw, 2rem);
  box-shadow: 3px 4px 0 #d7ccaf;
  color: var(--paper);
}
.rm-folio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  padding-bottom: 1.1rem;
}
.rm-folio-head span:first-child { font: italic 400 clamp(1.3rem, 2vw, 1.7rem)/1.1 var(--display); }
.rm-folio-head span:last-child { font: .66rem/1.4 ui-monospace, Consolas, monospace; color: #d8ddcc; }
.rm-page {
  color: var(--ink);
  background: #fffcf2;
  padding: clamp(1.1rem, 2.3vw, 2rem);
  border-bottom: 3px double #d4cbb7;
}
.rm-folio-label, .rm-section-label, .rm-meta {
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.rm-page .rm-folio-label { color: #8e3627; }
.rm-folio-label span { margin-inline: .25em; font-weight: 400; }
.rm-page h2 { margin: .7rem 0 .55rem; max-width: 14ch; font-size: clamp(2.25rem, 3.5vw, 3.3rem); line-height: .98; }
.rm-brief { font-size: .92rem; color: #444b41; }
.rm-ledger { width: 100%; margin-top: 1.1rem; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; }
.rm-ledger th, .rm-ledger td { border-bottom: 1px solid #d8d5c6; padding: .38rem 0; text-align: right; }
.rm-ledger th:first-child { text-align: left; }
.rm-ledger thead th { border-block: 1px solid #a5ab97; font-size: .71rem; font-weight: 600; color: #535c50; }
.rm-ledger tbody th { font-weight: 400; }
#presale-lab { scroll-margin-top: 1rem; }
.presale-rule { min-width: 0; padding: 0; margin: 1rem 0 .3rem; border: 0; }
.presale-rule[hidden], .presale-original[hidden] { display: none; }
.presale-rule label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 650; }
.presale-code {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .55rem .8rem;
  background: #172e27;
  color: #faf8e9;
  font: .98rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
}
.presale-code code { font: inherit; }
.presale-code select {
  min-height: 40px;
  padding: .25rem;
  border: 1px solid #e8c88d;
  border-radius: 2px;
  background: #f9e8b9;
  color: #182c25;
  font: inherit;
  cursor: pointer;
}
.presale-run {
  min-height: 44px;
  margin-top: .55rem;
  padding: .5rem .85rem;
  border: 1px solid var(--forest);
  border-radius: 2px;
  background: var(--forest);
  color: white;
  font-weight: 650;
  font-size: .88rem;
  cursor: pointer;
}
.presale-run:hover { background: #102a21; }
.presale-code select:focus-visible, .presale-run:focus-visible { outline: 3px solid #c7632e; outline-offset: 3px; }
.rm-page .presale-result:not(:empty), .rm-page .presale-original:not([hidden]) {
  margin-top: .8rem;
  border-left: 3px solid var(--accent);
  padding-left: .75rem;
  font-size: .9rem;
}
.rm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.roadmap-home details { border: 0; padding: 0; }
.roadmap-home summary { cursor: pointer; color: var(--forest); }
.roadmap-home summary::marker { color: var(--accent); }
.rm-page .rm-answer { border-top: 1px solid #a5ab97; margin-top: .65rem; }
.rm-answer summary, .rm-steps summary { padding: .75rem 0; font-size: .88rem; font-weight: 650; }
.rm-answer p { margin: -.1rem 0 .3rem; color: #41493d; font-size: .9rem; }
.rm-exercise { background: #e9eadf; border-block: 1px solid var(--line); }
.rm-spread, .rm-practice, .rm-faq {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
  padding-block: clamp(3.3rem, 6vw, 5.5rem);
}
.rm-section-label { color: #753324; }
.rm-intro h2 { max-width: 12ch; margin: .8rem 0 1rem; }
.rm-intro > p:last-child { color: #465043; max-width: 37ch; }
.rm-steps { list-style: none; counter-reset: steps; margin: 0; padding: 0; }
.rm-steps li { position: relative; counter-increment: steps; padding: .9rem 0 1rem 2.7rem; border-top: 1px solid #b0b7a4; }
.rm-steps li::before { content: counter(steps) "."; position: absolute; top: .97rem; left: .1rem; font: italic 1.6rem/1 var(--display); color: var(--accent); }
.rm-steps h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.rm-steps li p { margin-top: .25rem; color: #414a3f; max-width: 52ch; }
.rm-steps details p { font-style: italic; }
.rm-steps summary { padding-bottom: 0; }
.rm-practice-list, .rm-resources ul { margin: 0; padding: 0; list-style: none; }
.rm-practice-list { border-top: 1px solid var(--line); }
.rm-practice-list li { border-bottom: 1px solid var(--line); }
.rm-practice-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; padding: 1.05rem .15rem 1.2rem; color: var(--ink); text-decoration: none; }
.rm-practice-list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.rm-meta { color: var(--forest); }
.rm-meta span { margin-left: .6rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rm-practice-list strong { grid-row: 2; font: 400 clamp(1.8rem, 2.7vw, 2.65rem)/1.05 var(--display); }
.rm-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; color: var(--accent); }
.rm-foundations { border-block: 1px solid var(--line); }
.rm-foundations[hidden] { display: none; }
.rm-resources { display: flex; gap: 1.5rem 2.1rem; align-items: baseline; justify-content: space-between; padding-block: 1.5rem; }
.rm-resources h2 { font-family: inherit; font-size: .94rem; font-weight: 600; line-height: 1.35; letter-spacing: normal; }
.rm-resources ul { display: flex; flex-wrap: wrap; gap: .45rem 1.55rem; align-items: baseline; }
.rm-resources li { font-size: .85rem; color: var(--muted); }
.rm-resources li b { margin-right: .17rem; color: var(--forest); font: 400 1.65rem/1 var(--display); }
.rm-faq h2 { font-size: clamp(2.7rem, 4vw, 3.7rem); }
.rm-faq details { border-top: 1px solid var(--line); }
.rm-faq details:last-child { border-bottom: 1px solid var(--line); }
.rm-faq summary { padding: 1rem 0; color: var(--ink); font-size: 1rem; }
.rm-faq details p { padding-bottom: 1rem; color: var(--muted); }
.rm-close { background: var(--forest); color: var(--paper); }
.rm-close .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.3rem, 5vw, 4.8rem); }
.rm-close h2 { max-width: 21ch; font-size: clamp(2.3rem, 4.2vw, 3.7rem); }
.rm-close .rm-button { background: var(--paper); color: var(--forest); border-color: var(--paper); flex: none; }
.rm-close .rm-button:hover { background: white; color: var(--ink); }
@media (max-width: 920px) {
  .rm-hero { gap: 2rem; grid-template-columns: 1fr 1fr; }
  .rm-spread, .rm-practice, .rm-faq { gap: 2.5rem; }
  .rm-folio-head { padding-bottom: .85rem; }
  .rm-resources { flex-wrap: wrap; gap: .5rem 1.3rem; }
}
@media (max-width: 720px) {
  .rm-hero, .rm-spread, .rm-practice, .rm-faq { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .rm-hero { padding-block: 2.2rem 2.5rem; }
  .rm-pitch h1 { font-size: clamp(3.35rem, 11.9vw, 5.15rem); margin: 1rem 0; }
  .rm-pitch { padding-top: 0; }
  .rm-pitch .rm-lead { max-width: 48ch; }
  .rm-actions { margin-top: 1.2rem; gap: 0 1rem; }
  .roadmap-home .rm-button { gap: .65rem; padding-inline: .9rem; }
  .roadmap-home .rm-folio { max-width: 530px; }
  .rm-folio-head span:first-child { font-size: 1.5rem; }
  .rm-page { padding: 1.25rem; }
  .rm-page h2 { font-size: clamp(2.35rem, 8.3vw, 3.25rem); }
  .rm-intro h2 { max-width: 17ch; }
  .rm-spread, .rm-practice, .rm-faq { padding-block: 2.75rem; }
  .rm-close .wrap { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
}
@media (max-width: 370px) {
  .rm-folio-head { align-items: start; }
  .rm-actions { gap: 0 1rem; }
  .roadmap-home .rm-button { padding-inline: .85rem; gap: .55rem; }
  .rm-page { padding: 1rem; }
  .rm-pitch h1 { font-size: 3.15rem; }
}

@media (max-width: 480px) {
  header nav .nav-family { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest); text-decoration: underline; }
  header nav .nav-cta { display: none; }
}
