/* Brackets' palette and type: see docs/brand.md. */

@font-face {
  font-family: 'Archivo';
  src: url("fonts/archivo.57ba47cca037.woff2") format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --purple: #7768ae;
  --tint: #faf4ff;
  --red: #ff5554;
  --blue: #4494dc;
  --gold: #e1bc29;
  --gold-edge: #a88a12;
  --ink: #1f1836;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--purple);
  color: var(--tint);
  font-family: 'Archivo', system-ui, sans-serif;
}

a {
  color: var(--tint);
}
a:hover {
  color: #ffffff;
}

.display {
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.label {
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* The front page: one screen. */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 16px;
  text-align: center;
}

.icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 12px 30px rgba(31, 24, 54, 0.3);
}

.wordmark {
  margin: 0;
  font-size: 96px;
}

.line {
  margin: 0;
  max-width: 420px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.now {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border-radius: 16px;
  /* Equal red and blue stripes, top and bottom, like the open round's slab
     in the app: neither side gets more. */
  background: linear-gradient(
    var(--red) 0 8px,
    var(--ink) 8px calc(100% - 8px),
    var(--blue) calc(100% - 8px)
  );
}

.now .label {
  font-size: 14px;
  color: var(--gold);
}
.now .name {
  margin: 0;
  font-size: 44px;
  line-height: 0.9;
}
.now .state {
  font-size: 18px;
  font-weight: 700;
}

.cta {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 16px;
  background: var(--gold);
  box-shadow: 0 6px 0 var(--gold-edge);
  color: var(--ink);
  font-size: 24px;
  text-decoration: none;
}

.cta:hover {
  background: #eac93c;
  color: var(--ink);
}

.links {
  display: flex;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
}

/* Privacy and support: a page of reading. */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.page header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.page header a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.page header img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.page header span {
  font-size: 34px;
}

.page h1 {
  margin: 0 0 12px;
  font-size: 72px;
}
.page .updated {
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 600;
}

.page h2 {
  margin: 48px 0 12px;
  font-size: 40px;
}

.page p,
.page li {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
}

.page ul {
  padding-left: 1.2em;
}
.page li + li {
  margin-top: 8px;
}
.page strong {
  font-weight: 800;
}

.page footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 2px solid rgba(250, 244, 255, 0.3);
}

/* A shared recap: the app's recap cards, one under another. */

.recap {
  --purple-deep: #5b4e90;
  max-width: 480px;
  margin: 0 auto;
}

.recap p,
.recap h1,
.recap h2,
.recap dl,
.recap dd,
.recap ul,
.recap ol {
  margin: 0;
  padding: 0;
}

.recap .label {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.recap .words {
  font-size: 17px;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.35;
}

.recap-header a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  text-decoration: none;
}
.recap-header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.recap-header span {
  font-size: 28px;
}

.panel {
  position: relative;
  padding: 56px 24px 48px;
  overflow: hidden;
}

/* Red over blue, split by an ink line, with the VS slab on it. */
.intro {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 560px;
  padding: 0;
  background: linear-gradient(
    var(--red) 0 calc(50% - 4px),
    var(--ink) calc(50% - 4px) calc(50% + 4px),
    var(--blue) calc(50% + 4px)
  );
}
.intro-top,
.intro-bottom {
  padding: 64px 24px 48px;
}
.intro-top .label {
  color: var(--ink);
}
.intro h1 {
  margin-top: 10px;
  font-size: 86px;
}
.intro .vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 58px;
  border-radius: 21px;
  background: var(--tint);
  box-shadow: 0 6px 0 #cfc3e6;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.votes .count {
  margin-top: 6px;
  color: var(--gold);
  font-size: 230px;
  line-height: 0.8;
}
.votes .unit {
  font-size: 56px;
}
.votes dl {
  margin-top: 40px;
}
.votes dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0 12px;
  border-top: 2px solid rgba(250, 244, 255, 0.25);
}
.votes dd {
  font-size: 39px;
}

.taste {
  background: var(--gold);
  color: var(--ink);
}
.taste h2 {
  font-size: 74px;
}
.taste .words {
  margin-top: 10px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 52px);
  gap: 9px;
  margin-top: 26px;
  list-style: none;
}
.tiles li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(31, 24, 54, 0.18);
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}
.tiles li.made {
  background: var(--ink);
}

/* Filled to how often they went with the crowd. */
.crowd {
  display: grid;
  grid-template-rows: minmax(300px, var(--fill)) 1fr;
  min-height: 640px;
  padding: 0;
  background: var(--ink);
}
.crowd-top {
  padding: 56px 24px 24px;
  background: var(--purple-deep);
  border-bottom: 8px solid var(--gold);
}
.crowd .count {
  margin: 6px 0 4px;
  font-size: 190px;
  line-height: 0.8;
}
.crowd-bottom {
  padding: 32px 24px 48px;
  color: var(--gold);
}
.crowd-bottom h2 {
  margin-top: 6px;
  font-size: 64px;
}

/* The match split by its vote: A's share in red on top, B's in blue. */
.got-away {
  display: grid;
  grid-template-rows: minmax(180px, var(--fill)) minmax(200px, 1fr);
  min-height: 560px;
  padding: 0;
}
.side-a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 24px 16px;
  background: var(--red);
  border-bottom: 8px solid var(--ink);
}
.side-a .label {
  color: var(--ink);
}
.side-b {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px 48px;
  background: var(--blue);
}
.side-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.side-b .side-row {
  align-items: flex-start;
}
.got-away .name {
  font-size: 42px;
}
.got-away .name.backed {
  font-size: 58px;
}
.got-away .share {
  flex: none;
  font-size: 36px;
}

.perfect {
  background: var(--ink);
}
.perfect .tick {
  color: var(--gold);
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
}
.perfect h2 {
  margin: 14px 0;
  font-size: 86px;
}

.champion {
  background: var(--gold);
  color: var(--ink);
}
.champion h2 {
  margin: 9px 0 10px;
  font-size: 99px;
}
.champion ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  list-style: none;
}
.champion li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--tint);
}
.champion li .label {
  flex: none;
  width: 104px;
  font-size: 11.5px;
}
.champion li .display {
  flex: 1;
  font-size: 23px;
  line-height: 0.9;
}
.champion .mark {
  font-weight: 900;
  font-size: 17px;
  color: rgba(250, 244, 255, 0.6);
}
.champion .mark.yes {
  color: var(--gold);
}

/* The summed-up card, as the app has it. */
.summed-up {
  padding: 48px 24px;
}
.summed-up .card {
  padding: 32px 20px 31px;
  border-radius: 25px;
  background: linear-gradient(
    var(--red) 0 14px,
    var(--ink) 14px calc(100% - 14px),
    var(--blue) calc(100% - 14px)
  );
}
.summed-up .card > .label {
  font-size: 11.6px;
}
.summed-up h2 {
  margin-top: 8px;
  font-size: 57px;
}
.summed-up .numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.summed-up .numbers p {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.summed-up .numbers .display {
  color: var(--gold);
  font-size: 50px;
}
.summed-up .numbers .label {
  font-size: 10px;
}
.summed-up .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
}
.summed-up .brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.summed-up .brand .label {
  font-size: 11.6px;
}

.your-turn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 34px 16px 48px;
  border-top: 2px solid rgba(250, 244, 255, 0.25);
  text-align: center;
}
.your-turn .line {
  font-size: 20px;
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 80px;
  }
  .page h1 {
    font-size: 56px;
  }
  .page h2 {
    font-size: 34px;
  }
  .votes .count {
    font-size: 200px;
  }
  .crowd .count {
    font-size: 170px;
  }
}
