/* Cloudy Giraffe Games: pale winter sky, logo navy, giraffe gold, Plow Crew orange as the one loud accent. */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("/assets/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --sky: #EEF4FB;
  --sky-2: #E1EBF7;
  --white: #FFFFFF;
  --navy: #1D2B4F;
  --night: #14213D;
  --ink: #1D2B4F;
  --muted: #4E5D7C;
  --line: #CFDBEB;
  --gold: #F4B942;
  --orange: #D9590A;      /* readable on light */
  --orange-hi: #FF7A1A;
  --display: "Fredoka", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 50; }
.skip:focus { left: 12px; }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.6vw, 46px); }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 244, 251, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; }
.brand em { font-style: normal; color: var(--orange); }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--navy); }

/* hero: the splash plays on the logo's own night navy */
.hero { background: var(--night); color: var(--white); padding-block: 40px 64px; }
.hero-inner { display: grid; gap: 32px; }
.stage { position: relative; border-radius: 18px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; max-width: 100%; }
.stage video { width: 100%; height: 100%; object-fit: cover; }
.replay { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.14); color: var(--white); font: 700 14px var(--body); cursor: pointer; backdrop-filter: blur(6px); }
.replay:hover { background: rgba(255,255,255,0.24); }
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-text { display: grid; gap: 14px; max-width: 46em; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); }
.lede { font-size: clamp(18px, 2vw, 20px); color: #D7E0F0; }

/* bands */
.band { padding-block: clamp(64px, 9vw, 104px); }
.band.alt { background: var(--white); border-block: 1px solid var(--line); }

/* game card */
.game { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.game-shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(29, 43, 79, 0.18); }
.game-shot img { transition: transform .3s ease; }
.game-shot:hover img { transform: scale(1.025); }
.game-text { display: grid; gap: 16px; }
.tag { font-size: 14px; font-weight: 700; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px var(--body); text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: #2A3D6B; }
.btn.secondary { border-color: var(--navy); color: var(--navy); }
.btn.secondary:hover { background: var(--sky-2); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-text { display: grid; gap: 16px; color: var(--muted); max-width: 36em; }

/* community */
.community { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--navy); color: var(--white); border-radius: 22px; padding: clamp(28px, 5vw, 48px); }
.community > div { display: grid; gap: 10px; max-width: 36em; }
.community p { color: #D7E0F0; }
.community .btn.primary { background: var(--gold); color: var(--navy); }
.community .btn.primary:hover { background: #F7C964; }
.community .btn.outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.community .btn.outline:hover { background: rgba(255,255,255,0.1); }

/* footer */
.foot { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.foot-row p { display: flex; align-items: center; gap: 10px; }

@media (max-width: 860px) {
  .game, .about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .brand { font-size: 19px; }
  body { font-size: 16px; }
  .hero { padding-block: 20px 48px; }
  .stage { overflow: visible; aspect-ratio: auto; background: transparent; }
  .stage video { border-radius: 14px; height: auto; aspect-ratio: 16 / 9; }
  .replay { position: static; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-shot img { transition: none; }
}
