:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #111111;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
}

.answer {
  margin: 0;
  font-size: clamp(4rem, 24vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.78;
  white-space: nowrap;
}

.bottom-links {
  position: fixed;
  z-index: 1;
  bottom: max(0.25rem, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: calc(100% - 1rem);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: nowrap;
  transform: translateX(-50%);
}

.bottom-links a {
  padding: 0.75rem 0.25rem;
  color: inherit;
  text-underline-offset: 0.2em;
}

.bottom-links a:focus-visible,
.info-page a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.info-page main {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  align-items: flex-start;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2.5rem);
  text-align: left;
}

.info-page h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.info-page p {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

.info-page a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.info-page .back-link {
  margin-top: 0.75rem;
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d0d0d;
    --text: #f5f5f2;
  }
}
