/* The Blind Table. One column, left-aligned. The place card is the one loud thing. */
@font-face {
  font-family: Archivo;
  src: url("/static/fonts/Archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #15233F;
  --yellow: #F6C343;
  --pink: #E8577E;
  --fog: #EEF2F7;
  --paper: #FFFFFF;
  --quiet: #47536B;
  --edge: 1.25rem;
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--paper);
  padding: 0 var(--edge) 3rem;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) { :root { --edge: clamp(2.5rem, 9vw, 8rem); } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--yellow);
}

.vh, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* frame ------------------------------------------------------------------- */

.top { max-width: 64rem; padding: .75rem 0 .5rem; }
.brand {
  display: inline-flex; align-items: center; min-height: 3rem;
  font-stretch: 62%; font-weight: 800; font-size: 1.5rem; letter-spacing: .01em;
  text-decoration: none;
}

main { max-width: var(--measure); }
main > * + *, .legal > * + *, .share > * + *, .pitch > * + * { margin-top: 1rem; }

h1 {
  font-stretch: 62%; font-weight: 800; line-height: .96; letter-spacing: -.005em;
  font-size: clamp(2.75rem, 13vw, 4rem);
  margin-top: 1.25rem;
  text-wrap: balance;
}
h2 { font-stretch: 80%; font-weight: 700; font-size: 1.375rem; line-height: 1.18; }
h3 { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }

.lede { font-size: 1.25rem; line-height: 1.38; }

.foot {
  max-width: var(--measure); margin-top: 3.5rem; padding-top: .5rem;
  border-top: 3px solid var(--navy);
  display: flex; flex-wrap: wrap; column-gap: 1.5rem;
  font-size: .9375rem;
}
.foot a { display: inline-flex; align-items: center; min-height: 3rem; }

/* buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: .7rem 1.6rem;
  font: inherit; font-stretch: 80%; font-weight: 700; font-size: 1.25rem; line-height: 1.15;
  text-align: center; text-decoration: none;
  color: var(--navy); background: var(--yellow);
  border: 2px solid var(--navy); border-radius: 4px;
  cursor: pointer;
}
.button:hover { box-shadow: 4px 4px 0 var(--navy); }
.button:active { box-shadow: none; transform: translate(2px, 2px); }
.button:focus-visible { box-shadow: 0 0 0 8px var(--yellow); }
.button.plain { background: var(--paper); font-size: 1.0625rem; min-height: 3rem; }
@media (max-width: 30rem) { .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .button:active { transform: none; } }

/* the place card ---------------------------------------------------------- */

.card {
  background: var(--yellow);
  padding: clamp(1.25rem, 6vw, 2.25rem) clamp(1.25rem, 6vw, 2.5rem) clamp(1.5rem, 7vw, 2.75rem);
  margin-top: .75rem;
}
.card-for { font-stretch: 75%; font-weight: 600; font-size: clamp(1.25rem, 5.6vw, 1.75rem); line-height: 1.1; }
.card-names {
  font-stretch: 62%; font-weight: 800; line-height: .96; letter-spacing: -.005em;
  font-size: clamp(4.5rem, 27vw, 8.5rem);
  margin-top: .08em;
  overflow-wrap: anywhere;
}
.card-names.longer { font-size: clamp(3rem, 17vw, 6rem); }
.card-names.longest { font-size: clamp(2rem, 10.5vw, 4rem); }
.card-who { display: block; }
.blank {
  display: block; height: .74em; width: min(100%, 3.5em); margin-top: .16em;
  background: var(--navy); border-radius: .05em;
}

/* landing ----------------------------------------------------------------- */

.landing main { max-width: 64rem; }
.landing h1 {
  font-stretch: 80%; font-weight: 700; line-height: 1.1; letter-spacing: 0;
  font-size: clamp(1.875rem, 8vw, 2.75rem);
}
.pitch .button { margin-top: .5rem; }

.steps {
  list-style: none; padding: 0; margin-top: 2.5rem;
  counter-reset: step;
  display: grid; gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--navy); padding-top: .4rem;
  display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .25rem;
}
.steps li::before {
  content: counter(step);
  font-stretch: 62%; font-weight: 800; font-size: 2.25rem; line-height: 1;
  grid-row: span 2;
}
.steps h2 { font-stretch: 100%; font-size: 1.125rem; line-height: 1.25; align-self: end; }
.steps p { font-size: 1rem; }

.fine {
  list-style: none; padding: 0; margin-top: 2rem; max-width: var(--measure);
  font-size: .9375rem; line-height: 1.45; color: var(--quiet);
}
.fine li + li { margin-top: .4rem; }

@media (min-width: 56rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
  .hero .card { margin-top: 0; }
  .card-names { font-size: clamp(6rem, 13vw, 10.5rem); }
  .landing h1 { margin-top: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
  .steps li { display: block; }
  .steps li::before { display: block; margin-bottom: .3rem; }
}

/* the quiz ---------------------------------------------------------------- */

.intro h1 { font-size: clamp(2.25rem, 10.5vw, 3.25rem); }
.intro > * + * { margin-top: .6rem; }
.intro { margin-bottom: 1.75rem; }

.progress { display: grid; gap: .4rem; }
.count { font-stretch: 75%; font-weight: 600; font-size: 1.0625rem; }
.meter { display: flex; height: 1rem; background: var(--yellow); }
.seg { flex: 1; }
.seg.on { background: var(--navy); }

.ask {
  font-stretch: 80%; font-weight: 700; font-size: clamp(1.625rem, 7vw, 2.125rem); line-height: 1.12;
  margin-top: 1.5rem; text-wrap: balance;
}
.answers { display: grid; gap: .75rem; margin-top: 1.5rem; }
.answer {
  display: block; width: 100%; min-height: 4rem; padding: .85rem 1.1rem;
  font: inherit; font-size: 1.125rem; line-height: 1.3; text-align: left;
  color: var(--navy); background: var(--paper);
  border: 2px solid var(--navy); border-radius: 4px;
  cursor: pointer;
}
.answer:hover { background: var(--fog); }
.answer:active, .answer.chosen { background: var(--yellow); }
.answer.chosen { font-weight: 700; }
.aside { margin-top: 1.25rem; color: var(--quiet); font-size: 1rem; }
.back { margin-top: 1.5rem; }
.back a { display: inline-flex; align-items: center; min-height: 3rem; padding-right: 1rem; }

/* forms ------------------------------------------------------------------- */

form.about, form.ticks { margin-top: 1.75rem; }
.field { border: 0; padding: 0; min-width: 0; margin-top: 1.75rem; }
.field > label:not(.tick), .field > legend {
  display: block; padding: 0; font-weight: 700; font-size: 1.125rem; line-height: 1.3;
}
.optional { font-weight: 400; color: var(--quiet); }
.hint { color: var(--quiet); font-size: 1rem; line-height: 1.4; margin-top: .15rem; }

input:not([type=checkbox], [type=radio]), textarea, select {
  display: block; width: 100%; min-height: 3.25rem; padding: .6rem .8rem; margin-top: .45rem;
  font: inherit; font-size: 1.125rem; line-height: 1.3;
  color: var(--navy); background: var(--paper);
  border: 2px solid var(--navy); border-radius: 4px;
}
textarea { resize: vertical; }
::placeholder { color: #6B7690; opacity: 1; }
[aria-invalid=true] { border-color: var(--pink); border-width: 3px; }
.short input { max-width: 9rem; }

.trio, .pair { display: grid; gap: .75rem; margin-top: .3rem; }
.trio { grid-template-columns: 1fr 1fr 1.4fr; max-width: 19rem; }
.pair { grid-template-columns: 1fr 1fr; max-width: 13rem; }
.trio label, .pair label { font-size: 1rem; color: var(--quiet); }
.trio input, .pair input { margin-top: .15rem; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: .6rem; margin-top: .55rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .5rem .4rem;
  font-size: 1.125rem; line-height: 1.2; text-align: center;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 4px;
}
.choice input:hover + span { background: var(--fog); }
.choice input:checked + span { background: var(--yellow); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 8px var(--yellow); }

.tick {
  display: grid; grid-template-columns: 1.75rem 1fr; column-gap: .8rem; align-items: start;
  min-height: 3rem; padding: .55rem 0; margin-top: .6rem;
  line-height: 1.4; cursor: pointer;
}
.tick input {
  appearance: none; width: 1.75rem; height: 1.75rem; margin: 0;
  background: var(--paper); border: 2px solid var(--navy); border-radius: 4px;
  display: grid; place-content: center; cursor: pointer;
}
.tick input::before {
  content: ""; width: .95rem; height: .95rem; transform: scale(0);
  background: var(--navy);
  clip-path: polygon(13% 52%, 0 66%, 38% 100%, 100% 22%, 86% 9%, 37% 70%);
}
.tick input:checked { background: var(--yellow); }
.tick input:checked::before { transform: scale(1); }
.tick input[aria-invalid=true] { border-color: var(--pink); border-width: 3px; }
.tick span { padding-top: .12rem; }

.error {
  margin-top: .5rem; padding: .1rem 0 .1rem .7rem;
  border-left: 5px solid var(--pink);
  font-weight: 700; line-height: 1.35;
}
.notice { background: var(--fog); padding: .9rem 1rem; font-weight: 600; border-left: 5px solid var(--navy); }
.notice[role=alert] { border-left-color: var(--pink); }
form .button { margin-top: 2rem; }

/* legal text -------------------------------------------------------------- */

.legal h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
.legal h2, .legal h3 { margin-top: 2rem; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li + li { margin-top: .5rem; }
.legal .statement {
  font-weight: 800; font-size: 1.125rem; line-height: 1.3; letter-spacing: .01em;
  padding: 1rem 1.1rem; border: 3px solid var(--navy); background: var(--paper);
}
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-top: 1px solid var(--navy); }
.legal thead th { border-top: 0; border-bottom: 2px solid var(--navy); }
.legal td:first-child { font-weight: 700; width: 34%; }
.ticks { border-top: 3px solid var(--navy); padding-top: .75rem; }

/* you're in --------------------------------------------------------------- */

.in h1 { font-size: clamp(3.5rem, 17vw, 5rem); margin-top: 1.5rem; }
.share { margin-top: 2.5rem; padding: 1.25rem 1.25rem 1.5rem; background: var(--fog); }
.share-url { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; user-select: all; }
.share-done { font-weight: 600; min-height: 1.5em; }
