/* simonalex.com: a date and a running clock, centered. */

:root {
  --bg: #f9f6ee;   /* cream */
  --fg: #163e3e;   /* deep teal */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #163e3e;
    --fg: #f9f6ee;
  }
}

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clock {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: "PT Mono", ui-monospace, monospace;
  font-size: 20px;
  line-height: 1.2;
  white-space: pre;
  /* Framer appear effect: fade in over 0.5s */
  animation: appear 0.5s cubic-bezier(0.5, 0, 0.88, 0.77) both;
}

@keyframes appear {
  from { opacity: 0.001; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .clock { animation: none; }
}
