:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a1f17;
  --muted: #6b5d52;
  --border: #e6ddd2;
  --accent: #8a5a3b;
  --accent-text: #6f4529;
  --shadow: 0 1px 2px rgb(42 31 23 / 0.06), 0 4px 16px rgb(42 31 23 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1512;
    --surface: #241d18;
    --text: #f2ebe4;
    --muted: #b3a597;
    --border: #3a2f27;
    --accent: #d9a77c;
    --accent-text: #e6bc96;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 16px 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 4rem;
  height: 4rem;
  flex: none;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 1rem 0 2.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .go {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent-text);
  font-weight: 600;
}

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

footer {
  padding: 1.5rem 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

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