@font-face {
  font-family: Source Sans 3;
  src: url('/fonts/pop-art/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Source Sans 3;
  src: url('/fonts/pop-art/source-sans-3-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Bangers;
  src: url('/fonts/pop-art/Bangers-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --cyan: #02D1D9;
  --pink: #FC01CA;
  --yellow: #FFE539;
  color-scheme: light;
}

:root[data-color-mode='dark'] {
  --paper: #000;
  --ink: #fff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.45 'Source Sans 3', system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
h1, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, summary { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.wrap { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }

.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; transform: translateY(-240%); padding: .65rem .9rem; color: #000; background: var(--yellow); }
.skip:focus { transform: none; }

.site-header { border-bottom: 2px solid var(--ink); position: relative; z-index: 2; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 46px; font-weight: 700; font-size: 24px; letter-spacing: -.035em; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin-left: auto; margin-right: clamp(4px, 2vw, 27px); }
.desktop-nav a, .mobile-nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .mobile-nav a:hover { text-decoration: underline; }
.desktop-nav [aria-current] { box-shadow: inset 0 -4px var(--cyan); }
.theme { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 16px; font-weight: 700; padding: 6px 9px; background: var(--paper); border: 0; white-space: nowrap; }
.theme-icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(to right, currentColor 50%, transparent 50%); }
.mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(36px, 4.4vw, 66px); align-items: center; padding-block: clamp(54px, 6.5vw, 94px) clamp(48px, 6vw, 83px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; font-weight: 700; font-size: 15px; letter-spacing: .095em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 15px; height: 9px; background: var(--cyan); border: 1px solid #000; }
.hero h1 { font: 400 clamp(50px, 5.7vw, 82px)/.94 Bangers, Impact, sans-serif; letter-spacing: .018em; }
.hero h1 span { display: block; margin-top: 4px; font-size: 1.48em; }
.intro { max-width: 34ch; margin-top: 21px; font-size: clamp(20px, 1.85vw, 26px); line-height: 1.22; }
.play { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; margin-top: 28px; padding: 12px 23px; border: 2px solid #000; color: #000; background: var(--yellow); box-shadow: 5px 5px var(--pink); font-size: 20px; font-weight: 700; text-align: center; text-decoration: none; }
.play:hover { background: var(--cyan); }
.play-icon { width: 0; height: 0; flex: 0 0 auto; border-left: 14px solid; border-block: 9px solid transparent; }
.game-preview { min-width: 0; }
.game-frame { position: relative; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px var(--ink); }
.game-frame img { width: 100%; }
.game-preview figcaption { margin-top: 17px; font-size: 15px; font-weight: 700; }
.game-preview figcaption span { padding-inline: 4px; }

main { border-bottom: 2px solid var(--ink); }

@media (max-width: 970px) {
  .header-inner > .theme, .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; align-items: center; padding-inline: 12px; min-height: 44px; border: 2px solid var(--ink); font-size: 16px; font-weight: 700; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { color: #000; background: var(--yellow); }
  .mobile-nav nav { display: grid; position: absolute; top: calc(100% + 2px); right: max(16px, calc((100% - 1220px) / 2)); min-width: 178px; background: var(--paper); border: 2px solid var(--ink); padding: 6px 13px; box-shadow: 4px 4px var(--ink); }
  .mobile-nav nav > .theme { padding-inline: 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 9px; }
  .brand { font-size: clamp(15px, 4.3vw, 19px); gap: 8px; white-space: nowrap; }
  .brand img { width: 31px; height: 31px; }
  .mobile-nav summary { padding-inline: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 35px 36px; gap: 35px; }
  .eyebrow { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(45px, 10.8vw, 70px); }
  .intro { margin-top: 16px; }
  .play { margin-top: 22px; font-size: 19px; min-height: 54px; padding-inline: 14px; }
  .game-frame { margin-right: 6px; box-shadow: 6px 6px var(--ink); }
  .game-preview figcaption { margin-top: 13px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand img { width: 27px; height: 27px; }
  .hero h1 { font-size: 42px; }
  .play { width: calc(100% - 5px); font-size: 17px; }
}
