:root {
  --bg: #f4f1ea;
  --ink: #111;
  --muted: #6b665c;
  --accent: #e4572e;
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #111; --ink: #f4f1ea; --muted: #a39d90; --accent: #ff7a50; }
}

* { box-sizing: border-box; }

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

body {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
}

h1::after { content: ""; }

#thing {
  min-height: 3em;
  margin: 1.2em auto .8em;
  max-width: 32ch;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  color: var(--muted);
  transition: opacity .25s;
}

#thing.out { opacity: 0; }

button {
  font: inherit;
  font-size: .95rem;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: .55em 1.3em;
  cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {
  #thing { transition: none; }
}
