@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/press-start-2p.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000000;
  --digits: #f5f5f0;
  --muted: #a0a09b;
  --quiet: #747470;
}

* { box-sizing: border-box; }

html { min-width: 240px; background: var(--black); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--black);
  color: var(--digits);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { width: min(100%, 1040px); text-align: center; }

.name {
  margin: 0 0 clamp(48px, 9vw, 96px);
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.countdown {
  display: grid;
  grid-template-columns: 2.25fr 0.6fr 2.25fr 0.6fr 2.25fr;
  align-items: start;
  font-size: clamp(24px, 9vw, 100px);
}

.unit { display: grid; justify-items: center; min-width: 0; }

.digits, .separator {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.digits { white-space: nowrap; }
.separator { color: var(--quiet); }

.label {
  margin-top: clamp(20px, 3.5vw, 36px);
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 16px);
  line-height: 1.5;
}

.date {
  margin: clamp(48px, 8vw, 88px) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.fallback { color: var(--muted); font-size: 13px; line-height: 1.6; }

::selection { color: var(--black); background: var(--digits); }
