:root {
  --ink: #14213d;
  --blue: #1f4e8c;
  --wash: #eef2f8;
  --paper: #ffffff;
  --gold: #f2b134;
  --mute: #5b667a;
  --rule: #cfd7e3;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem; z-index: 2; }

h1, h2, .brand, .board thead th, .mode-row th, dt, .btn, .card-line { font-family: var(--display); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.75rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.25rem; max-width: 18ch; }
h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; margin: 2.5rem 0 0.75rem; }
p, ul, ol, dl { max-width: var(--measure); margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.top { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; justify-content: space-between; padding: 1rem clamp(1rem, 5vw, 4rem); background: var(--blue); }
.top a { color: #fff; text-decoration: none; }
.top a:hover { text-decoration: underline; color: #fff; }
.brand { font-weight: 700; font-size: 1.2rem; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-family: var(--display); font-size: 1rem; }

.hero { background: var(--blue); color: #fff; padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.3rem; line-height: 1.5; }
.hero .status { border-left: 4px solid var(--gold); padding-left: 1rem; font-size: 1rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 4px; text-decoration: none; }
.btn:hover { background: #fff; color: var(--ink); }
.btn-quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.band .btn:hover { background: var(--ink); color: #fff; }

.band { padding: 0.5rem clamp(1rem, 5vw, 4rem) 1.5rem; }
.band:nth-of-type(even) { background: var(--wash); }
.band.first { padding-top: clamp(1.5rem, 5vw, 3.5rem); background: var(--paper); }
.band.first h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 24ch; }

/* The rubric marks: the one visual idea on the site. */
.marks { display: inline-flex; gap: 0.3rem; vertical-align: middle; }
.mark { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); flex: none; }
.mark-yes { background: var(--gold); }
.mark-partly { background: linear-gradient(90deg, var(--gold) 50%, var(--paper) 50%); }
dt .mark { margin-right: 0.5rem; vertical-align: -0.1em; }
.legend { font-size: 0.95rem; color: var(--mute); }
.legend .marks { margin-right: 0.5rem; }

.rubric, .modes { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); max-width: 62rem; }
.rubric dt, .modes dt { font-weight: 700; font-size: 1.2rem; }
.rubric dd, .modes dd { margin: 0.2rem 0 0; }
.rubric.answers { grid-template-columns: 1fr; max-width: var(--measure); }
.q { color: var(--mute); font-style: italic; }

.board { width: 100%; max-width: 62rem; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.board th, .board td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.board thead th { font-size: 0.95rem; font-weight: 500; color: var(--mute); border-bottom: 2px solid var(--ink); }
.board tbody th { font-weight: 600; width: 32%; }
.board td:last-child { white-space: nowrap; width: 5.5rem; }
.mode-row th { font-size: 1.05rem; font-weight: 700; padding-top: 1.4rem; border-bottom: 2px solid var(--ink); }
.open { font-size: 1rem; }
.tag { display: inline-block; font: 500 0.8rem/1 var(--display); background: var(--ink); color: #fff; padding: 0.25rem 0.45rem; border-radius: 3px; white-space: nowrap; }

.problem .crumb, .meta, .shelf { font-size: 0.95rem; color: var(--mute); }
.note { border-left: 4px solid var(--gold); padding-left: 1rem; }
.sources li { overflow-wrap: anywhere; }

.share { max-width: var(--measure); border: 2px solid var(--ink); border-radius: 6px; padding: 1.25rem; background: var(--paper); }
.card-line { font-size: 1.35rem; line-height: 1.25; font-weight: 700; margin-bottom: 1rem; }
.share-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; font-family: var(--display); font-size: 1rem; }
.share-links button { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

.foot { padding: 2rem clamp(1rem, 5vw, 4rem); background: var(--ink); color: #dfe5ee; font-size: 1rem; }
.foot a { color: #fff; }
.foot p { margin-bottom: 0.5rem; }

@media (max-width: 40rem) {
  .board thead { display: none; }
  .board tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
  .board th, .board td { display: block; width: auto !important; border: 0; padding: 0.1rem 0; }
  .mode-row { border-bottom: 2px solid var(--ink) !important; }
}

.plate { margin: 1.5rem 0; max-width: var(--measure); }
.plate img { display: block; max-width: 100%; max-height: 34rem; width: auto; height: auto; border: 2px solid var(--ink); }
.plate figcaption { font-size: 0.9rem; color: var(--mute); margin-top: 0.4rem; }
