/* Mariozaur Studios – one page, light first, dark follows the system. Pixel art from Diggosaur, scaled by CSS. */
@font-face {
  font-family: Quicksand;
  src: url("assets/fonts/quicksand-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Quicksand;
  src: url("assets/fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fff6e2;
  --paper-2: #f6e6c4;
  --card: #fffaf0;
  --line: #e8d6b4;
  --ink: #3b2412;
  --ink-soft: #7a5a3c;
  --wood: #8a5427;
  --green: #4f9a33;
  --green-dark: #3e7a27;
  --green-ink: #f6ffee;
  --link: #3e7a27;
  --gold: #e9b13a;
  --sky-1: #8fdcf2;
  --sky-2: #c4effa;
  --sky-3: #e6f8fd;
  --hero-ink: #23301f;
  --hero-soft: #3b4d36;
  --soil: #6a3f20;
  --shadow: 0 10px 30px rgba(60, 35, 10, 0.14);
  --shadow-sm: 0 3px 10px rgba(60, 35, 10, 0.12);
  --radius: 18px;
  --font: Quicksand, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --layer-filter: none;
  --stars: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f150e;
    --paper-2: #2a1d13;
    --card: #2a1d13;
    --line: #4a3524;
    --ink: #f4e8d4;
    --ink-soft: #c8b090;
    --wood: #d6a66c;
    --green: #5fb43f;
    --green-dark: #4a9230;
    --green-ink: #0f1a0a;
    --link: #8fd96c;
    --sky-1: #0d1730;
    --sky-2: #1a2a4f;
    --sky-3: #22365f;
    --hero-ink: #f1f5ff;
    --hero-soft: #c9d4ea;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.4);
    --layer-filter: brightness(0.55) saturate(0.85);
    --stars: radial-gradient(1.5px 1.5px at 12% 18%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 28% 42%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 61% 30%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 73% 10%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 86% 36%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 93% 16%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 52% 48%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 8% 50%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 36% 26%, #fff 60%, transparent 62%);
  }
}
:root[data-theme="dark"] {
  --paper: #1f150e;
  --paper-2: #2a1d13;
  --card: #2a1d13;
  --line: #4a3524;
  --ink: #f4e8d4;
  --ink-soft: #c8b090;
  --wood: #d6a66c;
  --green: #5fb43f;
  --green-dark: #4a9230;
  --green-ink: #0f1a0a;
  --link: #8fd96c;
  --sky-1: #0d1730;
  --sky-2: #1a2a4f;
  --sky-3: #22365f;
  --hero-ink: #f1f5ff;
  --hero-soft: #c9d4ea;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.4);
  --layer-filter: brightness(0.55) saturate(0.85);
  --stars: radial-gradient(1.5px 1.5px at 12% 18%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 28% 42%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 61% 30%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 73% 10%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 86% 36%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 93% 16%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 52% 48%, #fff 60%, transparent 62%), radial-gradient(1.5px 1.5px at 8% 50%, #fff 60%, transparent 62%), radial-gradient(1px 1px at 36% 26%, #fff 60%, transparent 62%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); font-weight: 600; }
.eyebrow, .kicker { margin: 0 0 0.6em; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.section { padding: 72px 0; scroll-margin-top: 64px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.brand b { font-weight: 700; color: var(--wood); }
.brand-logo { width: 40px; height: 40px; }
.menu { display: flex; gap: 4px; margin-left: 8px; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { background: var(--paper-2); }
.tools { margin-left: auto; display: flex; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  font: 700 0.95rem var(--font); cursor: pointer;
}
.tool:hover { border-color: var(--wood); }
.tool .moon { display: none; }
:root[data-theme="dark"] .tool .sun { display: none; }
:root[data-theme="dark"] .tool .moon { display: block; }

/* hero: the valley from the game, layered */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  /* fill the first screen so the soil strip sits on the bottom edge whatever the monitor; the sky stretches */
  min-height: calc(100vh - var(--header-h, 61px));
  min-height: calc(100svh - var(--header-h, 61px));
  padding: 48px 16px 440px;
  display: flex;
  align-items: center;
  color: var(--hero-ink);
}
.hero-text { width: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--stars); pointer-events: none; z-index: 0; }
.hero-text { position: relative; z-index: 3; max-width: 1100px; margin: 0 auto; }
.hero .kicker { color: var(--hero-soft); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 0.3em; max-width: 12ch; }
.hero .lead { color: var(--hero-soft); max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1.02rem;
  border: 2px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); color: var(--green-ink); box-shadow: 0 6px 0 var(--green-dark), var(--shadow-sm); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.btn.ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }

.scene { position: absolute; left: 0; right: 0; bottom: 0; height: 440px; z-index: 1; pointer-events: none; }
.layer { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-position: left bottom; image-rendering: pixelated; filter: var(--layer-filter); }
.layer.sun { right: 8%; left: auto; bottom: 330px; width: 88px; height: 88px; background: url("assets/img/bg-sun.png") no-repeat center / 88px 88px; filter: none; opacity: 0.95; }
:root[data-theme="dark"] .layer.sun { filter: grayscale(1) brightness(1.6); opacity: 0.8; }
.layer.far { bottom: 100px; height: 352px; background-image: url("assets/img/bg-far.png"); background-size: 2160px 352px; }
.layer.hills { bottom: 84px; height: 128px; background-image: url("assets/img/bg-hills.png"); background-size: 2160px 128px; }
.layer.ferns { bottom: 80px; height: 52px; background-image: url("assets/img/bg-ferns.png"); background-size: 2160px 52px; }
.layer.grass { bottom: 40px; height: 40px; background-image: url("assets/img/tile-topsoil.png"); background-size: 40px 40px; }
.layer.soil { bottom: 0; height: 40px; background-image: url("assets/img/tile-soil.png"); background-size: 40px 40px; }
.walkers { position: absolute; left: 0; right: 0; bottom: 78px; height: 80px; }
.dino { position: absolute; bottom: 0; width: 80px; height: 80px; left: -100px; filter: var(--layer-filter); }
.dino img { position: absolute; inset: 0; width: 80px; height: 80px; }
.dino .f1 { opacity: 0; }
.dino { animation: walk 36s linear infinite; }
.dino .f0 { animation: stepA 0.56s steps(1) infinite; }
.dino .f1 { animation: stepB 0.56s steps(1) infinite; }
.dino.d1 { animation-duration: 32s; animation-delay: -4s; }
.dino.d2 { animation-duration: 44s; animation-delay: -30s; }
.dino.d3 { animation-duration: 52s; animation-delay: -14s; }
.dino.d4 { animation-duration: 60s; animation-delay: -46s; }
.dino.d5 { animation-duration: 28s; animation-delay: -20s; }
.dino.d6 { animation-duration: 48s; animation-delay: -38s; }
@keyframes walk { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 200px)); } }
@keyframes stepA { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes stepB { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dino, .dino img { animation: none !important; }
  .dino.d1 { left: 8%; } .dino.d2 { left: 24%; } .dino.d3 { left: 42%; } .dino.d4 { left: 58%; } .dino.d5 { left: 74%; } .dino.d6 { left: 88%; }
}

/* sections */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.3fr 0.7fr; }
.game-name { display: flex; align-items: center; gap: 14px; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.game-name img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.platforms { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.platforms li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.platforms b { font-weight: 700; }
.plat-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); color: var(--wood); display: grid; place-items: center; }

.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 10px; }
.phone {
  width: 270px; aspect-ratio: 375 / 812; border-radius: 38px; overflow: hidden;
  border: 10px solid #2a1d13; background: #2a1d13; box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.phone.small { width: 220px; border-width: 8px; border-radius: 32px; }
.phone.small img { border-radius: 24px; }
figcaption { font-size: 0.92rem; color: var(--ink-soft); text-align: center; font-weight: 600; }

.features { background: var(--paper-2); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card img { width: 48px; height: 48px; margin-bottom: 12px; object-fit: contain; }
.card h3 { margin-bottom: 0.3em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.shots { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 240px; }

.heroes .sub { color: var(--ink-soft); margin-top: -0.4em; margin-bottom: 1.6em; font-weight: 600; }
.heroes-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.heroes-grid li { flex: 0 1 200px; min-width: 160px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 4px; }
.heroes-grid li.star { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.heroes-grid img { width: 80px; height: 80px; }
.heroes-grid b { font-size: 1.05rem; }
.heroes-grid span { font-size: 0.9rem; color: var(--ink-soft); }
.pets-title { margin-top: 40px; font-size: 1.1rem; color: var(--ink-soft); }
.pets { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pets li { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: 0.95rem; }
.pets img { width: 36px; height: 36px; object-fit: contain; }

.studio { background: var(--paper-2); }
.mascot { display: grid; place-items: center; }
.mascot img { width: min(260px, 60vw); height: auto; aspect-ratio: 1; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mascot img { animation: none; } }
.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.contact { text-align: center; }
.contact .btn { font-size: 1.1rem; }
.press { color: var(--ink-soft); font-size: 0.95rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .phone-wrap { order: 2; }
  .mascot { order: -1; }
}
/* short laptop screens: a smaller valley so the soil strip still ends the first screen */
@media (max-height: 940px) and (min-width: 701px) {
  .hero { padding: 28px 16px 330px; }
  .hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: none; margin-bottom: 0.25em; }
  .hero h1 br { display: none; }
  .hero .kicker { margin-bottom: 0.4em; }
  .hero .lead { max-width: 60ch; font-size: 1.05rem; margin-bottom: 0.8em; }
  .cta { margin-top: 16px; }
  .scene { height: 330px; }
  .layer.far { bottom: 75px; height: 264px; background-size: 1620px 264px; }
  .layer.hills { bottom: 63px; height: 96px; background-size: 1620px 96px; }
  .layer.ferns { bottom: 60px; height: 39px; background-size: 1620px 39px; }
  .layer.grass { bottom: 30px; height: 30px; background-size: 30px 30px; }
  .layer.soil { height: 30px; background-size: 30px 30px; }
  .layer.sun { bottom: 250px; width: 66px; height: 66px; background-size: 66px 66px; }
  .walkers { bottom: 58px; height: 60px; }
  .dino, .dino img { width: 60px; height: 60px; }
}
@media (max-width: 700px) {
  .menu { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 24px 16px 370px; }
  .scene { height: 370px; }
  .layer.far { background-size: 1620px 264px; height: 264px; }
  .layer.sun { right: 6%; bottom: 280px; width: 64px; height: 64px; background-size: 64px 64px; }
  .shots { gap: 18px; }
  .phone.small { width: 180px; }
}
