/* Colours taken from the bird logo */
:root {
  --bg: #fff6e3;
  --ink: #402b60;
  --ink-soft: #6b5a86;
  --sun: #febd3f;
  --lavender: #cfc9f4;
  --sky: #bfe6f9;
  --peach: #ffd98a;
  --card: #fff;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.05rem/1.55 ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.4rem; margin: 0 0 1rem; }
main, .me, footer { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
section { margin: 0 0 3rem; }
.center { text-align: center; margin-top: 1.5rem; }

/* Header */
.me { text-align: center; padding-top: 3rem; padding-bottom: 2.5rem; }
.avatar { width: 140px; border-radius: 50%; border: 4px solid var(--ink); margin: 0 auto 1rem; }
.me h1 { font-size: 2.2rem; }
.me p { margin: .25rem 0; }
.sub { color: var(--ink-soft); }
.links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Pills: links and store buttons */
.pill {
  display: inline-block;
  padding: .35em 1em;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--card);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.pill:hover { background: var(--lavender); }
.pill-main { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.pill-main:hover { background: var(--peach); }

/* Cards, outlined like the logo */
.card {
  display: block;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
}
.card img { border-radius: 10px; width: 100%; }
.card h3 { margin: .7rem 0 .2rem; font-size: 1.1rem; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--ink-soft); }

.main-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.main-games .card:nth-child(1) { background: var(--lavender); }
.main-games .card:nth-child(2) { background: var(--sky); }
.main-games .card p { color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .8rem !important; }

.itch { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.itch .card { transition: transform .12s; }
.itch .card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--peach); }
.itch .card img { aspect-ratio: 315 / 250; object-fit: cover; }
.itch .card p { font-size: .92rem; }

footer { text-align: center; padding-bottom: 2rem; color: var(--ink-soft); font-size: .95rem; }
footer p { margin: .2rem 0; }
