:root {
  --ink: #14171c;
  --paper: #ffffff;
  --board: #f2f0eb;
  --rule: #c9c4b8;
  --red: #b03a2e;
  --util: #4d5560;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 16px/1.62 Arial, Helvetica, "Liberation Sans", sans-serif;
}
.board {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
a { color: #7d2b21; }
a:focus-visible, .anchor-strip a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
h1, h2, h3 { font-weight: bold; line-height: 1.22; margin: 0 0 12px; }
p { margin: 0 0 16px; max-width: 66ch; }

/* banner ---------------------------------------------------------------- */
.board-banner {
  background: var(--ink);
  color: #f6f4ef;
  padding: 28px 24px 24px;
  border-bottom: 4px solid var(--red);
}
.board-banner .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 32px;
  justify-content: space-between;
}
.wordmark {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: 44px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.standing { margin: 10px 0 0; font-size: 17px; font-weight: normal; color: #dcd8d0; max-width: 48ch; }
h1.standing { font-size: 24px; color: #f2f0eb; max-width: 40ch; }
.scope {
  margin: 6px 0 0;
  font: 12px/1.5 Consolas, "DejaVu Sans Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a49c;
}
.badge {
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  min-width: 120px;
  text-align: center;
}
.badge .n {
  display: block;
  font-family: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
  font-size: 46px;
  font-weight: bold;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.badge .l {
  display: block;
  font: 11px/1.4 Consolas, "DejaVu Sans Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.board-banner.compact { padding: 18px 24px 16px; }
.board-banner.compact .wordmark { font-size: 28px; }
.board-banner.compact .standing { font-size: 14px; }

/* anchors --------------------------------------------------------------- */
.anchor-strip {
  display: flex;
  flex-wrap: wrap;
  background: #22272e;
  border-bottom: 1px solid var(--rule);
}
.anchor-strip a {
  display: block;
  height: 42px;
  line-height: 42px;
  padding: 0 20px;
  color: #f2f0eb;
  text-decoration: none;
  font: bold 13px/42px Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid #3a4049;
}
.anchor-strip a:hover { background: var(--red); }

/* sections -------------------------------------------------------------- */
section, .sheet { padding: 32px 24px; border-bottom: 1px solid var(--rule); }
section > h2, .sheet > h1 { scroll-margin-top: 16px; }
h2 { font-size: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
h3 { font-size: 18px; }
.hall {
  font: 12px/1.4 Consolas, "DejaVu Sans Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--util);
  margin: 0 0 8px;
}
.flow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
figure { margin: 0 0 20px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
figcaption {
  font: 13px/1.5 Consolas, "DejaVu Sans Mono", monospace;
  color: var(--util);
  padding-top: 8px;
}

/* fact panel ------------------------------------------------------------ */
.fact-panel { border: 2px solid var(--ink); padding: 16px 18px; background: #fbfaf7; align-self: start; }
.fact-panel h2 { font-size: 18px; border-bottom: 1px solid var(--rule); }
.fact-panel dl { margin: 0; font-size: 15px; }
.fact-panel dt {
  font: bold 12px/1.5 Consolas, "DejaVu Sans Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--util);
  margin-top: 12px;
}
.fact-panel dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--util); margin-top: 16px; }

/* guide rows ------------------------------------------------------------ */
.guide-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.guide-row:first-of-type { border-top: 2px solid var(--ink); }
.guide-row img { display: block; width: 200px; height: 150px; border: 1px solid var(--rule); }
.guide-row h3 { margin-bottom: 6px; font-size: 20px; }
.guide-row h3 a { text-decoration: none; }
.guide-row h3 a:hover { text-decoration: underline; }
.spec {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  font: 13px/1.6 Consolas, "DejaVu Sans Mono", monospace;
}
.spec dt { color: var(--util); text-transform: uppercase; letter-spacing: 0.08em; }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }

/* anatomy panel --------------------------------------------------------- */
.anatomy { margin-top: 28px; border: 1px solid var(--rule); border-left: 6px solid var(--red); padding: 16px 18px; background: #fbfaf7; }
.anatomy h3 { margin-bottom: 8px; }
.anatomy ol { margin: 0; padding-left: 20px; font-size: 15px; }
.anatomy li { margin-bottom: 6px; }

/* tables ---------------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 0 0 8px; max-width: 100%; }
.tablewrap table { min-width: 520px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 15px; }
caption {
  text-align: left;
  font: 13px/1.5 Consolas, "DejaVu Sans Mono", monospace;
  color: var(--util);
  padding-bottom: 8px;
}
th, td { border: 1px solid var(--rule); padding: 9px 11px; text-align: left; vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
tbody th { background: #fbfaf7; font-weight: bold; }
.stage-no {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--red);
  color: #fff;
  text-align: center;
  line-height: 26px;
  font: bold 14px/26px Consolas, "DejaVu Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.schedule td:first-child { width: 58px; }

/* stage list ------------------------------------------------------------ */
ol.stages { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: st; }
ol.stages li {
  counter-increment: st;
  border-top: 1px solid var(--rule);
  padding: 14px 0 14px 46px;
  position: relative;
  max-width: 66ch;
}
ol.stages li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 14px;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font: bold 14px/30px Consolas, "DejaVu Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
}
ol.stages b { display: block; font-size: 17px; margin-bottom: 2px; }

/* rail ------------------------------------------------------------------ */
.rail { font-size: 15px; align-self: start; position: sticky; top: 16px; }
@media (max-width: 900px) { .rail { position: static; } }
.rail .marker { display: block; width: 18px; height: 18px; background: var(--red); margin-bottom: 12px; }
.rail h2 { font-size: 16px; border-bottom: 1px solid var(--rule); }
.rail ul { margin: 0 0 20px; padding-left: 18px; }
.rail li { margin-bottom: 6px; }

/* lists and links ------------------------------------------------------- */
.linkcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.linkcols h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }
.linkcols ul, .plain { margin: 0; padding-left: 18px; font-size: 15px; }
.plain li { margin-bottom: 8px; max-width: 66ch; }
dl.glossary { margin: 0; }
dl.glossary dt { font-weight: bold; border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 12px; }
dl.glossary dd { margin: 4px 0 0; max-width: 66ch; }

/* footer ---------------------------------------------------------------- */
.board-footer { background: var(--ink); color: #d6d2ca; padding: 28px 24px; border-bottom: 0; }
.board-footer a { color: #e8e4dc; }
.board-footer .wordmark { font-size: 24px; margin-bottom: 14px; }
.board-footer h3 { color: #ffffff; }
.board-footer .scope { margin-top: 18px; }
.byline {
  margin: 10px 0 0;
  font: 12px/1.6 Consolas, "DejaVu Sans Mono", monospace;
  color: #a8a49c;
}

/* breakpoints ----------------------------------------------------------- */
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .linkcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wordmark { font-size: 34px; }
  .board-banner .inner { display: block; }
  .badge { display: inline-block; margin-top: 16px; }
}
@media (max-width: 620px) {
  section, .sheet, .board-banner, .board-footer { padding-left: 16px; padding-right: 16px; }
  .guide-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .guide-row img { width: 100%; height: auto; }
  .spec { grid-template-columns: 84px minmax(0, 1fr); }
  .linkcols { grid-template-columns: minmax(0, 1fr); }
  .schedule, .schedule thead, .schedule tbody, .schedule tr, .schedule td, .schedule th { display: block; }
  .schedule thead { display: none; }
  .schedule tr { border: 1px solid var(--rule); margin-bottom: 12px; }
  .schedule td, .schedule th { border: 0; border-bottom: 1px solid var(--rule); padding: 8px 12px; }
  .schedule td:last-child { border-bottom: 0; }
  .schedule td::before {
    content: attr(data-label);
    display: block;
    font: 11px/1.5 Consolas, "DejaVu Sans Mono", monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--util);
  }
  .wordmark { font-size: 28px; }
  h2 { font-size: 21px; }
}
