:root {
  --blue: #0a2cca;
  --orange: #ff6400;
  --ink: #152447;
  --muted: #53617a;
  --line: #d8dfeb;
  --paper: #f7f8fc;
  --pale: #edf1fa;
  --white: #fff;
  font: 16px/1.5 Arial,Helvetica,sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button,input {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a {
  color: var(--blue);
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {
  outline: 3px solid #cf5700;
  outline-offset: 4px;
}

::selection {
  background: #ffcfaa;
  color: #101d48;
}

h1,h2,h3,p {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.1;
}

button {
  color: inherit;
}

.wrap {
  width: min(1120px,calc(100% - 72px));
  margin-inline: auto;
}

.head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.head-inner,.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.head-inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.25px;
  text-decoration: none;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
  font: normal 11px/1.3 Arial,sans-serif;
  letter-spacing: 0;
  margin-top: 1px;
}

.brand img {
  width: 38px;
  height: 38px;
}

.edition,.eyebrow,.micro,.pill,.art-caption,.screen-count,.badge {
  font-family: "Courier New",monospace;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edition {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #455774;
  font-size: 11px;
}

.edition b {
  color: #9aa8bc;
}

.edition-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--orange);
}

main {
  flex: 1;
  padding: 44px 0 42px;
}

main:focus {
  outline: 0;
}

.foot {
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-inner {
  min-height: 62px;
  font-size: 13px;
  color: var(--muted);
}

.parody {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.parody i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  flex: none;
}

.text-button,.link {
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: var(--blue);
  font-weight: bold;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #a7b5e7;
  text-underline-offset: 4px;
}

.text-button:hover,.link:hover {
  text-decoration-color: var(--blue);
}

.text-button span {
  margin-left: 4px;
}

.skip {
  position: absolute;
  z-index: 5;
  left: 10px;
  top: -80px;
  padding: 10px;
  background: white;
}

.skip:focus {
  top: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  align-items: center;
  column-gap: clamp(30px,5vw,86px);
}

.hero-copy {
  padding: 16px 0;
}

.eyebrow {
  font-size: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  flex: none;
}

.hero h1 {
  font-size: clamp(60px,6.3vw,92px);
  font-weight: 800;
  letter-spacing: -.074em;
  line-height: .98;
  margin: 22px 0 18px;
}

.hero h1 span {
  color: var(--blue);
}

.intro {
  font-size: clamp(17px,1.4vw,20px);
  line-height: 1.5;
  color: #41526e;
  max-width: 480px;
  text-wrap: pretty;
}

.start-actions,.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.start-actions {
  margin-top: 27px;
}

.primary,.secondary,.choice {
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
}

.primary {
  color: white;
  background: var(--blue);
  padding: 14px 21px;
  min-height: 50px;
  box-shadow: 0 2px 0 rgba(14,28,85,.12);
}

.primary:hover {
  background: #0622a5;
}

.primary span {
  font-size: 21px;
  line-height: 1;
}

.primary:disabled {
  opacity: .6;
}

.secondary {
  background: white;
  color: var(--blue);
  border-color: #bac6e6;
  padding: 11px 17px;
}

.secondary:hover,.choice:hover,.review:hover {
  background: #edf2fc;
}

.hero-art {
  margin: 0;
  border: 1px solid #b9c8df;
  border-radius: 9px;
  overflow: hidden;
  background: #e1e9f0;
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560/430;
}

.art-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f3f8;
  border-top: 1px solid #becbdf;
  color: #405576;
  font-size: 10px;
}

.art-caption strong {
  color: var(--blue);
}

.art-label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.art-label::before {
  content: "";
  width: 13px;
  height: 3px;
  background: var(--orange);
}

.facts {
  margin: 34px 0 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.fact {
  padding: 19px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.fact+.fact {
  border-left: 1px solid var(--line);
}

.symbol {
  background: #edf1ff;
  color: var(--blue);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
}

.symbol svg {
  width: 22px;
  height: 22px;
}

.fact strong,.fact small {
  display: block;
}

.fact strong {
  font-size: 17px;
  letter-spacing: -.025em;
}

.fact small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.source-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px;
}

.source-promo p {
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}

.source-promo p strong {
  color: var(--ink);
}

.flow {
  max-width: 860px;
  margin: 0 auto;
}

.flow-top,.result-top,.q-bottom,.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.screen-count,.micro {
  font-size: 11px;
  color: var(--muted);
}

.progress {
  margin: 12px 0 24px;
  height: 5px;
  overflow: hidden;
  background: #dce3f2;
  border-radius: 5px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 15px #172d5b05;
}

.question {
  padding: clamp(24px,4vw,52px);
}

.pill,.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  background: #edf1ff;
  color: var(--blue);
  font-size: 11px;
}

.question h1,.page-title {
  font-size: clamp(30px,3.6vw,49px);
  letter-spacing: -.055em;
  line-height: 1.1;
  text-wrap: pretty;
}

.question h1 {
  margin: 18px 0 30px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  gap: 12px;
}

.choice {
  padding: 13px 10px;
  background: white;
  border-color: #bcc9dd;
  color: var(--ink);
  font-size: 17px;
  min-height: 57px;
}

.choice .ico {
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  background: #edf1fc;
  color: var(--blue);
  font-weight: bold;
}

.choice[data-code="E"] .ico {
  color: #126b52;
  background: #e6f4ec;
}

.choice[data-code="O"] .ico {
  color: #9b3a31;
  background: #fbecea;
}

.choice[aria-pressed="true"] {
  background: #edf1ff;
  border: 2px solid var(--blue);
}

.q-bottom {
  margin-top: 16px;
}

.quiet {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: bold;
  font-size: 14px;
  padding: 8px 0;
}

.quiet:hover {
  color: var(--blue);
}

.detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
}

.detail>summary {
  cursor: pointer;
  padding: 14px 18px;
  color: var(--blue);
  font-weight: 700;
}

.detail[open]>summary {
  border-bottom: 1px solid var(--line);
}

.detail-inner {
  padding: 5px 18px 10px;
}

.stance {
  padding: 11px 0;
}

.stance+.stance {
  border-top: 1px solid var(--line);
}

.stance-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.stance-head strong {
  font-weight: 800;
  min-width: 39px;
}

.stance-head small {
  color: var(--muted);
  font-size: 12px;
}

.stance p {
  margin-top: 4px;
  font-size: 14px;
  color: #43536a;
}

.badge {
  font: 700 12px Arial;
  text-transform: none;
  letter-spacing: normal;
  color: #354a72;
  background: #edf1f7;
}

.badge.e {
  color: #14644d;
  background: #e5f3ed;
}

.badge.o {
  color: #934239;
  background: #f9eae7;
}

.page-title {
  margin: 12px 0;
}

.lead {
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 22px;
}

.weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 20px;
}

.weight-option {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  cursor: pointer;
}

.weight-option:has(:checked) {
  border-color: var(--blue);
  background: #eff3ff;
}

.weight-option input {
  accent-color: var(--blue);
  height: 18px;
  width: 18px;
  flex: none;
}

.weight-option small {
  font: 12px "Courier New",monospace;
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.score {
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
}

.rank {
  color: var(--blue);
  background: #edf1ff;
  font: bold 15px "Courier New",monospace;
  border-radius: 5px;
  padding: 8px 0;
  text-align: center;
}

.score h2 {
  font-size: 21px;
}

.score h2 small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.score-line {
  background: #e8edf5;
  margin-top: 8px;
  height: 5px;
  border-radius: 9px;
  overflow: hidden;
}

.score-line span {
  display: block;
  background: var(--blue);
  height: 100%;
}

.score-value {
  text-align: right;
}

.score-value strong,.score-value small {
  display: block;
}

.score-value strong {
  font-size: 23px;
  line-height: 1.2;
}

.score-value small {
  font-size: 12px;
  color: var(--muted);
}

.results-detail {
  margin-top: 26px;
}

.results-detail h2 {
  font-size: 24px;
  letter-spacing: -.045em;
}

.result-summary small {
  display: block;
  font-weight: normal;
  color: var(--muted);
  margin: 3px 0 0 15px;
}

.empty {
  padding: 24px;
  margin: 18px 0;
}

.empty p {
  margin: 7px 0;
}

.modal-body {
  padding: clamp(22px,4vw,36px);
  position: relative;
}

.modal-body h2 {
  letter-spacing: -.045em;
  font-size: 32px;
  margin: 13px 22px 16px 0;
}

.modal-body h3 {
  margin: 19px 0 6px;
}

.modal-body p {
  margin: 10px 0;
  color: #40516d;
}

.modal-body a {
  text-underline-offset: 3px;
}

dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  width: min(620px,calc(100% - 28px));
  max-height: 85dvh;
  box-shadow: 0 24px 80px #101e4f38;
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: #101b3a9c;
}

.close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: white;
  font-size: 23px;
  line-height: 1;
}

.signup-body form {
  display: grid;
  gap: 7px;
}

.signup-body form label {
  font-weight: bold;
}

.signup-body input {
  border: 1px solid #aebad0;
  border-radius: 6px;
  padding: 10px;
}

.signup-body input+label {
  margin-top: 6px;
}

.signup-body form[hidden] {
  display: none;
}

.signup-body .primary {
  justify-self: start;
}

.fine {
  font-size: 13px;
}

.signup-body #mail-status:not(:empty) {
  font-weight: bold;
  color: var(--blue);
}

@media(max-width:850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    column-gap: 24px;
    min-height: 360px;
  }
  .hero h1 {
    font-size: clamp(53px,7.8vw,66px);
  }
  .fact {
    padding: 15px 13px;
    gap: 10px;
  }
  .start-actions {
    gap: 12px;
  }
  .intro {
    font-size: 17px;
  }
  .art-caption {
    font-size: 9px;
  }
}

@media(max-width:680px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .head-inner {
    min-height: 61px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
    letter-spacing: -.8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .edition {
    font-size: 9px;
    gap: 5px;
    letter-spacing: .02em;
  }
  .edition-dot {
    width: 5px;
    height: 5px;
  }
  main {
    padding: 24px 0 28px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .hero-copy {
    padding: 2px 0;
  }
  .hero h1 {
    font-size: clamp(56px,10vw,68px);
    margin: 14px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 span::before {
    content: " ";
  }
  .hero-art {
    max-width: 100%;
  }
  .hero-art img {
    aspect-ratio: 1.65;
    object-fit: cover;
    object-position: 50% 26%;
  }
  .start-actions {
    margin-top: 17px;
  }
  .facts {
    margin: 18px 0 8px;
  }
  .fact {
    display: block;
    padding: 12px 9px;
  }
  .fact strong {
    font-size: 14px;
  }
  .fact small {
    font-size: 12px;
  }
  .symbol {
    width: 26px;
    height: 26px;
    margin-bottom: 5px;
  }
  .symbol svg {
    width: 16px;
    height: 16px;
  }
  .source-promo {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .foot-inner {
    flex-wrap: wrap;
    padding: 13px 0;
    gap: 5px 14px;
  }
  .parody {
    font-size: 12px;
  }
  .foot .text-button {
    font-size: 12px;
  }
  .question {
    padding: 21px 16px;
  }
  .question h1 {
    margin: 15px 0 23px;
  }
  .choices {
    gap: 7px;
  }
  .choice {
    flex-direction: column;
    gap: 5px;
    padding: 9px 3px;
    line-height: 1.18;
    font-size: 14px;
  }
  .choice .ico {
    width: 22px;
    height: 22px;
  }
  .weight-grid {
    grid-template-columns: 1fr;
  }
  .screen-count {
    font-size: 10px;
  }
  .q-bottom {
    margin-top: 10px;
  }
  .row-head,.result-top {
    align-items: flex-start;
  }
  .result-top {
    flex-direction: column;
    gap: 5px;
  }
  .score {
    padding: 13px 10px;
    gap: 9px;
    grid-template-columns: 30px 1fr auto;
  }
  .score-value strong {
    font-size: 19px;
  }
  .score-value small {
    font-size: 11px;
  }
  .modal-body h2 {
    font-size: 27px;
  }
}

@media(max-width:440px) {
  .brand small {
    font-size: 9px;
  }
  .edition {
    font-size: 9px;
    flex-wrap: wrap;
    max-width: 80px;
    justify-content: flex-end;
    line-height: 1.2;
  }
  .edition-dot,.edition b {
    display: none;
  }
}

@media(max-width:365px) {
  .edition {
    font-size: 8px;
  }
  .wrap {
    width: calc(100% - 24px);
  }
  .art-caption {
    padding: 8px;
  }
  .question h1 {
    font-size: 27px;
  }
  .source-promo .text-button {
    font-size: 13px;
  }
}
