@font-face {
  font-family: "Carnivalee Freakshow";
  src: url("Carnevalee Freakshow.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5f6c80;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;
  --line: #d9e2ef;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: url("background.png") center / cover no-repeat fixed;
}

.countdown-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.countdown-panel {
  width: min(100%, 58rem);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 50%);
  box-shadow: 0 1.5rem 4rem rgb(31 45 70 / 14%);
  backdrop-filter: blur(8px);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Carnivalee Freakshow", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 5.75rem);
  line-height: 0.98;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.time-card {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(232 240 255 / 15%);
  backdrop-filter: blur(6px);
}

.time-card span:first-child {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  font-weight: 850;
  line-height: 1;
}

.time-card span:last-child {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .countdown-shell {
    align-items: start;
    padding: 1rem;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 390px) {
  .timer {
    grid-template-columns: 1fr;
  }
}
