:root {
  color: #172033;
  background: #f7fbff;
  font-family:
    Inter, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgb(52 171 241 / 12%), transparent 23rem),
    radial-gradient(circle at 90% 55%, rgb(145 218 255 / 16%), transparent 28rem),
    #f7fbff;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    max(18px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    18px
    max(24px, env(safe-area-inset-left));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgb(46 168 240 / 20%);
}

.brand strong {
  color: #2ea8f0;
  font-weight: 800;
}

.coffee-link {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgb(23 32 51 / 10%);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 8px 26px rgb(40 93 125 / 8%);
  font-size: 0.84rem;
  font-weight: 750;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.coffee-link:hover {
  border-color: rgb(46 168 240 / 38%);
  box-shadow: 0 12px 30px rgb(40 93 125 / 13%);
  transform: translateY(-2px);
}

main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    clamp(48px, 7vw, 80px)
    max(24px, env(safe-area-inset-right))
    96px
    max(24px, env(safe-area-inset-left));
}

.hero {
  position: relative;
  max-width: 850px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -76px;
  right: -210px;
  width: 370px;
  height: 370px;
  border: 1px solid rgb(46 168 240 / 13%);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgb(46 168 240 / 4%),
    0 0 0 94px rgb(46 168 240 / 3%);
  content: "";
}

.eyebrow,
.section-kicker,
.game-label {
  margin: 0;
  color: #168bcc;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 18px 0 0;
  color: #172033;
  font-size: clamp(2.9rem, 6.6vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero h1 span {
  color: #2ea8f0;
}

.hero-copy {
  margin: 27px 0 0;
  color: #647086;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.games {
  margin-top: clamp(84px, 10vw, 120px);
}

.section-heading {
  display: flex;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(23 32 51 / 10%);
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.game-count {
  color: #8b95a7;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.game-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(23 32 51 / 8%);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(40 93 125 / 11%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.game-card:hover {
  box-shadow: 0 30px 80px rgb(40 93 125 / 17%);
  transform: translateY(-5px);
}

.game-card:focus-visible,
.coffee-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgb(46 168 240 / 48%);
  outline-offset: 4px;
}

.game-art {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(145deg, #075f50, #033f37 72%);
  background-size: 26px 26px, 26px 26px, auto;
}

.game-art::before,
.game-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.game-art::before {
  top: -80px;
  right: -65px;
  width: 250px;
  height: 250px;
  background: rgb(63 224 177 / 16%);
}

.game-art::after {
  bottom: -105px;
  left: -75px;
  width: 270px;
  height: 270px;
  border: 1px solid rgb(167 243 208 / 18%);
}

.art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 160px;
  border-radius: 50%;
  background: rgb(110 231 183 / 18%);
  filter: blur(36px);
  transform: translate(-50%, -50%);
}

.tile {
  display: grid;
  position: absolute;
  z-index: 1;
  width: 92px;
  height: 116px;
  border: 7px solid #e8e7df;
  border-bottom-width: 12px;
  border-radius: 13px;
  place-items: center;
  background: #fffdf4;
  box-shadow: 9px 13px 0 #cfcfc8, 0 22px 30px rgb(0 0 0 / 23%);
  font-family: serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.tile-one {
  top: 71px;
  left: calc(50% - 130px);
  color: #18664d;
  transform: rotate(-9deg);
}

.tile-two {
  z-index: 2;
  top: 49px;
  left: calc(50% - 42px);
  color: #bb3150;
  transform: rotate(3deg);
}

.tile-three {
  top: 83px;
  left: calc(50% + 51px);
  color: #d82f37;
  transform: rotate(10deg);
}

.game-info {
  display: grid;
  min-height: 270px;
  padding: 30px;
  align-content: space-between;
  gap: 28px;
}

.game-info h3 {
  margin: 8px 0 10px;
  font-family: serif;
  font-size: 2.25rem;
  letter-spacing: 0.08em;
}

.game-description {
  max-width: 31rem;
  margin: 0;
  color: #687387;
  line-height: 1.75;
}

.play-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  background: #2ea8f0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.play-button span {
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.game-card:hover .play-button span {
  transform: translateX(4px);
}

footer {
  display: flex;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding:
    28px
    max(24px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  border-top: 1px solid rgb(23 32 51 / 9%);
  align-items: center;
  justify-content: space-between;
  color: #8b95a7;
  font-size: 0.78rem;
}

footer a:hover {
  color: #168bcc;
}

@media (max-width: 720px) {
  .coffee-link span:last-child {
    display: none;
  }

  .coffee-link {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 1.05rem;
  }

  main {
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .hero h1 {
    letter-spacing: -0.055em;
  }

  .hero::after {
    display: none;
  }

  .games {
    margin-top: 76px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 245px;
  }

  .tile {
    width: 78px;
    height: 100px;
    font-size: 2rem;
  }

  .tile-one {
    top: 67px;
    left: calc(50% - 109px);
  }

  .tile-two {
    top: 47px;
    left: calc(50% - 35px);
  }

  .tile-three {
    top: 75px;
    left: calc(50% + 43px);
  }

  .game-info {
    min-height: 260px;
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
