:root {
  color-scheme: dark;
  --background: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.82);
  --hairline: rgba(255, 255, 255, 0.16);
  --progress: 1turn;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.site-shell {
  width: min(100%, 980px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.brand {
  justify-self: center;
  display: grid;
  justify-items: center;
}

.wordmark {
  width: clamp(126px, 17vw, 220px);
  height: auto;
  display: block;
}

.countdown-block {
  display: grid;
  place-items: center;
  padding: clamp(48px, 9vh, 96px) 0 clamp(36px, 7vh, 72px);
}

.timer-frame {
  position: relative;
  width: clamp(190px, 33vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.timer-frame::before {
  position: absolute;
  inset: -1px;
  content: "";
  border: 1px solid var(--line);
  border-radius: inherit;
  opacity: 0.28;
}

.timer-progress {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(var(--line) var(--progress), transparent 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 0);
}

.timer-value {
  display: block;
  min-width: 4ch;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.message {
  justify-self: center;
  width: min(100%, 620px);
  padding-bottom: clamp(18px, 5vh, 44px);
  text-align: center;
}

.message h1,
.message p,
.community-link {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.75;
}

.message h1 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
}

.message p {
  color: var(--muted);
}

.message .lead {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.75;
}

.community-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--text);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.community-link:hover,
.community-link:focus-visible {
  color: rgba(255, 255, 255, 0.78);
  text-decoration-color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 520px) {
  .site-shell {
    padding: 28px 22px;
  }

  .countdown-block {
    padding-top: 42px;
  }

  .message h1,
  .message p,
  .community-link {
    font-size: 1rem;
    line-height: 1.85;
  }

  .message h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
}
