:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --text: #1f1f1c;
  --muted: #5c5c55;
  --accent: #8a4b12;
  --card: #ffffff;
  --border: #e6e3da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171714;
    --text: #efeee9;
    --muted: #aaa99f;
    --accent: #e8a765;
    --card: #22221e;
    --border: #35352f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

main {
  width: 100%;
  max-width: 36rem;
}

.card {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 8vw, 3rem) clamp(1.5rem, 10vw, 4rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
}

.card h1 {
  margin: 0;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

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

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