/*
 * Chalkbored Games design system.
 *
 * The look is "chalkboard after dark": a deep slate ground, warm chalk-white type, and four chalk
 * colours used sparingly enough to stay professional. Venues read this site on a phone behind the bar
 * and on a laptop in an office, so everything is fluid and nothing depends on JavaScript.
 */

/* ---------- Fonts (self-hosted: no third-party request, no font-tracking) ---------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/spacegrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/spacegrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --ink-900: #0a0f12;
  --ink-850: #0e151a;
  --ink-800: #121c22;
  --ink-700: #17242c;
  --ink-600: #1e303a;

  --chalk: #f5f2ec;
  --chalk-2: #cdd6da;
  --chalk-3: #93a3ab;

  --coral: #ff5d70;
  --amber: #ffb547;
  --mint: #3fd9a8;
  --violet: #9c8cff;

  --line: rgb(245 242 236 / 12%);
  --line-strong: rgb(245 242 236 / 22%);

  --accent: var(--coral);
  --accent-soft: rgb(255 93 112 / 14%);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page: 76rem;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);

  --step-1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1-up: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.66vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.25vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.85rem + 2.25vw, 3.9rem);
}

[data-accent='amber'] {
  --accent: var(--amber);
  --accent-soft: rgb(255 181 71 / 14%);
}
[data-accent='mint'] {
  --accent: var(--mint);
  --accent-soft: rgb(63 217 168 / 14%);
}
[data-accent='violet'] {
  --accent: var(--violet);
  --accent-soft: rgb(156 140 255 / 14%);
}

/* ---------- Reset ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--chalk-2);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* A faint chalk-dust wash, so the dark ground is not a flat black rectangle. */
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgb(255 93 112 / 9%), transparent 60%),
    radial-gradient(52rem 38rem at 88% 4%, rgb(63 217 168 / 7%), transparent 62%);
  background-repeat: no-repeat;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--chalk);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}
h2 {
  font-size: var(--step-3);
  font-weight: 700;
}
h3 {
  font-size: var(--step-1-up);
  font-weight: 600;
}
h4 {
  font-size: var(--step-0);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--chalk);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  color: var(--chalk);
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--panel {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border-block: 1px solid var(--line);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chalk);
  color: var(--ink-900);
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header / navigation (top, left-oriented) ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 15 18 / 88%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.75rem);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--chalk);
  line-height: 1.1;
}

.brand__name span {
  color: var(--coral);
}

/* Left-oriented: the list sits immediately after the wordmark rather than pushed right. */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 1.4vw, 0.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--chalk-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--chalk);
  background: rgb(245 242 236 / 7%);
}

.nav a[aria-current='page'] {
  color: var(--chalk);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Also selects `.btn`, which is declared later in this file and would otherwise win the display
   declaration and put the call to action back on a phone, where there is no room for it. */
.masthead__cta.btn {
  margin-left: auto;
  display: none;
  /* Chrome stays the brand's coral even on pages themed to another accent. */
  background: var(--coral);
}

.masthead__cta.btn:hover {
  background: color-mix(in srgb, var(--coral) 88%, white);
}

@media (min-width: 60rem) {
  .masthead__cta.btn {
    display: inline-flex;
  }
}

/* Small screens: the navigation moves under the wordmark and wraps. Wrapping rather than scrolling
   sideways, because a link a phone user has to discover by swiping is a link they will not find. */
@media (max-width: 47.99rem) {
  .masthead__inner {
    flex-wrap: wrap;
    padding-block: 0.7rem;
    gap: 0.5rem;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  .nav a {
    padding: 0.4rem 0.6rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #10171b;
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
  color: #10171b;
}

.btn--ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--chalk);
  background: var(--accent-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Text utilities ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 2px;
  background: currentcolor;
  border-radius: 2px;
}

.lede {
  font-size: var(--step-1-up);
  line-height: 1.5;
  color: var(--chalk-2);
  max-width: 46ch;
}

.measure {
  max-width: 62ch;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .lede {
  margin-inline: auto;
}

.center .eyebrow::before {
  display: none;
}

.muted {
  color: var(--chalk-3);
  font-size: var(--step-1);
}

.section__head {
  max-width: 58ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--chalk-2);
  background: rgb(245 242 236 / 5%);
}

.badge--live {
  color: var(--mint);
  border-color: rgb(63 217 168 / 40%);
  background: rgb(63 217 168 / 10%);
}

.badge--soon {
  color: var(--amber);
  border-color: rgb(255 181 71 / 35%);
  background: rgb(255 181 71 / 8%);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentcolor;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero__art {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--ink-800);
}

.hero__art img {
  width: 100%;
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

/* Exactly two columns once there is room, rather than auto-fit: the catalogue has four party games,
   and three-across leaves one card sitting on its own looking like a mistake. */
.grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Game cards ------------------------------------------------------------- */

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: inherit;
}

.game-card__art {
  aspect-ratio: 16 / 10;
  background: var(--ink-700);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.game-card__title {
  font-family: var(--font-display);
  font-size: var(--step-1-up);
  font-weight: 600;
  color: var(--chalk);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.game-card__tagline {
  color: var(--accent);
  font-size: var(--step-1);
  font-weight: 500;
}

.game-card__blurb {
  font-size: var(--step-1);
  margin: 0;
  color: var(--chalk-2);
}

.game-card__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--chalk-3);
}

.game-card__more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--accent);
}

/* ---------- Feature rows ---------- */

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

/* Two columns of prose of unequal length should share a baseline at the top, not float around a
   shared centre line, or the two headings sit at visibly different heights. */
.split--top {
  align-items: start;
}

/* ---------- Lists ---------- */

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.ticks li {
  position: relative;
  padding-left: 1.9rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-bottom: 0.3rem;
}

.steps p {
  margin-bottom: 0;
  font-size: var(--step-1);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.stat {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--chalk-3);
  margin-top: 0.25rem;
}

/* ---------- Pipeline (Trivio) ---------- */

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  counter-reset: stage;
}

.pipeline li {
  counter-increment: stage;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(245 242 236 / 3%);
  font-size: var(--step-1);
}

.pipeline li::before {
  content: counter(stage);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  text-align: right;
}

.pipeline b {
  color: var(--chalk);
  font-weight: 600;
}

/* ---------- Verdict chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--chalk-2);
  background: rgb(245 242 236 / 4%);
}

.chips li[data-tone='good'] {
  color: var(--mint);
  border-color: rgb(63 217 168 / 40%);
}

.chips li[data-tone='warn'] {
  color: var(--amber);
  border-color: rgb(255 181 71 / 40%);
}

.chips li[data-tone='bad'] {
  color: var(--coral);
  border-color: rgb(255 93 112 / 40%);
}

/* ---------- Device mockups (built in markup, not screenshots) ---------- */

.mock-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .mock-stack {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
}

.mock {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-850);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgb(245 242 236 / 4%);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-3);
  font-family: var(--font-display);
  font-weight: 600;
}

.mock__body {
  padding: 1rem 1.1rem 1.2rem;
}

.mock--screen .mock__body {
  min-height: 12rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.mock__q {
  font-family: var(--font-display);
  font-size: var(--step-1-up);
  font-weight: 600;
  color: var(--chalk);
  line-height: 1.25;
}

.mock__options {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mock__options li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  background: rgb(245 242 236 / 3%);
}

.mock__options li[data-state='picked'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--chalk);
  font-weight: 500;
}

.mock__meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--chalk-3);
}

.mock__meter span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgb(245 242 236 / 12%);
  overflow: hidden;
}

.mock__meter span::after {
  content: '';
  display: block;
  width: 62%;
  height: 100%;
  background: var(--accent);
}

.mock__board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.mock__board li {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgb(245 242 236 / 3%);
}

.mock__board li:first-child {
  background: var(--accent-soft);
  color: var(--chalk);
}

.mock__board b {
  font-family: var(--font-display);
  color: var(--chalk);
}

/* Calendar, theme builder, and player card mockups. Built in markup for the same reason as the
   question mockup above: they stay sharp, a screen reader can read them, and changing a label does
   not mean regenerating a picture. */

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.cal__dow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-3);
  text-align: center;
  padding-bottom: 0.2rem;
}

.cal__day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgb(245 242 236 / 3%);
  padding: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.64rem;
  color: var(--chalk-3);
  overflow: hidden;
}

.cal__chip {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 3px;
  padding: 0.1rem 0.2rem;
  color: #10171b;
  background: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal__chip[data-kind="special"] {
  background: var(--violet);
}

.cal__chip[data-kind="bingo"] {
  background: var(--amber);
}

.cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  color: var(--chalk-3);
}

.cal__legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cal__swatch {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
}

.cal__swatch[data-kind="special"] {
  background: var(--violet);
}

.cal__swatch[data-kind="bingo"] {
  background: var(--amber);
}

.toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.toggles li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  background: rgb(245 242 236 / 3%);
}

/* The switch is a gradient knob over a track, rather than an inset shadow, because an inset shadow
   paints from the opposite side to the offset you give it and lands the knob on the wrong end. */
.toggles li::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 0.9rem;
  border-radius: 999px;
  background:
    radial-gradient(circle 0.3rem at 0.45rem 50%, var(--chalk-3) 97%, transparent 100%),
    rgb(245 242 236 / 12%);
}

.toggles li[data-state="on"] {
  border-color: var(--accent);
  color: var(--chalk);
}

.toggles li[data-state="on"]::before {
  background:
    radial-gradient(circle 0.3rem at 1.15rem 50%, #10171b 97%, transparent 100%),
    var(--accent);
}

.toggles em {
  font-style: normal;
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--chalk-3);
}

.profile {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.profile li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  background: rgb(245 242 236 / 3%);
  font-size: 0.82rem;
}

.profile b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--chalk);
}

.profile li[data-highlight] {
  background: var(--accent-soft);
}

.profile li[data-highlight] b {
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.badges li {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--chalk-2);
}

/* The four-step content flow. Numbered, with a connector that disappears at the last step. */

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flowstep;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.flow li {
  counter-increment: flowstep;
  position: relative;
  padding-top: 2.6rem;
}

.flow li::before {
  content: counter(flowstep);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #10171b;
  background: var(--accent);
}

.flow li::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 2.4rem;
  right: -0.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}

.flow li:last-child::after {
  display: none;
}

/* Stacked on a phone, the connector points at nothing, so drop it below the width where the steps
   still sit side by side. */
@media (max-width: 47.99rem) {
  .flow li::after {
    display: none;
  }
}

.flow b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--chalk);
  margin-bottom: 0.3rem;
}

.flow span {
  font-size: var(--step-1);
}

/* ---------- Q&A / details ---------- */

.faq {
  display: grid;
  gap: 0.6rem;
}

details.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-850);
  padding: 0 1.15rem;
}

details.qa > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--chalk);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

details.qa > summary::-webkit-details-marker {
  display: none;
}

details.qa > summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
}

details.qa[open] > summary::after {
  content: '\2212';
}

details.qa > div {
  padding-bottom: 1.1rem;
  font-size: var(--step-1);
}

details.qa > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Callouts ---------- */

.note {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgb(245 242 236 / 4%);
  padding: 1.15rem 1.35rem;
  font-size: var(--step-1);
}

.note h3 {
  font-size: var(--step-0);
  margin-bottom: 0.45rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(38rem 20rem at 15% 0%, var(--accent-soft), transparent 70%), var(--ink-800);
  padding: clamp(1.75rem, 5vw, 3.25rem);
}

.cta h2 {
  margin-bottom: 0.5rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-line {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-line dt {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
}

.contact-line dd {
  margin: 0;
  font-size: var(--step-1-up);
  color: var(--chalk);
}

.contact-list {
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--step-1);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-3);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer a {
  text-decoration: none;
  color: var(--chalk-2);
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--chalk-3);
  font-size: 0.85rem;
}

/* ---------- Page header ---------- */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 0.75rem;
}

/* ---------- Coming soon ---------- */

.soon-hero {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .soon-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.soon-art {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Utilities ----------
 *
 * These exist so the markup can ship with no `style` attributes at all, which in turn lets the
 * distribution send `style-src 'self'` with no `unsafe-inline` escape hatch.
 */

.mt-sm {
  margin-top: 1rem;
}
.mt-md {
  margin-top: 1.5rem;
}
.mt-lg {
  margin-top: 2rem;
}
.mt-xl {
  margin-top: 2.5rem;
}
.mt-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.mb-sm {
  margin-bottom: 0.75rem;
}
.mb-md {
  margin-bottom: 1.5rem;
}
.mb-lg {
  margin-bottom: 2rem;
}
.mb-xl {
  margin-bottom: 3.25rem;
}
.mb-0 {
  margin-bottom: 0;
}

.shelf-heading {
  margin-bottom: 1.25rem;
}

.measure-cta {
  max-width: 56ch;
}
.measure-short {
  max-width: 52ch;
}
.measure-mid {
  max-width: 60ch;
}

.pad-block {
  padding-block: clamp(2rem, 8vw, 5rem);
}

.btn-row--center {
  justify-content: center;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
}

.row-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.plain-link {
  text-decoration: none;
  color: inherit;
}

.grid--gutters {
  gap: 1.5rem 3rem;
}

.grid--gutters-tight {
  gap: 0.9rem 3rem;
}

.grid--roomy {
  gap: 2rem;
}

.stack-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact__label {
  color: var(--chalk-3);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.fact__value {
  font-family: var(--font-display);
  font-size: var(--step-1-up);
  color: var(--chalk);
  margin: 0;
}

.footer__blurb {
  margin-top: 1rem;
  max-width: 26ch;
}

.mock__label {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.mock__note {
  font-size: 0.75rem;
  margin: 0.75rem 0 0;
}

.mock__kicker {
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}

.mock__clock {
  flex: none;
}

.print-only {
  display: none;
}

@media print {
  body {
    background: #fff;
    color: #111;
  }
  .masthead,
  .footer,
  .cta {
    display: none;
  }
}
