:root {
  --paper: #f6f7f7;
  --ink: #111416;
  --muted: #454c52;
  --line: #aeb4b9;
  --signal: #b43a08;
  --on-signal: #ffffff;
  --band: #111416;
  --band-ink: #f1f2f3;
  --band-muted: #b6bcc1;
  --band-line: #3a4147;
  --band-field: #1a1e22;
  --band-signal: #ff9a5c;
  --gutter: 16px;
  --measure: 34rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111416;
    --ink: #f1f2f3;
    --muted: #b6bcc1;
    --line: #4a5157;
    --signal: #ff9a5c;
    --on-signal: #111416;
    --band: #07090a;
    --band-line: #2e353b;
    --band-field: #121619;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px / 1.5 Roboto,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: wordmark left, language right, one rule under. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark svg {
  width: 28px;
  height: 28px;
}

.lang {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 0 12px 16px;
}

/* Confirmation banner, shown by the script after the mailed link. */
.banner {
  display: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.banner[data-show] {
  display: block;
}

.banner .wrap::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  margin-right: 12px;
  vertical-align: 1px;
}

.banner[data-show="no"] .wrap::before {
  background: var(--signal);
}

/* Hero: a full-width ink band, the page read like a card printed in negative. */
.band {
  --paper: var(--band);
  --ink: var(--band-ink);
  --muted: var(--band-muted);
  --line: var(--band-line);
  --signal: var(--band-signal);
  --on-signal: #111416;
  background: var(--band);
  color: var(--band-ink);
  border-top: 4px solid var(--band-signal);
}

.hero {
  padding: 48px 0 56px;
  display: grid;
  gap: 40px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--band-signal);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 14ch;
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  max-width: var(--measure);
  color: var(--ink);
}

/* The target figure. */
.figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.figure svg {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

.figure figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.figure .ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

.figure .black {
  fill: var(--ink);
  stroke: none;
}

.figure .black-ring {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1;
}

.figure .shot {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 3;
}

.figure .shot.dark {
  fill: var(--ink);
  stroke: var(--paper);
}

.figure .shot.estimated {
  stroke-dasharray: 4 3;
}

.figure .shot.doubt {
  stroke: var(--signal);
}

.figure .mark-doubt {
  font:
    700 12px Roboto,
    system-ui,
    sans-serif;
  fill: var(--signal);
}

.figure .score {
  font:
    700 72px / 1 Roboto,
    system-ui,
    sans-serif;
  fill: var(--ink);
  letter-spacing: -0.03em;
}

.figure .score-label {
  font:
    14px Roboto,
    system-ui,
    sans-serif;
  fill: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Form */
.join {
  margin: 36px 0 0;
  display: grid;
  gap: 16px;
  max-width: var(--measure);
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  border-radius: 8px;
  background: var(--band-field);
}

.join h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.pitch {
  margin: -8px 0 0;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  height: 56px;
  width: 100%;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:hover,
.field select:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.join button {
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  height: 64px;
  border: 0;
  border-radius: 8px;
  background: var(--signal);
  color: var(--on-signal);
  cursor: pointer;
  width: 100%;
}

.join button:hover {
  filter: brightness(1.08);
}

.join button:active {
  transform: translateY(1px);
}

.join button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.fine {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-weight: 500;
}

.status[data-tone="bad"] {
  color: var(--signal);
}

.join[data-state="sent"] .status {
  font-size: 18px;
  color: var(--signal);
}

.join[data-state="sent"] .field,
.join[data-state="sent"] button,
.join[data-state="sent"] .fine {
  display: none;
}

/* Sections: a rule, a title, then rows separated by rules. No cards. */
section {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

section:first-child {
  border-top: 0;
  padding-top: 56px;
}

section .title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.rows {
  margin: 0;
  display: grid;
}

.rows > div {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rows > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.rows dt {
  font-weight: 700;
  font-size: 20px;
}

.rows dd {
  margin: 0;
  color: var(--ink);
  max-width: var(--measure);
}

.num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}

section .text {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer p {
  margin: 0;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    padding: 72px 0 72px;
  }

  .figure {
    position: sticky;
    top: 24px;
    padding-top: 8px;
  }

  .rows {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
  }

  .rows > div,
  .rows > div:first-child {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
}
