:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #57534e;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --on-accent: #ffffff;
  --focus: #4338ca;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f5f5f4;
    --muted: #a8a29e;
    --accent: #a5b4fc;
    --accent-hover: #c7d2fe;
    --on-accent: #1e1b4b;
    --focus: #c7d2fe;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 32rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 span {
  color: var(--accent);
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  text-wrap: balance;
}

.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
