@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --band: #eef1f5;
  --ink: #1c1c1c;
  --graphite: #5d6470;
  --rule: #dadfe6;
  --pen: #2446d8;
  --pen-dark: #1a35a8;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}

.logo { display: block; width: 8.5rem; height: auto; }

.langs { display: flex; gap: 0.25rem; }

.langs button {
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: none;
  color: var(--graphite);
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); }
.langs button:hover { color: var(--ink); }

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  padding: clamp(2.5rem, 10vh, 7rem) var(--gutter) 4rem;
}

/* The one memorable element: a row of an answer sheet, with C marked in pen. */
.answer { display: flex; gap: 0.75rem; margin-bottom: 2rem; }

.bubble {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--rule);
  border-radius: 50%;
  color: var(--graphite);
  font-size: 1rem;
  font-weight: 700;
}
.bubble.is-marked {
  border-color: var(--pen);
  background: var(--pen);
  color: var(--paper);
  animation: mark 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 250ms both;
}
@keyframes mark {
  from { background: var(--paper); color: var(--graphite); transform: scale(0.92); }
  to { background: var(--pen); color: var(--paper); transform: scale(1); }
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.lead { margin: 0 0 2.25rem; max-width: var(--measure); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--band); }
.button.primary { border-color: var(--pen); background: var(--pen); color: var(--paper); }
.button.primary:hover { border-color: var(--pen-dark); background: var(--pen-dark); }

.note {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  color: var(--graphite);
  font-size: 1rem;
}
.host { color: var(--ink); white-space: nowrap; }

.foot {
  padding: 1.25rem var(--gutter);
  background: var(--band);
  color: var(--graphite);
  font-size: 0.9375rem;
}
.foot p { margin: 0; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

[hidden] { display: none !important; }

@media (max-width: 30rem) {
  .actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble.is-marked { animation: none; }
}
