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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #000;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: calc(1.5rem + env(safe-area-inset-top)) calc(1.5rem + env(safe-area-inset-right))
    calc(1.5rem + env(safe-area-inset-bottom)) calc(1.5rem + env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.35);
}

.hero-overlay img#site-title {
  width: min(450px, 90vw);
  max-height: 45vh;
  object-fit: contain;
  height: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.clock {
  font-family: 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  font-weight: bold;
  font-size: clamp(0.75rem, 3vw, 1rem);
  letter-spacing: 0.05em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-overlay {
    gap: 0.5rem;
  }

  .clock {
    letter-spacing: 0.02em;
  }
}

/* Portrait only on phones: block landscape with a rotate prompt */
.rotate-notice {
  display: none;
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    display: none;
  }

  .rotate-notice {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #000;
    color: #fff;
    font-family: 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    text-align: center;
  }
}
