/* Shared styles for every page. Pages link this with <link rel="stylesheet" href="/styles.css">. */

:root {
  --bg: #fff8f0;
  --card: #ffffff;
  --ink: #2b2140;
  --muted: #6b5f80;
  --accent: #ff5d8f;
  --accent-2: #5b8cff;
  --accent-3: #ffc94d;
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17132a;
    --card: #231d3d;
    --ink: #f4efff;
    --muted: #b3a8cc;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { margin-top: 40px; }
a { color: var(--accent-2); }

.subtitle { color: var(--muted); font-size: 1.15rem; margin: 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(43, 33, 64, 0.08);
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px) rotate(-0.5deg); }
.card .emoji { font-size: 2.5rem; }
.card h3 { margin: 8px 0 4px; }
.card p { margin: 0; color: var(--muted); }

button, .button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

.back { display: inline-block; margin-bottom: 16px; }
