@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(fonts/figtree-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Lilita; font-display: swap; src: url(fonts/lilita-one-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Bungee; font-display: swap; src: url(fonts/bungee-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Bowlby; font-display: swap; src: url(fonts/bowlby-one-latin-400-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f6f0e4;
  --ink: #17151f;
  --muted: #5d5849;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 2;
  padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Studio frame */
.hero { overflow: hidden; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none;
}
.nav-links { display: flex; gap: 20px; font-weight: 600; font-size: 16px; }
.nav-links a { text-decoration: none; padding-block: 8px; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links { align-items: center; }
/* The tester sign-up stands out from the plain links: the same yellow as its section's buttons. */
.nav-links .nav-pill {
  padding: 8px 16px; border-radius: 99px;
  background: #f7b51b; color: var(--ink); font-weight: 800;
  box-shadow: 0 3px 0 #9a6a0c;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nav-links .nav-pill:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 0 #9a6a0c; }
.nav-links .nav-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a6a0c; }

.hero-copy { padding-block: clamp(32px, 7vw, 76px) clamp(36px, 6vw, 64px); }
h1 {
  font-weight: 800;
  font-size: clamp(46px, 9.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { max-width: 34em; margin-top: 26px; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--muted); }
.hero-link {
  display: inline-block; margin-top: 22px; padding-block: 8px;
  font-weight: 800; text-underline-offset: 5px; text-decoration-thickness: 2px;
}

.stack {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(10px, 2vw, 26px);
  height: clamp(300px, 40vw, 500px);
  width: max(100%, 860px);
  position: relative; left: 50%; transform: translateX(-50%);
}
.stack > img {
  width: clamp(160px, 21vw, 268px);
  flex: none;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background: var(--ink);
}
.stack > img:nth-child(1) { transform: translateY(64px) rotate(-5deg); }
.stack > img:nth-child(2) { transform: translateY(22px) rotate(-2deg); }
.stack > img:nth-child(4) { transform: translateY(22px) rotate(2deg); }
.stack > img:nth-child(5) { transform: translateY(64px) rotate(5deg); }
/* Vacancy's logo fills the same tall shape as the phones beside it */
.poster {
  flex: none;
  width: clamp(160px, 21vw, 268px);
  aspect-ratio: 1 / 2;
  display: grid; place-items: center;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background: #0a0a0a;
  overflow: hidden;
}
.poster img {
  width: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}

/* Game sections take on each game's own colors and type */
.game {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(56px, 8vw, 104px);
}
.game-grid {
  display: grid; gap: clamp(40px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.game:nth-of-type(even) .game-grid { grid-template-columns: auto minmax(0, 1fr); }
.game:nth-of-type(even) .phone { order: -1; }

.game-copy { max-width: 560px; }
.status {
  display: inline-block; margin-bottom: 18px; padding: 4px 12px;
  border: 2px solid currentColor; border-radius: 99px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
.game h2 { font-size: clamp(48px, 7.4vw, 84px); line-height: 1; font-weight: 400; }
.pitch { margin-top: 16px; font-size: clamp(20px, 2.3vw, 24px); line-height: 1.35; font-weight: 600; }

.facts { margin-top: 22px; padding: 0; list-style: none; display: grid; gap: 6px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--mark);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.play {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 14px; box-shadow: 0 5px 0 var(--btn-edge);
  font-weight: 800; font-size: 19px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.play:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge); }
.play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge); }
.more { padding-block: 10px; font-weight: 600; text-underline-offset: 4px; }

.phone {
  width: clamp(240px, 27vw, 310px);
  border: 7px solid var(--frame);
  border-radius: 36px;
  background: var(--frame);
  box-shadow: 0 22px 50px rgb(0 0 0 / .28);
}

.landscape {
  width: 100%;
  border: 3px solid var(--frame);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgb(0 0 0 / .4);
}

.vacancy {
  --bg: #120b09; --fg: #f5e9d8; --mark: #ff4238; --frame: #5c2a1e;
  --btn-bg: #ff4238; --btn-fg: #120b09; --btn-edge: #7a1410;
}
.vacancy .game-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.vacancy h2 img { width: clamp(270px, 36vw, 440px); margin-left: -3%; }

.paw {
  --bg: #f58f3b; --fg: #2b2233; --mark: #2b2233; --frame: #2b2233;
  --btn-bg: #2b2233; --btn-fg: #fff; --btn-edge: #1c5157;
}
.paw h2 { font-family: Lilita, sans-serif; }

.getaway {
  --bg: #15143a; --fg: #eef0ff; --mark: #1fcb9d; --frame: #45447f;
  --btn-bg: #eef0ff; --btn-fg: #15143a; --btn-edge: #ff4d6a;
}
.getaway h2 { font-family: Bungee, sans-serif; }
.getaway h2 em { color: #ff4d6a; }

.ramen {
  --bg: #f7b51b; --fg: #132a33; --mark: #0f5c6e; --frame: #0f5c6e;
  --btn-bg: #132a33; --btn-fg: #fdeec8; --btn-edge: #b6721a;
}
.ramen h2 { font-family: Bowlby, sans-serif; font-size: clamp(42px, 6.4vw, 72px); }

.shelf {
  --bg: #2c2550; --fg: #fffbf0; --mark: #ffd23f; --frame: #4b4180;
  --btn-bg: #ffd23f; --btn-fg: #1d1a2b; --btn-edge: #8a6a00;
}
.shelf h2 { font-family: Lilita, sans-serif; color: #ffd23f; }

/* Landscape games: the screenshot takes the wider column, on the left in even sections */
.wide .game-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.game.wide:nth-of-type(even) .game-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.game.wide:nth-of-type(even) .landscape { order: -1; }

@font-face { font-family: Bangers; font-display: swap; src: url(fonts/bangers-latin-400-normal.woff2) format("woff2"); }
.ktc {
  --bg: #2b271f; --fg: #f6f1e7; --mark: #ffcc00; --frame: #5b5040;
  --btn-bg: #ffcc00; --btn-fg: #17150f; --btn-edge: #8c6a00;
}
/* Matches the game's title card: yellow Bangers on two lines with a hard black drop shadow */
.ktc h2 { font-family: Bangers, Impact, sans-serif; color: #ffcc00; line-height: .95; letter-spacing: 0.03em; text-shadow: 0.04em 0.04em 0 #000; }

.eggs {
  --bg: #c9442a; --fg: #fff6e3; --mark: #ffc93c; --frame: #6b2412;
  --btn-bg: #ffc93c; --btn-fg: #3b1d10; --btn-edge: #8a5a00;
}
.eggs h2 img { width: clamp(240px, 30vw, 360px); filter: drop-shadow(0 6px 0 rgb(0 0 0 / .18)); }

/* Testers */
.testers {
  --bg: var(--ink); --fg: var(--paper); --mark: #f7b51b;
  --btn-bg: #f7b51b; --btn-fg: var(--ink); --btn-edge: #9a6a0c;
  background: var(--bg); color: var(--fg);
  padding-block: clamp(56px, 8vw, 104px);
}
.testers h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 14em; text-wrap: balance; }
.testers .pitch { max-width: 36em; }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: clamp(32px, 5vw, 52px) 0 0;
  display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps > li {
  counter-increment: step; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 58px 22px 24px; border-radius: 18px; background: rgb(255 255 255 / .07);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 18px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--mark); color: var(--ink); font-weight: 800; font-size: 16px;
}
.steps h3 { font-size: 21px; font-weight: 800; }
.steps p { color: rgb(246 240 228 / .78); font-size: 16px; }
.steps .play { margin-top: auto; min-height: 48px; padding: 0 20px; font-size: 17px; }
.optins { list-style: none; padding: 0; margin-top: auto; display: grid; gap: 14px; justify-items: start; }
.optins .play { margin-top: 0; }
.soon { display: inline-block; padding: 6px 12px; border: 2px dashed rgb(246 240 228 / .4); border-radius: 12px; font-weight: 600; font-size: 15px; }
.fine { margin-top: 24px; font-size: 15px; color: rgb(246 240 228 / .7); }

/* Contact */
.contact { padding-block: clamp(64px, 9vw, 112px) 28px; }
.contact h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.email {
  display: inline-block; margin-top: 8px;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  font-size: clamp(36px, 9vw, 104px);
  text-underline-offset: .12em; text-decoration-thickness: .06em;
  overflow-wrap: anywhere;
}
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  margin-top: clamp(48px, 7vw, 88px); padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 15px; color: var(--muted);
}

@media (max-width: 760px) {
  .game-grid,
  .game:nth-of-type(even) .game-grid,
  .vacancy .game-grid,
  .wide .game-grid,
  .game.wide:nth-of-type(even) .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game:nth-of-type(even) .phone,
  .game.wide:nth-of-type(even) .landscape { order: 0; }
  .phone { justify-self: center; width: min(76vw, 300px); }
  .stack { height: 330px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* On narrow phones the nav keeps only Be a tester: the hero links to the games, and contact is at the bottom.
   That keeps the wordmark on one line. */
@media (max-width: 430px) {
  .brand { white-space: nowrap; font-size: 18px; }
  .nav-links a[href="#games"], .nav-links a[href="#contact"] { display: none; }
  .nav-links a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play, .nav-links .nav-pill { transition: none; }
}
