/* dibbo.net. Tokens from the Design book and Spec-Brand (drawday-docs design canvas): ink #1C1B21,
   white thermal paper, the betting-slip pattern, status bands, the dark Premium band. The pages
   are written by scripts/build_site.py; this file is edited by hand. */

@font-face {
  font-family: "Next";
  src: url("/fonts/next-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Next";
  src: url("/fonts/next-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Next";
  src: url("/fonts/next-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Mono";
  src: url("/fonts/mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mono";
  src: url("/fonts/mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f2f2f4;
  --card: #ffffff;
  --line: #e3e3e5;
  --ink: #1c1b21;
  --on-ink: #ffffff;
  --soft: #5b5b62;
  --chip: #eeeef1;
  --field: #ffffff;
  --field-line: #c9c9cf;
  --focus: #3b5bdb;
  --error: #b42318;
  --paper: #ffffff;
  --paper-ink: #1c1b21;
  --slip-box: #dfdfe4;
  --slip-num: #d2d2d8;
  --shadow: 0 1px 2px rgb(20 20 30 / 0.06), 0 10px 30px rgb(20 20 30 / 0.06);
  --sans: "Next", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --card: #1c1c1f;
    --line: #3d3d40;
    --ink: #f2f2f4;
    --on-ink: #000000;
    --soft: #a6a6ae;
    --chip: #2e2e32;
    --field: #141416;
    --field-line: #4a4a50;
    --focus: #8ea4ff;
    --error: #ff8a80;
    --paper: #f1f1ee;
    --slip-box: #2b2a31;
    --slip-num: #34333b;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

/* Top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 20px 8px;
}

.brand {
  display: inline-flex;
  color: var(--ink);
}

.wordmark {
  display: block;
  height: 34px;
  width: auto;
  overflow: visible;
}

.lang {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 32px 0 72px;
}

.hero-text {
  order: 1;
}

.hero-art {
  order: 2;
  position: relative;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
}

.slip {
  position: absolute;
  top: -6px;
  left: -10px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 48%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 48%, #000 45%, transparent 100%);
}

.slip rect {
  fill: none;
  stroke: var(--slip-box);
  stroke-width: 1;
}

.slip text {
  fill: var(--slip-num);
  font-family: var(--mono);
  font-size: 15px;
  text-anchor: middle;
}

.stack {
  position: absolute;
  inset: 0;
}

.ticket {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  padding: 16px 18px 12px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.4;
  box-shadow:
    0 1px 2px rgb(20 20 30 / 0.1),
    0 14px 34px rgb(20 20 30 / 0.18);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r));
}

.ticket-1 {
  --x: -78px;
  --y: -158px;
  --r: -6deg;
}

.ticket-2 {
  --x: 84px;
  --y: -46px;
  --r: 5deg;
}

.ticket-3 {
  --x: -14px;
  --y: 108px;
  --r: -1.5deg;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ticket-game {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ticket-sub {
  margin: 2px 0 10px;
  color: #5b5b62;
  font-size: 14px;
}

.band {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -18px 10px;
  padding: 7px 18px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

.band-waiting {
  background: #e9ebf5;
}

.band-none {
  background: #eeeef1;
}

.band-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* The printed double rule «=====»: two rows of 1 px dashes, 3 px apart. */
.rule {
  height: 5px;
  margin: 8px 0;
  background-image:
    repeating-linear-gradient(90deg, var(--paper-ink) 0 4px, transparent 4px 7px),
    repeating-linear-gradient(90deg, var(--paper-ink) 0 4px, transparent 4px 7px);
  background-position:
    0 0,
    0 4px;
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

.ticket-lines p {
  margin: 3px 0;
  font-size: 16px;
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: no-preference) {
  .ticket {
    animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .ticket-2 {
    animation-delay: 0.12s;
  }

  .ticket-3 {
    animation-delay: 0.24s;
  }
}

/* Movement only: the tickets are never invisible, even where animations are paused. */
@keyframes settle {
  from {
    translate: 0 36px;
  }

  to {
    translate: 0 0;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 18px 0;
  font-size: clamp(40px, 4.4vw, 58px);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 34ch;
  margin: 0;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.5;
}

/* The waitlist form */

.join,
.joined {
  max-width: 560px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.join label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
}

.join-row {
  display: flex;
  gap: 10px;
}

.join input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--field-line);
  border-radius: 16px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

.join input[type="email"]::placeholder {
  color: var(--soft);
  opacity: 0.8;
}

.join input[aria-invalid="true"] {
  border-color: var(--error);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.status {
  margin: 10px 0 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 700;
}

.status:empty {
  display: none;
}

.hint {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 15px;
}

.joined {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.joined[hidden] {
  display: none;
}

.joined h2 {
  font-size: 24px;
  font-weight: 800;
}

.joined p {
  margin: 6px 0 0;
  color: var(--soft);
}

.joined-icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 50%;
  background: #def8e7;
  color: #00824b;
}

/* Sections */

.section-title {
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 800;
}

.features,
.steps {
  padding: 24px 0 56px;
}

.features ul,
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 14px;
  background: var(--chip);
}

.feature h3,
.step h3 {
  margin: 16px 0 6px;
  font-size: 21px;
  font-weight: 800;
}

.feature p,
.step p {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 600;
}

/* The dark band, as Premium's: ink gradient, white button. */
.band-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 24px;
  padding: 40px;
  border: 1px solid #3d3c45;
  border-radius: 32px;
  background: linear-gradient(160deg, #2c2a33 0%, #141218 100%);
  color: #f2f2f4;
}

.band-cta h2 {
  font-size: 30px;
  font-weight: 800;
}

.band-cta p {
  margin: 6px 0 0;
  color: #a3a1aa;
}

.button-light {
  flex: none;
  background: #ffffff;
  color: #1c1b21;
}

/* Footer */

.foot {
  max-width: 1160px;
  margin: 40px auto 0;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 16px;
}

.foot p {
  margin: 0 0 8px;
}

.foot a {
  color: var(--ink);
}

.foot-links {
  display: flex;
  gap: 10px;
}

/* Text pages */

.narrow {
  max-width: 760px;
}

.card {
  margin: 32px 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}

.card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 44px);
}

.card .lead {
  max-width: none;
}

.card .button,
.card .joined-icon {
  margin-top: 20px;
}

.card .joined-icon {
  margin: 0 0 16px;
}

.prose h2 {
  margin: 28px 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.prose p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* Phone and tablet */

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 12px;
  }

  .hero-art {
    order: 0;
    height: 400px;
  }

  .hero-text {
    order: 1;
  }

  .features ul,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 40px;
  }

  .feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
  }

  .feature .icon {
    flex: none;
  }

  .feature h3 {
    margin-top: 2px;
  }

  .band-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 18px;
  }

  .wordmark {
    height: 28px;
  }

  .hero-art {
    height: 350px;
    border-radius: 24px;
  }

  /* The same stack as on a wide screen, smaller, so every status band stays in view. */
  .stack {
    transform: scale(0.7);
  }

  h1 {
    font-size: 34px;
  }

  .join-row {
    flex-direction: column;
  }

  .join,
  .joined {
    padding: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .card {
    padding: 24px;
  }

  .band-cta .button {
    width: 100%;
  }
}
