:root {
  --cream: #FAF5E6;
  --ink: #1F2A1C;
  --muted: #5B6652;
  --leaf: #2F5D2A;
  --leaf-deep: #244A20;
  --lime: #A8D62E;
  --lime-pale: #F1F7C8;
  --coral: #FF6F59;
  --rule: #D9D3BE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

a { color: var(--leaf); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, .reel-track:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
main a:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible { outline-color: var(--leaf); }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.brand img { width: 44px; height: 44px; display: block; }
.brand small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--leaf);
  margin-left: 4px;
}
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 0;
}
.nav a:hover { color: var(--leaf); text-decoration: underline; }

/* hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero-text { flex: 1 1 460px; min-width: 0; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0;
}
h1 {
  margin: 16px 0 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 700;
}
.lede {
  margin: 24px 0 0;
  font-size: 20px;
  color: var(--muted);
  max-width: 520px;
}
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  min-height: 48px;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: #9BC826; color: var(--ink); }
.btn-outline { border: 2px solid var(--leaf); color: var(--leaf); padding: 12px 26px; }
.btn-outline:hover { background: var(--lime-pale); color: var(--leaf); }
.hero-art { flex: 0 1 340px; display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); height: auto; }

/* game showcase */
.section { padding-bottom: 72px; }
.game {
  background: var(--leaf);
  color: var(--cream);
  border-radius: 28px;
  padding: 48px 48px 36px;
}
.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.game-text { flex: 1 1 380px; min-width: 0; }
.tag {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game h2 { margin: 20px 0 0; font-size: clamp(36px, 6vw, 48px); line-height: 1.1; }
.game-text p { margin: 16px 0 0; font-size: 19px; color: #E6EBD4; max-width: 480px; }
.game-art { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; }

/* the phone frame */
.stage {
  position: relative;
  width: min(270px, 72vw);
  aspect-ratio: 536 / 956;
  border-radius: 34px;
  border: 4px solid var(--lime);
  background: var(--leaf-deep);
  overflow: hidden;
}
.stage img, .stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stage [hidden] { display: none; }
.sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 42, 28, 0.82);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sound:hover { background: var(--ink); }
.sound svg { width: 22px; height: 22px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }

.stage-caption {
  margin: 16px 0 0;
  text-align: center;
  min-height: 3.2em;
  font-size: 15px;
  color: #E6EBD4;
}
.stage-caption strong { display: block; font-size: 17px; color: var(--cream); }

/* the scrolling pill of videos and screenshots */
.reel {
  position: relative;
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 14px 64px;
}
.reel-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  position: relative;
  padding: 4px 2px;
  border-radius: 999px;
}
.reel-track::-webkit-scrollbar { display: none; }
.thumb {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--leaf-deep);
  scroll-snap-align: center;
  display: block;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: rgba(168, 214, 46, 0.6); }
.thumb[aria-current="true"] { border-color: var(--lime); box-shadow: 0 0 0 2px var(--leaf); }
.thumb.is-video::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 42, 28, 0.85);
}
.thumb.is-video::before {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 10px;
  z-index: 1;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--cream);
}
.reel-sep {
  flex: 0 0 auto;
  width: 2px;
  height: 80px;
  background: rgba(250, 245, 230, 0.35);
  border-radius: 2px;
  margin: 0 6px;
}
.reel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.reel-btn:hover { background: var(--lime-pale); }
.reel-btn svg { width: 22px; height: 22px; }
.reel-btn.prev { left: 12px; }
.reel-btn.next { right: 12px; }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-bottom: 72px; }
.about h2 { flex: 0 1 280px; margin: 0; font-size: 36px; line-height: 1.15; }
.about p { flex: 1 1 420px; min-width: 0; margin: 0; font-size: 19px; color: var(--muted); max-width: 640px; }

/* contact */
.contact {
  background: var(--lime-pale);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact-text { flex: 1 1 360px; min-width: 0; }
.contact h2 { margin: 0; font-size: 36px; line-height: 1.15; }
.contact p { margin: 12px 0 0; font-size: 18px; color: var(--muted); }
.btn-dark { background: var(--ink); color: var(--cream); font-size: 18px; padding: 16px 32px; overflow-wrap: anywhere; }
.btn-dark:hover { background: var(--leaf); color: var(--cream); }

/* footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { padding: 8px 0; display: inline-block; }

/* text pages (privacy, 404) */
.prose { max-width: 720px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(34px, 6vw, 48px); }
.prose h2 { margin: 40px 0 0; font-size: 24px; }
.prose p, .prose li { font-size: 18px; color: var(--muted); }
.prose .updated { font-size: 15px; }

@media (max-width: 560px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .btn-dark { font-size: 16px; padding: 16px 22px; }
  .game, .contact { padding: 32px 20px 24px; border-radius: 22px; }
  .reel { padding: 10px 12px; }
  .reel-btn { display: none; }
}

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