:root {
  --paper: #fbf7ee;
  --ink: #6b5a63;
  --ink-soft: #a0909a;
  --blush: #f2a7b5;
  --mint: #9fd8cf;
  --sky: #a9cbe8;
  --shadow: 0 18px 40px -18px rgba(150, 110, 120, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Quicksand", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 42px 20px 8px;
}

.wordmark {
  font-family: "Pacifico", "Quicksand", cursive;
  font-size: clamp(34px, 6vw, 52px);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.wordmark span {
  color: var(--blush);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--blush);
}

.hero {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  max-height: 46vh;
  background: url("images/hero.jpg") center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  animation: fadeUp 1.4s ease both;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}

.intro {
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 36px;
  animation: fadeUp 1.4s 0.15s ease both;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
}

.game {
  display: block;
  text-decoration: none;
  text-align: center;
  animation: fadeUp 1.2s ease both;
}
.game:nth-child(1) { animation-delay: 0.3s; }
.game:nth-child(2) { animation-delay: 0.45s; }

.game .art {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #fff;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s;
}
.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.game:hover .art {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 28px 50px -20px rgba(150, 110, 120, 0.45);
}
.game:hover img {
  transform: scale(1.04);
}

.game h2 {
  font-weight: 700;
  font-size: 24px;
  margin: 22px 0 4px;
}
.game p {
  margin: 0 auto 14px;
  max-width: 34ch;
  color: var(--ink-soft);
  line-height: 1.5;
}
.play {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--blush);
  padding: 10px 26px;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s;
}
.game:hover .play {
  background: #ec8fa2;
  transform: scale(1.05);
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  animation: fadeUp 1.4s ease both;
}
.about img {
  width: min(420px, 80vw);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
}
.about p {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.7;
  margin: 0 0 18px;
}
.about .loves {
  color: var(--ink-soft);
}

footer {
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  padding: 30px 20px 50px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
