* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 8vw, 60px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  background: #1e1e2f;
  color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

.clock {
  text-align: center;
  padding: 12px;
}

h1 {
  font-weight: 500;
  font-size: clamp(1rem, 4vw, 1.4rem);
  margin: 0 0 10px;
  opacity: 0.8;
  letter-spacing: 0.03em;
}

p {
  font-size: clamp(2.2rem, 11vw, 3.5rem);
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.date {
  display: block;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  opacity: 0.6;
  margin-top: 6px;
}

@media (max-width: 480px) {
  body {
    flex-direction: column;
    gap: clamp(24px, 10vw, 40px);
  }
}

@media (max-height: 400px) {
  body {
    flex-direction: row;
    gap: clamp(20px, 6vw, 50px);
  }
  p {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
}
