:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #8d0018;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(67, 0, 10, 0.16), rgba(42, 0, 8, 0.62)),
    radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.5) 0 2%, rgba(255, 255, 255, 0.14) 17%, transparent 43%),
    linear-gradient(166deg, #9c0019 0 34%, #d91231 43%, #fff 43.5% 46%, #bd001f 46.5% 67%, #710013 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  opacity: 0.35;
  background:
    repeating-linear-gradient(105deg, transparent 0 90px, rgba(255, 255, 255, 0.045) 91px, transparent 93px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04));
}

body::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 25%, transparent 65%, rgba(32, 0, 5, 0.62));
}

a {
  color: inherit;
}

.countdown-page {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
}

.topbar p,
.topbar a,
.intro p,
.intro time,
.main-status,
.event-title p,
.event-title time,
footer p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
}

.topbar a {
  padding-bottom: 4px;
  text-decoration: none;
  border-bottom: 1px solid #fff;
}

.main-event {
  display: flex;
  padding: clamp(56px, 9vh, 110px) 0 clamp(48px, 7vh, 82px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.intro p {
  margin-bottom: 15px;
  font-size: 0.76rem;
  letter-spacing: 0.55em;
}

.intro h1 {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.28em;
}

.intro time {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.14em;
}

.main-clock {
  display: grid;
  width: 100%;
  max-width: 1020px;
  margin-top: clamp(42px, 8vh, 82px);
  grid-template-columns: repeat(4, 1fr);
}

.main-clock > div {
  position: relative;
  min-width: 0;
  padding: 0 clamp(8px, 2vw, 28px);
}

.main-clock > div + div::before {
  position: absolute;
  top: 12%;
  left: 0;
  width: 1px;
  height: 76%;
  content: "";
  background: rgba(255, 255, 255, 0.24);
}

.main-clock span {
  display: block;
  margin-bottom: -0.55rem;
  font-size: clamp(0.56rem, 0.9vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.52em;
}

.main-clock strong {
  display: block;
  font-size: clamp(4.4rem, 10vw, 8.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
  text-shadow: 0 5px 28px rgba(54, 0, 8, 0.25);
}

.main-status {
  margin-top: clamp(30px, 5vh, 50px);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.16em;
}

.other-events {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  grid-template-columns: repeat(2, 1fr);
}

.other-events article {
  display: flex;
  min-width: 0;
  padding: 24px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.other-events article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.event-title p {
  font-weight: 700;
  letter-spacing: 0.18em;
}

.event-title time {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.mini-clock {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
}

.mini-clock div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mini-clock strong {
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.mini-clock span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
}

footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .countdown-page {
    width: min(100% - 30px, 1180px);
  }

  .topbar p,
  .topbar a {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .main-clock {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .main-clock > div:nth-child(3)::before {
    display: none;
  }

  .main-clock strong {
    font-size: clamp(4.3rem, 19vw, 7rem);
  }

  .other-events {
    grid-template-columns: 1fr;
  }

  .other-events article + article {
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .topbar p {
    max-width: 19ch;
    line-height: 1.5;
  }

  .intro p {
    font-size: 0.62rem;
  }

  .intro h1 {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .other-events article {
    padding: 20px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mini-clock {
    width: 100%;
    justify-content: space-between;
  }
}
