:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5c6370;
  --accent: #005BAA;
  --accent-alt: #f47f20;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card: #1e2127;
    --text: #e8eaed;
    --muted: #a0a6b0;
    --accent: #005BAA;
    --accent-alt: #f47f20;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

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

header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1rem 3rem;
}

.card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  flex: 1;
}

.card a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.card a:hover,
.card a:focus-visible {
  background: var(--accent);
  color: #fff;
}

.card a.alternative {
  border: 2px solid var(--accent-alt);
  color: var(--accent-alt);
}

.card a.alternative:hover,
.card a.alternative:focus-visible {
  background: var(--accent-alt);
  color: #fff;
}

footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
