:root {
  color-scheme: light;

  --navy: #082c4c;
  --blue: #0d5f86;
  --sea: #47b5c8;
  --foam: #effbfd;
  --signal: #ef5b43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;

  display: grid;
  place-items: center;

  overflow-x: hidden;

  background:
    linear-gradient(
      180deg,
      #f7fcfd 0 58%,
      #dff5f7 58% 100%
    );

  color: var(--navy);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Dolna warstwa morza */

body::after {
  content: "";

  position: fixed;
  z-index: -1;

  inset: auto 0 0;

  height: 24vh;

  background: var(--sea);

  clip-path: polygon(
    0 18%,
    7% 9%,
    15% 20%,
    24% 7%,
    34% 17%,
    43% 4%,
    53% 16%,
    63% 6%,
    75% 18%,
    86% 5%,
    100% 15%,
    100% 100%,
    0 100%
  );
}

/* Główna sekcja */

.countdown {
  position: relative;
  isolation: isolate;

  width: min(92vw, 980px);

  padding:
    clamp(2rem, 5vw, 4.5rem);

  text-align: center;
}

/* Duże 75 w tle */

.edition {
  position: absolute;
  z-index: -1;

  inset: 50% auto auto 50%;

  translate: -50% -48%;

  color: rgba(8, 44, 76, 0.045);

  font-size:
    clamp(17rem, 42vw, 32rem);

  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.1em;
}

/* Data wydarzenia */

.eyebrow {
  margin: 0 0 1rem;

  color: var(--signal);

  font-size:
    clamp(0.78rem, 2vw, 0.95rem);

  font-weight: 800;
  letter-spacing: 0.18em;
}

/* Nagłówek */

h1 {
  max-width: 760px;

  margin:
    0 auto clamp(2.2rem, 6vw, 4rem);

  font-size:
    clamp(2rem, 5vw, 4.4rem);

  line-height: 0.98;
  letter-spacing: -0.055em;
}

/* Układ licznika */

.timer {
  display: grid;

  grid-template-columns:
    1fr auto 1fr auto 1fr;

  align-items: start;

  gap:
    clamp(0.3rem, 2vw, 1.4rem);

  max-width: 850px;

  margin: 0 auto;
}

.time-unit {
  min-width: 0;
}

/* Wartości liczbowe */

.time-value {
  display: block;

  font-variant-numeric: tabular-nums;

  font-size:
    clamp(3rem, 10vw, 7.8rem);

  font-weight: 850;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

/* Podpisy: dni, godzin, minut */

.time-label {
  display: block;

  margin-top: 0.8rem;

  color: var(--blue);

  font-size:
    clamp(0.72rem, 2vw, 0.92rem);

  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Dwukropki */

.separator {
  color: var(--signal);

  font-size:
    clamp(2.8rem, 8vw, 6rem);

  font-weight: 350;
  line-height: 0.78;

  animation:
    breathe 2s ease-in-out infinite;
}

/* Tekst pod licznikiem */

.status {
  margin:
    clamp(2.6rem, 7vw, 4.5rem) 0 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(1rem, 2.5vw, 1.25rem);

  font-style: italic;
}

/* Delikatne pulsowanie dwukropków */

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

/* Telefony */

@media (max-width: 600px) {
  .countdown {
    padding-inline: 0.8rem;
  }

  .timer {
    gap: 0.22rem;
  }

  .time-value {
    letter-spacing: -0.08em;
  }

  .time-label {
    letter-spacing: 0.08em;
  }
}

/* Wyłączenie animacji zgodnie z ustawieniami systemu */

@media (prefers-reduced-motion: reduce) {
  .separator {
    animation: none;
  }
}