:root {
  --sea-1: #46d6c8;
  --sea-2: #22b0c2;
  --sea-3: #1a7fc0;
  --sea-4: #16498c;
  --navy: #0b2f5c;
  --sand: #fdeec4;
  --sand-deep: #e7bd78;
  --grass: #4fb85e;
  --grass-edge: #37964e;
  --star-blue: #1d4f9f;
  --star-red: #d7302f;
  --yellow: #ffd34d;

  --bg: #fffaf0;
  --bg-alt: #fdf1d2;
  --surface: #ffffff;
  --text: #0b2f5c;
  --text-soft: #3d5a80;
  --line: #ecdcb4;
  --accent: #14639b;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(11, 47, 92, .14);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071f3d;
    --bg-alt: #0b2f5c;
    --surface: #10386b;
    --text: #f4f8ff;
    --text-soft: #b9cde8;
    --line: #1f4a85;
    --accent: #7fdcd2;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7em;
}

.fineprint { font-size: .9rem; color: var(--text-soft); }

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  -webkit-text-stroke: 6px var(--navy);
  filter: drop-shadow(0 2px 0 var(--navy));
  paint-order: stroke fill;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark .games { color: var(--yellow); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 5px 0 var(--navy);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--navy); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .92); color: var(--navy); }
.btn-outline { background: var(--surface); color: var(--text); }
.btn-small { font-size: .95rem; padding: 8px 18px; box-shadow: 0 3px 0 var(--navy); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1em; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sea-4);
  border-bottom: 3px solid var(--navy);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.site-header nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--sea-1) 0%, var(--sea-2) 14%, var(--sea-3) 40%, var(--sea-4) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
}

.waves { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { text-shadow: 0 4px 0 rgba(11, 47, 92, .35); }
.hero .eyebrow { color: var(--navy); }
.hero .lede { font-size: 1.2rem; max-width: 34em; }

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(11, 47, 92, .35));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Sections */

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-sand { background: var(--bg-alt); border-block: 3px solid var(--line); }
.section-sand .eyebrow { color: var(--accent); }
.section-sand .card-link { color: var(--accent); }
.site-footer .eyebrow { color: var(--yellow); }

@media (prefers-color-scheme: dark) {
  .stats strong { color: var(--yellow); }
}

/* Subpage hero */

.page-hero {
  background: linear-gradient(180deg, var(--sea-3) 0%, var(--sea-4) 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 3px solid var(--navy);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .lede { font-size: 1.15rem; max-width: 42em; margin: 0; }
.page-hero a { color: var(--yellow); }

.narrow { max-width: 800px; }
.actions-top { margin-top: 0; }

/* Long-form text */

.prose { max-width: 800px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--star-red); }

.contact-line { margin-top: 2em; }

.section-packs { border-top: 3px solid var(--line); }
.card .fineprint { margin: -.4em 0 .8em; }

/* Founder */

.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin: 0 0 2em;
  padding: 20px;
  background: var(--surface);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founder img { width: 100%; border-radius: 14px; border: 2px solid var(--navy); }
.founder h2 { margin: 0 0 .1em; font-size: 1.6rem; }
.founder .tagline { font-size: 1.05rem; margin-bottom: .6em; }
.founder p:last-child { margin: 0; color: var(--text-soft); }

/* Trailer */

.facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.facade img { width: 100%; height: 100%; object-fit: cover; }
.facade-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--navy);
  box-shadow: 0 5px 0 var(--navy);
}
.facade-play::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 22px;
  border-left: 26px solid var(--navy);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}
.facade:hover .facade-play { transform: translateY(-2px); }
.video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Feature and download lists */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.feature-grid > div {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
}
.feature-grid h3 { margin: 0 0 .25em; }
.feature-grid p { margin: 0; color: var(--text-soft); }

.shots-wide { grid-template-columns: 1fr 1fr; }

.facts {
  margin: 0;
  display: grid;
  gap: 0;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.facts > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 2px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-display); font-weight: 600; }
.facts dd { margin: 0; color: var(--text-soft); }

.downloads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.downloads a {
  display: block;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--navy);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
}
.downloads a:hover { background: var(--yellow); color: var(--navy); }
.prose li.plain::marker { content: ""; }

.faq {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 12px;
}
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; cursor: pointer; }
.faq p { margin: .6em 0 0; color: var(--text-soft); }

.news-item {
  background: var(--surface);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}
.news-item .btn { margin-top: .6em; }

.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: .6em; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-footer nav { display: grid; gap: 6px; justify-items: start; }
.site-footer nav a { color: #dbe8fb; text-decoration: none; }
.site-footer nav a:hover { color: var(--yellow); text-decoration: underline; }
.footer-grid p { margin: .6em 0; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 .icon { color: var(--star-red); }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  padding: 4px 14px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
}
.social-row a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .18); }
.footer-base p { margin: 0 0 .3em; }
.site-footer .fineprint { color: #dbe8fb; }

.section-head { max-width: 720px; margin-bottom: 36px; }

.tagline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* Game */

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: start;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats li {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--star-red);
}

.stats span { font-size: .92rem; color: var(--text-soft); }

.shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--navy);
  box-shadow: var(--shadow);
  background: var(--surface);
  text-decoration: none;
}

.shot img { width: 100%; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }

.shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.update {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--surface);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.update h3 { font-size: 1.6rem; }
.update p:last-child { margin: 0; max-width: 46em; }
.update .btn { flex-shrink: 0; }

/* Studio */

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.values li {
  background: var(--surface);
  border: 2px solid var(--line);
  border-left: 8px solid var(--grass);
  border-radius: 16px;
  padding: 18px 22px;
}

.values li:nth-child(2) { border-left-color: var(--star-blue); }
.values li:nth-child(3) { border-left-color: var(--star-red); }
.values h3 { margin-bottom: .25em; }
.values p { margin: 0; color: var(--text-soft); }

/* Follow */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  display: block;
  padding: 28px 30px;
  background: var(--surface);
  color: var(--text);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--navy);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy); }
.card p { color: var(--text-soft); }

.card-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--sea-4);
  color: #dbe8fb;
  padding: 40px 0;
  border-top: 3px solid var(--navy);
}



/* Responsive */

@media (max-width: 900px) {
  .hero-grid, .game-grid, .studio-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .shots, .shots-wide, .cards, .feature-grid { grid-template-columns: 1fr 1fr; }
  .update { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 110px; }
  .header-row { flex-wrap: wrap; justify-content: space-between; padding-top: 8px; }
  .site-header nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; padding-bottom: 10px; font-size: .95rem; white-space: nowrap; }
  .shots, .shots-wide, .feature-grid, .footer-grid, .downloads, .founder { grid-template-columns: 1fr; }
  .founder img { max-width: 240px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .wordmark { font-size: 1.3rem; -webkit-text-stroke-width: 5px; }
  .brand img { width: 44px; }
  .cards { grid-template-columns: 1fr; }
  .shots-three { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .update { padding: 22px; }
}
