:root {
  --ink: #14231b;
  --paper: #f6f1e8;
  --paper-deep: #ebe4d7;
  --green: #296149;
  --orange: #f0784e;
  --white: #fffdf8;
  --line: rgba(20, 35, 27, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
.hero,
.games,
footer {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav > a:first-child {
  padding: 10px 0;
}

.nav-button {
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
  padding: 76px 0 90px;
  overflow: hidden;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #526058;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 25px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 27px;
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h1 em,
.closing h2 em {
  color: var(--orange);
  font-weight: 600;
}

.hero-text {
  max-width: 530px;
  margin-bottom: 35px;
  color: #526058;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 51px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 25px rgba(20, 35, 27, 0.14);
}

.available {
  color: #667168;
  font-size: 12px;
  font-weight: 600;
}

.apple {
  display: inline-block;
  margin-right: 5px;
  color: var(--ink);
  font-size: 8px;
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% 2% 4% 8%;
  z-index: -2;
  border-radius: 50% 44% 46% 55%;
  background: #dfe9d2;
  transform: rotate(-7deg);
}

.hero-icon {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 23%;
  box-shadow: 0 24px 60px rgba(25, 54, 41, 0.2);
}

.hero-icon-main {
  width: min(370px, 67%);
  right: 13%;
  top: 13%;
  transform: rotate(4deg);
}

.hero-icon-small {
  width: min(140px, 26%);
  border: 6px solid var(--paper);
}

.hero-icon-cat {
  left: 2%;
  bottom: 13%;
  transform: rotate(-8deg);
}

.hero-icon-shape {
  right: 1%;
  bottom: 0;
  transform: rotate(10deg);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(41, 97, 73, 0.34);
  border-radius: 50%;
}

.orbit-one {
  width: 79%;
  height: 42%;
  left: 8%;
  top: 31%;
  transform: rotate(-15deg);
}

.orbit-two {
  width: 60%;
  height: 79%;
  right: 15%;
  top: 7%;
  transform: rotate(38deg);
}

.spark {
  position: absolute;
  color: var(--orange);
  font-size: 22px;
}

.spark-one {
  left: 10%;
  top: 15%;
}

.spark-two {
  right: 3%;
  top: 26%;
  color: var(--green);
  font-size: 14px;
}

.games {
  padding: 98px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  max-width: 310px;
  margin-bottom: 4px;
  color: #647068;
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

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

.game-card {
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(200px, 0.88fr) 1.12fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(27px, 4vw, 52px);
  border: 1px solid rgba(20, 35, 27, 0.1);
  border-radius: 32px;
  color: var(--ink);
  overflow: hidden;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(26, 41, 33, 0.12);
  outline: none;
}

.game-card-featured {
  grid-column: 1 / -1;
  min-height: 500px;
  grid-template-columns: minmax(300px, 0.95fr) 1.05fr;
  padding-inline: clamp(40px, 7vw, 100px);
}

.garden {
  background: #dce8d1;
}

.cat-city {
  background: #f3d8bc;
}

.cat-two {
  background: #cbddec;
}

.shape-art {
  background: #f5d779;
}

.polygon {
  background: #d9d4f5;
}

.game-image-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.game-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  border-radius: 24%;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(25, 38, 31, 0.16);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover .game-icon,
.game-card:focus-visible .game-icon {
  transform: rotate(-2deg) scale(1.025);
}

.new-badge {
  position: absolute;
  z-index: 1;
  top: -12px;
  left: -13px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px rgba(118, 58, 38, 0.18);
}

.game-number {
  display: block;
  margin-bottom: 17px;
  color: rgba(20, 35, 27, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-info h3 {
  margin-bottom: 17px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.game-card:not(.game-card-featured) .game-info h3 {
  font-size: clamp(28px, 2.7vw, 42px);
}

.game-info p {
  max-width: 460px;
  margin-bottom: 27px;
  color: rgba(20, 35, 27, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.closing {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.eyebrow.light {
  color: #b8c4bb;
}

.closing h2 {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

footer {
  min-height: 145px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  color: #68736b;
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-art {
    width: min(650px, 100%);
    min-height: 500px;
    margin: -15px auto 0;
  }

  .game-card,
  .game-card-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game-card {
    padding: 35px;
  }

  .game-card .game-image-wrap {
    max-width: 270px;
  }

  .game-card-featured .game-image-wrap {
    max-width: 360px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p:first-of-type {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .games,
  footer {
    width: min(100% - 30px, 1220px);
  }

  .site-header {
    height: 76px;
  }

  nav > a:first-child {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .nav-button {
    padding: 9px 13px;
    font-size: 12px;
  }

  .hero {
    gap: 18px;
    padding: 58px 0 70px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-icon-main {
    width: 64%;
    right: 15%;
  }

  .hero-icon-small {
    border-width: 4px;
  }

  .games {
    padding: 72px 0 80px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .section-heading > p {
    text-align: left;
  }

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

  .game-card,
  .game-card-featured {
    grid-column: auto;
    min-height: auto;
    padding: 28px;
    border-radius: 25px;
  }

  .game-card .game-image-wrap,
  .game-card-featured .game-image-wrap {
    max-width: 290px;
  }

  .game-info h3,
  .game-card:not(.game-card-featured) .game-info h3 {
    font-size: 36px;
  }

  .closing {
    min-height: 480px;
  }

  .closing h2 {
    font-size: 53px;
  }

  .button-light {
    max-width: 310px;
  }

  footer {
    min-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
