:root {
  --navy: #0D2436;
  --navy-deep: #081722;
  --teal: #2E7D82;
  --teal-bright: #3F9CA2;
  --foam: #F2F6F5;
  --slate: #B9C6C6;
  --red: #A23E2B;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--foam);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
}

.masthead {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(185, 198, 198, 0.2);
}
.masthead__mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.masthead__tag {
  color: var(--slate);
  font-size: 0.9rem;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---------------- Live board ---------------- */
.board {
  background: var(--navy-deep);
  border: 1px solid rgba(185, 198, 198, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 3rem;
}
.board__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.6rem 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.board__row--head {
  color: var(--slate);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(185, 198, 198, 0.2);
}
.board__row--empty { color: var(--slate); }
.board__row + .board__row { border-top: 1px solid rgba(185, 198, 198, 0.1); }
.board__row--live { color: var(--foam); transition: background-color 0.4s ease; }
.board__row--soon { color: #F0D8B8; }
.board__note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: var(--slate);
}

/* ---------------- Subscribe ---------------- */
.subscribe__intro h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 20ch;
}
.subscribe__intro p {
  color: var(--slate);
  max-width: 46ch;
  line-height: 1.55;
  margin: 0 0 2rem;
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 420px;
}
.subscribe__form--hidden { display: none; }

.field span, .field legend {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
  padding: 0;
}
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid rgba(185, 198, 198, 0.35);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  color: var(--foam);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
.field input:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 1px;
}

.field--slots { border: none; margin: 0; padding: 0; }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.slot {
  position: relative;
  margin: 0;
}
.slot input { position: absolute; opacity: 0; }
.slot span {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(185, 198, 198, 0.35);
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}
.slot input:checked + span {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--foam);
}
.slot input:focus-visible + span {
  outline: 2px solid var(--teal-bright);
  outline-offset: 1px;
}

.button {
  align-self: flex-start;
  background: var(--teal);
  color: var(--foam);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.3rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.button:hover { background: var(--teal-bright); }
.button--quiet {
  background: transparent;
  border: 1px solid rgba(185, 198, 198, 0.35);
}
.button--quiet:hover { background: rgba(185, 198, 198, 0.1); }

.link-button {
  background: none;
  border: none;
  color: var(--slate);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin: 1.75rem 0 1rem;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  margin: 0;
}
.form-status--ok { color: #7FC8A9; }
.form-status--error { color: #E08670; }

.site-footer {
  text-align: center;
  color: var(--slate);
  font-size: 0.78rem;
  padding: 1.5rem;
}

@media (max-width: 560px) {
  .board__row { grid-template-columns: 1fr 1fr; row-gap: 0.15rem; }
  .board__row span:nth-child(3), .board__row span:nth-child(4) { font-size: 0.85rem; }
}
