@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #191722;
  --paper: #faf8f2;
  --soft: #eae7f4;
  --muted: #585266;
  --lime: #dafa77;
  --purple: #b4a0fa;
  --peach: #ffad88;
  --line: #d5cedf;
  --serif: Fraunces, Georgia, serif;
  font-family: "Space Grotesk", system-ui, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #8361df; outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
.frame { width: min(1250px, calc(100% - 112px)); margin-inline: auto; }
section[id] { scroll-margin-top: 18px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: none; }
.brand-section { background: var(--ink); color: var(--paper); }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.site-header { border-bottom: 1px solid #f6eeff26; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.038em; white-space: nowrap; }
.brand-lockup img { width: 32px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: .95rem; font-weight: 600; }
.site-header nav a:hover { color: var(--lime); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(35px, 6.3vw, 110px);
  padding-block: clamp(54px, 7.2vw, 99px);
}

.eyebrow { color: #64529a; font-size: .875rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.hero .eyebrow { color: #cebcff; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.062em; }
h1 { margin-top: 16px; font-size: clamp(4.3rem, 8.65vw, 9rem); line-height: .83; }
h1 span { display: block; color: var(--lime); margin-top: .12em; }
.hero-intro { max-width: 29ch; margin-top: 24px; color: #e1dceb; font-size: clamp(1.06rem, 1.63vw, 1.35rem); line-height: 1.45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 51px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color .16s ease, transform .16s ease;
}
.button:hover { transform: translateY(-2px); }
.button-lime { margin-top: 27px; background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #ecffb5; }
.button-dark { margin-top: 24px; background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #382954; }

.brand-art {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
}

.brand-art img {
  width: min(70%, 350px);
  height: auto;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .83fr);
  align-items: end;
  gap: clamp(32px, 7vw, 95px);
  padding-block: 75px 82px;
}

.studio h2 {
  max-width: 12ch;
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.2vw, 5.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.047em;
}

.studio-copy { max-width: 44ch; padding-bottom: 2px; color: var(--muted); font-size: clamp(1.05rem, 1.42vw, 1.21rem); line-height: 1.52; }
.studio-copy p + p { margin-top: 13px; }

.games { background: var(--soft); }
.games-inner { padding-block: 51px 73px; }
.section-header { padding-bottom: 23px; border-bottom: 1px solid #c7bdd9; }
.section-header h2 { font-size: clamp(2.6rem, 4.9vw, 4.35rem); line-height: 1; }
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  margin-top: 27px;
  overflow: hidden;
  border: 1px solid #cfc5dc;
  border-radius: 16px;
  background: var(--paper);
}

.game-art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 353px;
  background: radial-gradient(ellipse at 38% 48%, #ffe0a7, #f8a76f 79%);
}
.game-art::before {
  position: absolute;
  z-index: -1;
  left: -6%;
  width: 83%;
  aspect-ratio: 1;
  border: 1px solid #fff6dbb0;
  border-radius: 50%;
  box-shadow: 0 0 0 26px #ffebc43b;
  content: "";
}
.game-mascot { position: relative; z-index: 1; width: min(57%, 345px); height: auto; margin-right: -7%; transform: translate(-4%, 4%) rotate(-7deg); filter: drop-shadow(5px 15px 12px #81492c51); }
.game-screen { width: min(26%, 170px); height: auto; border: 5px solid #29233b; border-radius: 15px; box-shadow: 0 14px 20px #7e472a64; transform: translateX(4%) rotate(9deg); }

.game-content { align-self: center; padding: clamp(24px, 4vw, 51px); }
.game-category { color: #5f478f; }
.game-content h3 { max-width: 13ch; margin-top: 12px; font-size: clamp(2.3rem, 4.45vw, 4.15rem); line-height: .98; }
.game-content > p:not(.eyebrow) { max-width: 36ch; margin-top: 15px; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.game-details { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 15px 0 0; padding: 0; color: var(--muted); font-size: .9rem; list-style: none; }
.game-details li + li::before { display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: #8266b1; content: ""; }
.play-icon { width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor; }

.site-footer { min-height: 91px; }
.site-footer small { color: #d2cbdf; font-size: .875rem; }

@media (max-width: 970px) {
  .frame { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  h1 { font-size: clamp(4rem, 8.65vw, 7rem); }
  .studio { padding-block: 58px 65px; }
  .game-art { min-height: 335px; }
}

@media (max-width: 680px) {
  .frame { width: calc(100% - 36px); }
  .site-header, .site-footer { min-height: 68px; gap: 12px; }
  .site-header nav { gap: 13px; font-size: .9rem; }
  .brand-lockup { gap: 6px; font-size: .96rem; }
  .brand-lockup img { width: 26px; }
  .hero, .studio, .game { grid-template-columns: 1fr; }
  .hero { padding-block: 42px 30px; gap: 31px; }
  h1 { font-size: clamp(3.45rem, 13vw, 5.4rem); }
  .hero-intro { margin-top: 19px; }
  .button-lime { margin-top: 22px; }
  .brand-art { padding: 15px 0 11px; }
  .brand-art img { width: min(60%, 235px); }
  .studio { gap: 18px; padding-block: 43px 47px; }
  .games-inner { padding-block: 38px 48px; }
  .section-header { padding-bottom: 17px; }
  .game { margin-top: 19px; }
  .game-art { min-height: 0; aspect-ratio: 1.35; }
  .game-content { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
