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

body {
  background: #fff;
  color: #fff;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
}
#bg .slice {
  flex: 1;
  background: #fff;
}

#home-link {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  mix-blend-mode: difference;
  transition: color 0.2s;
}
#home-link:hover {
  color: #fff;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  text-align: center;
  mix-blend-mode: difference;
}

#clock {
  font-family: "Inter", sans-serif;
  font-size: clamp(3rem, 14vw, 6.5rem);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}

#clock .sep {
  color: rgba(255, 255, 255, 0.3);
}

button {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 0.7rem 2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition:
    opacity 600ms ease,
    background 120ms,
    color 120ms;
}
button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button.hidden {
  opacity: 0;
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
