/* High Explosive: bold and playful. Near-black, blast orange, fuse yellow, cream.
   Lilita One for display, Nunito for everything else (both self-hosted, OFL). */

@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bunker: #141012;
  --bunker-2: #221c1e;
  --bunker-3: #3a3133;
  --cream: #fff4e0;
  --cream-2: #f3e3c6;
  --blast: #ff5a1f;
  --blast-deep: #d9400c;
  --fuse: #ffc93c;
  --smoke: #b9ada4;

  /* Eggspedition's own colours, from the game */
  --egg-salmon: #f0a383;
  --egg-shell: #fff7ec;
  --egg-sage: #cfd8cc;
  --egg-pine: #3f7a5b;
  --egg-ink: #2b2523;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--bunker);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bunker);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}

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

a {
  color: var(--fuse);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--blast);
}

:focus-visible {
  outline: 3px solid var(--fuse);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ------------------------------------------------------------ header & footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bunker) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--bunker-2);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo {
  display: block;
  width: 210px;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
}
.site-header nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-weight: 800;
}
.site-header nav a {
  color: var(--cream);
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--fuse);
}
@media (max-width: 520px) {
  .logo {
    width: 44px;
    overflow: hidden;
  }
  .logo img {
    width: 210px;
    max-width: none;
  }
}

.site-footer {
  background: var(--bunker);
  border-top: 2px solid var(--bunker-2);
  padding: 48px 0 40px;
  color: var(--smoke);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover {
  color: var(--fuse);
}
.site-footer p {
  margin: 0;
}

/* ------------------------------------------------------------ buttons & stickers */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 1.2rem/1 var(--display);
  letter-spacing: 0.02em;
  padding: 16px 26px;
  border-radius: 999px;
  border: 3px solid var(--bunker);
  background: var(--fuse);
  color: var(--bunker);
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  color: var(--bunker);
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 7px 7px 0 var(--bunker);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--bunker);
}
.btn.alt {
  background: var(--cream);
}
.btn.dark {
  background: var(--bunker);
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 5px 5px 0 var(--blast);
}
.btn.dark:hover {
  color: var(--fuse);
}
.btn[aria-disabled="true"] {
  cursor: default;
}

.sticker {
  display: inline-block;
  font: 400 0.95rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blast);
  color: var(--bunker);
  border: 2px solid var(--bunker);
  transform: rotate(-3deg);
}

/* ------------------------------------------------------------ studio home */

.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 10vw, 110px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  margin: 18px 0 20px;
}
.hero h1 .boom {
  color: var(--blast);
  display: inline-block;
  transform: rotate(-2deg);
}
.hero .lede {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  max-width: 34ch;
  color: var(--cream-2);
  margin-bottom: 32px;
}
.hero-mark {
  justify-self: center;
  width: min(380px, 80%);
  animation: wobble 4s ease-in-out infinite;
  transform-origin: 50% 60%;
}
.burst {
  position: absolute;
  width: 640px;
  aspect-ratio: 1;
  right: -120px;
  top: 50%;
  translate: 0 -50%;
  background: radial-gradient(circle, rgb(255 90 31 / 0.28), transparent 62%);
  pointer-events: none;
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg) translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 780px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    order: -1;
    width: 180px;
    justify-self: start;
  }
}

.band {
  padding: clamp(56px, 9vw, 100px) 0;
}
.band.cream {
  background: var(--cream);
  color: var(--bunker);
}
.band.cream a:not(.btn) {
  color: var(--blast-deep);
}
.band.blast {
  background: var(--blast);
  color: var(--bunker);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 0;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 3px solid var(--bunker);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--bunker);
  background: var(--egg-salmon);
  color: var(--egg-ink);
  text-decoration: none;
}
.game-card .art {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 16px;
  padding: 36px 24px 0;
  background: linear-gradient(180deg, var(--egg-salmon), #f6bfa3);
}
.game-card .art img {
  width: 42%;
  border-radius: 22px 22px 0 0;
  border: 3px solid var(--egg-ink);
  border-bottom: 0;
}
.game-card .art img:nth-child(2) {
  margin-bottom: -24px;
}
.game-card .info {
  padding: clamp(28px, 4vw, 48px);
  background: var(--egg-shell);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-card h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}
.game-card .meta {
  font-weight: 800;
  color: var(--egg-pine);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.game-card .btn {
  align-self: start;
  margin-top: 12px;
}
@media (max-width: 780px) {
  .game-card {
    grid-template-columns: 1fr;
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.value {
  background: var(--bunker-2);
  border: 2px solid var(--bunker-3);
  border-radius: var(--radius);
  padding: 26px;
}
.value .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--fuse);
  color: var(--bunker);
  font: 400 1.5rem/1 var(--display);
  margin-bottom: 16px;
  transform: rotate(-4deg);
}
.value:nth-child(2) .icon {
  background: var(--blast);
  transform: rotate(3deg);
}
.value:nth-child(3) .icon {
  background: var(--cream);
}
.value p {
  margin: 0;
  color: var(--cream-2);
}

.cta {
  text-align: center;
}
.cta h2 {
  max-width: 18ch;
  margin: 0 auto 18px;
}
.cta p {
  max-width: 46ch;
  margin: 0 auto 28px;
}

/* ------------------------------------------------------------ prose pages (legal, contact) */

.page-head {
  padding: clamp(48px, 8vw, 88px) 0 32px;
}
.page-head p {
  color: var(--smoke);
  max-width: 60ch;
}

.prose {
  background: var(--cream);
  color: var(--bunker);
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.prose .wrap {
  max-width: 820px;
}
.prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.prose h3 {
  margin-top: 1.4em;
  scroll-margin-top: 90px;
}
.prose a {
  color: var(--blast-deep);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.97rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--cream-2);
}
.prose th {
  background: var(--cream-2);
  font-weight: 800;
}
.table-scroll {
  overflow-x: auto;
}
.callout {
  background: #fff;
  border: 2.5px solid var(--bunker);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin: 0 0 2em;
}
.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}
.toc {
  columns: 2 220px;
  font-weight: 700;
}
.updated {
  font-weight: 800;
  color: var(--blast);
}

/* ------------------------------------------------------------ contact form */

.form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form .row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.field .hint {
  font-weight: 400;
  color: #6b5f58;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--bunker);
  background: #fff;
  border: 2.5px solid var(--bunker);
  border-radius: 12px;
  padding: 12px 14px;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--blast);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-weight: 800;
  min-height: 1.6em;
  margin: 0;
}
.form-status.error {
  color: #b42318;
}
.form-status.ok {
  color: var(--egg-pine);
}
.form .small {
  font-size: 0.92rem;
  color: #5d524c;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
.contact-grid aside .callout h3 {
  margin-top: 0;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ Eggspedition page */

.egg {
  background: var(--egg-shell);
  color: var(--egg-ink);
}
.egg a:not(.btn) {
  color: #c0461f;
}
.egg-hero {
  background: linear-gradient(180deg, var(--egg-salmon) 0%, #f5b495 70%, var(--egg-shell) 100%);
  padding: clamp(40px, 7vw, 80px) 0 0;
  overflow: hidden;
}
.egg-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.egg-hero .kicker {
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.95;
}
.egg-hero h1 {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.9rem, 5.4vw, 4.2rem);
  margin: 10px 0 16px;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.06);
}
.egg-hero .lede {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: #4a2a1f;
  max-width: 30ch;
  margin-bottom: 28px;
}
.egg-hero .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-bottom: 48px;
}
.egg-hero .phones {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: end;
  align-self: end;
}

.phone {
  width: min(260px, 46%);
  border: 10px solid #1d1a19;
  border-radius: 38px;
  overflow: hidden;
  background: #1d1a19;
  box-shadow: 0 30px 60px -20px rgb(74 42 31 / 0.45);
}
.phone img {
  border-radius: 28px;
}
.egg-hero .phone {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}
.egg-hero .phone img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 1206 / 2000;
  object-fit: cover;
  object-position: top;
}
.egg-hero .phone:first-child {
  translate: 0 36px;
}
@media (max-width: 820px) {
  .egg-hero .wrap {
    grid-template-columns: 1fr;
  }
  .egg-hero .phones {
    margin-top: 8px;
  }
}

.app-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px 10px 14px;
  text-decoration: none;
  line-height: 1.1;
  border: 1.5px solid #000;
}
.app-store:hover {
  color: #fff;
  background: #222;
}
.app-store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.app-store small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
}
.app-store strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-store.soon {
  background: transparent;
  color: #4a2a1f;
  border: 2px dashed #4a2a1f;
}

.egg-section {
  padding: clamp(56px, 9vw, 104px) 0;
}
.egg-section h2 {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}
.egg-section .intro {
  max-width: 60ch;
  font-size: 1.15rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 30px -18px rgb(74 42 31 / 0.4);
}
.feature .dot {
  width: 42px;
  height: 52px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: var(--egg-salmon);
  margin-bottom: 16px;
  box-shadow: inset -6px -6px 0 rgb(0 0 0 / 0.06);
}
.feature:nth-child(2) .dot {
  background: var(--egg-sage);
}
.feature:nth-child(3) .dot {
  background: #f6d27a;
}
.feature:nth-child(4) .dot {
  background: #a9cbe6;
}
.feature h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.feature p {
  margin: 0;
  color: #5a4a44;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split .phone {
  width: min(300px, 80%);
  justify-self: center;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.flip .phone {
    order: 2;
  }
}
.egg-sage {
  background: var(--egg-sage);
}

.mountains {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.mountains li {
  background: rgb(255 255 255 / 0.65);
  border-radius: 16px;
  padding: 14px 16px;
}
.mountains strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--egg-pine);
  margin-bottom: 4px;
}

.faq details {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.faq details p {
  margin: 10px 0 0;
}

.studio-strip {
  background: var(--bunker);
  color: var(--cream);
  padding: 28px 0;
}
.studio-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.studio-strip p {
  margin: 0;
  font-weight: 700;
}

/* ------------------------------------------------------------ brand page */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.swatch {
  border: 2.5px solid var(--bunker);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.swatch .chip {
  height: 96px;
}
.swatch div:last-child {
  padding: 10px 12px;
  font-size: 0.92rem;
}
.swatch strong {
  display: block;
}
.logo-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 1.4em;
}
.logo-tiles figure {
  margin: 0;
  border: 2.5px solid var(--bunker);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-tiles .stage {
  padding: 36px 28px;
  display: grid;
  place-items: center;
  min-height: 170px;
}
.logo-tiles figcaption {
  background: #fff;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}
.type-sample {
  border: 2.5px solid var(--bunker);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff;
  margin-bottom: 14px;
}
.type-sample .big {
  font: 400 2.6rem/1.05 var(--display);
}
.type-sample .body {
  font-size: 1.1rem;
}

/* ------------------------------------------------------------ 404 */

.lost {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.lost img {
  width: 160px;
  margin: 0 auto 24px;
}
