@font-face {
  font-family: "Libre Bodoni";
  src: url("fonts/LibreBodoni-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: #fcf7f8;
  color: #780000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

h1 {
  font-family: "Libre Bodoni", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 11vw, 6rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 6vw, 48px);
}

#countdown {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 5vw, 48px);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2em;
}

.value {
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.label {
  font-weight: 500;
  font-size: clamp(0.65rem, 2.6vw, 0.9rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
}

footer {
  text-transform: uppercase;
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 3.2vw, 1rem);
  letter-spacing: 0.05em;
  opacity: 0.8;
}
