:root {
  color: #241039;
  background: #fffcf4;
  font: 1rem/1.55 Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .19em; }
a:focus-visible { outline: 3px solid #b38923; outline-offset: 4px; }
.wrap { width: min(1100px, 92%); margin-inline: auto; }
header, footer { color: #fff; background: #241039; }
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  padding-block: .65rem;
}
nav a:first-child { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.intro {
  color: #fff9e9;
  background: linear-gradient(120deg, #241039, #4b0082);
  padding-block: clamp(2.4rem, 6vw, 5rem);
}
h1 { max-width: 20ch; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.08; margin: 0; }
.intro p, .map > p { max-width: 72ch; }
.question { color: #f1d879; font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.3; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-block: 1.5rem; }
.button { background: #e2c963; color: #241039; font: 700 1rem/1.35 Arial, sans-serif; padding: .9rem 1.15rem; text-decoration: none; }
.next-step { margin-bottom: 0; }
.map { padding-block: 2.75rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
caption { text-align: left; padding-block: .6rem; font-weight: 700; }
th, td { border: 1px solid #d9cb91; padding: .7rem; text-align: left; vertical-align: top; }
thead { background: #4b0082; color: #fff; }
tbody tr:nth-child(even) { background: #faf6e8; }
footer { padding-block: 1rem; }
@media screen and (max-width: 640px) {
  table, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr + tr { margin-top: .75rem; }
  tbody th::before { content: "Grade "; }
  td::before { content: attr(data-label); display: block; font-weight: 700; }
  tbody tr > * + * { border-top: 0; }
}
@media print {
  @page { size: letter landscape; margin: .5in; }
  header, footer, .intro p, .actions, .map-links { display: none; }
  .intro, .map { color: #241039; background: #fff; padding-block: 0; }
  .wrap { width: 100%; }
  h1 { max-width: none; font-size: 23pt; margin-bottom: .2in; }
  h2 { font-size: 18pt; }
  thead { color: #241039; background: #eee; }
  tr { break-inside: avoid; }
}
