/* GeuseBox Studios brand colours, taken from the studio logo */
:root {
  --navy: #0b3d5c;
  --navy-soft: #3a6682;
  --orange: #f2851c;
  --orange-dark: #d96e0a;
  --lime: #93d02e;
  --lime-pale: #e4f77e;
  --cream: #fff6e5;
  --white: #ffffff;
  --radius: 22px;
  --line: 3px solid var(--navy);
  --shadow: 6px 6px 0 var(--navy);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 61, 92, 0.08) 1.5px, transparent 0) 0 0 / 22px 22px,
    var(--cream);
  color: var(--navy);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .eyebrow, .badge, .button, .top nav a {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
}

a { color: inherit; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

.brand img { display: block; width: auto; height: 92px; }

.top nav { display: flex; gap: 10px; }
.top nav a {
  padding: 6px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.top nav a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--navy); }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 64px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--lime-pale);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h1 span { display: inline-block; }
h1 .pop {
  color: var(--orange);
  text-shadow: 3px 3px 0 var(--navy);
  -webkit-text-stroke: 1.5px var(--navy);
}

.lede {
  max-width: 32rem;
  margin: 20px 0 26px;
  color: var(--navy-soft);
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 18px;
  border: var(--line);
  border-radius: 999px;
  background: var(--lime-pale);
  box-shadow: 4px 4px 0 var(--navy);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242, 133, 28, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(242, 133, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 133, 28, 0); }
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 2% 4% 2%;
  border-radius: 50%;
  background: var(--lime-pale);
  border: var(--line);
  z-index: 0;
}

.mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  animation: bob 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.spark {
  position: absolute;
  z-index: 2;
  background: var(--lime);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.4s ease-in-out infinite;
}
.s1 { width: 34px; height: 34px; left: -4%; top: 30%; }
.s2 { width: 22px; height: 22px; left: 6%; top: 18%; animation-delay: -0.8s; background: var(--lime-pale); }
.s3 { width: 26px; height: 26px; right: 0; bottom: 18%; animation-delay: -1.6s; background: var(--orange); }

@keyframes twinkle {
  50% { transform: scale(0.6) rotate(20deg); opacity: 0.7; }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 72px;
}

.cards article {
  padding: 26px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.cards article:nth-child(2) { background: var(--lime-pale); }

h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 600; }
.cards p { margin: 0; color: var(--navy-soft); }

/* Contact */
.contact {
  padding: 48px 24px;
  margin-bottom: 72px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--orange);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact h2 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 3px 3px 0 var(--navy);
}
.contact p { margin: 0 0 22px; font-weight: 600; }

.button {
  display: inline-block;
  padding: 12px 24px;
  border: var(--line);
  border-radius: 14px;
  background: var(--navy);
  color: var(--lime-pale);
  box-shadow: 4px 4px 0 var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.15s, box-shadow 0.15s;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--white); }

/* Footer */
footer {
  padding: 24px 16px 32px;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  font-size: 15px;
}
footer p { margin: 0; }

/* 404 */
.notfound {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.notfound img { width: 160px; height: auto; margin-bottom: 8px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding: 8px 0 48px; }
  .hero-art { order: -1; width: min(60%, 240px); }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand img { height: 52px; }
  .top nav { gap: 6px; }
  .top nav a { padding: 4px 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot, .spark, .dot { animation: none; }
  html { scroll-behavior: auto; }
}
