:root {
  color-scheme: light dark;
  --background: #f6f5f3;
  --text: #1b1b1a;
  --muted: #6d6b67;
  --button: #1b1b1a;
  --button-text: #f6f5f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141413;
    --text: #ecebe8;
    --muted: #9a9893;
    --button: #ecebe8;
    --button-text: #141413;
  }
}

* { box-sizing: border-box; }

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

body {
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--background);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

main {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

main[hidden] { display: none; }

img { display: block; margin: 0 auto 20px; }

h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 20px; color: var(--muted); }

button {
  min-width: 160px;
  margin-bottom: 28px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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

.note { margin: 0 0 6px; font-size: 13px; }

a { color: var(--text); }
