@font-face {
  font-family: "Lora";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Lora_500Medium.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/DMSans_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/DMSans_500Medium.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/DMSans_700Bold.ttf") format("truetype");
}

/* The palette is Jury's mark: two opinions (lilac, apricot) and what they share (ink). */
:root {
  --paper: #f8f9f6;
  --raised: #ffffff;
  --ink: #20241f;
  --muted: #666d63;
  --line: #e2e6dc;
  --lilac: #b8a8d8;
  --apricot: #ebb594;
  --lilac-soft: #ece7f5;
  --apricot-soft: #f8e9df;
  --card-back: #20241f;
  --card-back-ink: #f5f5ef;
  --button: #20241f;
  --button-ink: #ffffff;
  --display: "Lora", Georgia, serif;
  --text: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171917;
    --raised: #232623;
    --ink: #f5f5ef;
    --muted: #a6aca6;
    --line: #383d38;
    --lilac-soft: #2d2a35;
    --apricot-soft: #352c26;
    --card-back: #f5f5ef;
    --card-back-ink: #20241f;
    --button: #e8e3f1;
    --button-ink: #171917;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 1.375rem/1 var(--display);
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 16px;
}
.bar-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  white-space: pre-line;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}
p {
  margin: 0;
  max-width: 34em;
}
.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 20px;
}
.muted {
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 7vh;
  padding-bottom: 12vh;
}
.soon {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lilac-soft);
  font-weight: 500;
}

/* The table: one round, three hidden cards, then the reveal */
.table {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}
.round-name {
  font: 500 1.75rem/1.1 var(--display);
}
.round-caption {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 6px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  perspective: 900px;
}
.card {
  position: relative;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.revealed .card {
  transform: rotateY(180deg);
}
.card:nth-child(2) {
  transition-delay: 220ms;
}
.card:nth-child(3) {
  transition-delay: 440ms;
}
.tint-apricot {
  background: var(--apricot);
}
.tint-lilac {
  background: var(--lilac);
}
.tint-sage {
  background: #d9dccf;
}
.face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}
.face-back {
  background: var(--card-back);
  color: var(--card-back-ink);
}
.face-back .pattern {
  align-self: center;
  width: 56%;
  opacity: 0.9;
}
.face-front {
  color: #20241f;
  transform: rotateY(180deg);
}
.face .who {
  font-size: 0.875rem;
  font-weight: 500;
}
.face .score {
  font: 500 clamp(2.75rem, 6vw, 3.5rem) / 1 var(--display);
}
.face .of {
  font-size: 0.8125rem;
  opacity: 0.7;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  min-height: 56px;
}
.verdict svg {
  flex: none;
  width: 72px;
  height: 36px;
}
.verdict svg circle {
  transition: cx 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 900ms;
}
.verdict p {
  font-weight: 500;
  opacity: 0;
  transition: opacity 400ms ease 1300ms;
}
.revealed .verdict p {
  opacity: 1;
}
.replay {
  margin-top: 20px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.replay:hover {
  border-color: var(--ink);
}

/* How it works: a real sequence, so it is numbered */
.section {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 72px;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.step-number {
  font: 500 3rem/1 var(--display);
  color: var(--lilac);
}
.step p {
  margin-top: 12px;
  color: var(--muted);
}
.visual {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--apricot-soft);
  font-weight: 500;
  font-size: 0.9375rem;
}
.chip.alt {
  background: var(--lilac-soft);
}
.people {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9375rem;
}
.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #20241f;
}
.scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.scale span {
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  font-weight: 500;
  color: var(--muted);
}
.scale .picked {
  background: var(--button);
  color: var(--button-ink);
}
.scale-note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.rules {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rules li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.rules li:last-child {
  border-bottom: 0;
}
.rules .when {
  color: var(--muted);
  font-weight: 400;
}
.rank {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rank li:last-child {
  border-bottom: 0;
}
.rank .name {
  font-weight: 500;
}
.rank .value {
  font: 500 1.25rem/1 var(--display);
}
.rank .trait {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}

/* More than one evening: prose list, not cards */
.more {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.facts h3 {
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
}
.facts p {
  margin-top: 6px;
  color: var(--muted);
}

/* Privacy */
.promise {
  background: var(--card-back);
  color: var(--card-back-ink);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.promise .lede {
  color: inherit;
  opacity: 0.75;
}
.promise ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.promise li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}
.promise li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--apricot);
}

footer {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Invitation */
.invite {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 6vh;
  padding-bottom: 10vh;
}
.invite-actions {
  margin-top: 32px;
  display: grid;
  gap: 14px;
  max-width: 380px;
}
.button {
  display: block;
  text-align: center;
  background: var(--button);
  color: var(--button-ink);
  text-decoration: none;
  font-weight: 700;
  padding: 18px;
  border-radius: 16px;
}
.button:hover {
  opacity: 0.9;
}
.note {
  background: var(--lilac-soft);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .hero,
  .invite,
  .more,
  .promise {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-number {
    font-size: 2.25rem;
  }
  .promise {
    padding: 36px 24px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding-inline: 16px;
  }
  .rules li {
    flex-direction: column;
    gap: 2px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .table {
    padding: 20px;
    border-radius: 24px;
  }
  .cards {
    gap: 8px;
  }
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .steps {
    gap: 56px;
  }
  .scale {
    gap: 2px;
  }
  .scale span {
    font-size: 0.875rem;
    padding: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .verdict svg circle,
  .verdict p {
    transition: none;
  }
}
