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

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  transition: background 1s ease, color 1s ease;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.8;
  padding: 2rem;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #faf8f5;
  --fg: #2c2c2c;
  --ring: rgba(44, 44, 44, 0.08);
  --ring-fill: rgba(44, 44, 44, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --fg: #e0ddd8;
    --ring: rgba(224, 221, 216, 0.08);
    --ring-fill: rgba(224, 221, 216, 0.2);
  }
}

#reflection {
  max-width: 36rem;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  transition: opacity 2s ease-in;
}

#reflection.visible {
  opacity: 1;
}

#bottom-bar {
  position: fixed;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 2s ease-in 1s;
}

#bottom-bar.visible {
  opacity: 1;
}

#bottom-bar canvas {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#bottom-bar canvas:hover {
  opacity: 0.8;
}

#breath {
  cursor: default !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  #reflection,
  #bottom-bar {
    transition: none;
    opacity: 1;
  }

  body {
    transition: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.25rem;
    padding: 1.5rem;
  }
}
