/* Homepage handbook */
.handbook {
  --rule: #bdb8ad;
  --rust: #963321;
  max-width: 1080px;
  padding-bottom: 38px;
  font-size: 1rem;
  line-height: 1.55;
}
.handbook :is(h2, h3, p, dl, dd) { margin: 0; }
.handbook h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}
.handbook h3 { font-size: 1.25rem; line-height: 1.18; }
.handbook p, .handbook dd { max-width: 63ch; text-wrap: pretty; }
.handbook code { font-size: .89em; overflow-wrap: anywhere; }
.handbook a:hover { color: var(--rust); }
.chapter-nav { padding: 13px 0; gap: 4px 24px; border-bottom: 1px solid var(--rule); }
.chapter-nav a { padding: 5px 0; }
.handbook-guides, .release-section { padding: clamp(23px, 3vw, 36px) 0; }
.handbook-guides h2 { font-size: clamp(2.3rem, 5vw, 3.65rem); }
.handbook-index, .release-grid, .chapter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 50px);
}
.handbook-index { margin-top: 18px; align-items: stretch; }
.handbook-index a { color: inherit; text-decoration: none; }
.handbook-index a:hover h3, .handbook-index a:focus-visible h3 { text-decoration: underline; }
.lead-story { display: grid; align-content: start; gap: 11px; }
.lead-story img { width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; object-position: 50% 55%; display: block; }
.handbook-index h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.handbook-index p { margin-top: 5px; color: #494744; }
.story-list { border-top: 3px solid var(--rust); }
.story-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.story-list span { color: var(--rust); font-size: 1.35rem; }
.release-section, .chapter-pair, .handbook-faq { border-top: 2px solid #403e39; }
.release-grid { margin-top: 17px; }
.release-grid h3 { margin-bottom: 9px; }
.platform-list > div { padding: 9px 0; border-top: 1px solid var(--rule); }
.platform-list dt, .race-notes dt { font-weight: 700; }
.platform-list dt code { margin-left: 6px; color: #655b52; }
.platform-list dd, .race-notes dd { margin-top: 3px; }
.release-source iframe { display: block; width: 100%; max-width: 552px; height: 171px; border: 0; margin: 12px 0 7px; }
.handbook .version-note { max-width: none; color: #56514b; font-size: .85rem; margin-top: 16px; }
.chapter-pair { padding: 24px 0; }
.chapter-pair > section { min-width: 0; }
.chapter-pair > section + section { border-left: 1px solid var(--rule); padding-left: clamp(16px, 2.8vw, 34px); }
.chapter-pair h2 { margin-bottom: 12px; }
.race-notes dt { margin-top: 12px; }
.chapter-pair section > a, .release-source > a { display: inline-block; margin-top: 10px; font-weight: 650; font-size: .92rem; }
.lobby-steps { padding-left: 1.55em; margin: 12px 0; }
.lobby-steps li { padding: 3px 0 3px 3px; }
.lobby-steps li::marker { font-weight: 700; color: var(--rust); }
.handbook .pit-note { border-left: 3px solid var(--rust); padding-left: 12px; }
.handbook table { border-collapse: collapse; width: 100%; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.handbook caption { text-align: left; color: #56514b; font-size: .9rem; }
.handbook th, .handbook td { padding: 7px 5px; border-bottom: 1px solid var(--rule); text-align: right; }
.handbook th:first-child { text-align: left; padding-left: 0; }
.handbook thead { color: #514c46; font-size: .86rem; }
.handbook kbd { font: 600 .85em Consolas, monospace; border: 1px solid var(--rule); padding: 0 .25em; }
.handbook-faq { padding-top: 24px; }
.handbook-faq h2 { margin-bottom: 14px; }
@media (max-width: 700px) {
  .handbook-index, .release-grid, .chapter-pair { grid-template-columns: 1fr; gap: 18px; }
  .chapter-nav { gap: 2px 14px; }
  .lead-story img { aspect-ratio: 2.2; }
  .story-list a { padding: 13px 0; }
  .chapter-pair > section + section { border-left: none; border-top: 1px solid var(--rule); padding: 18px 0 0; }
}
