/* ============================================================
   What The Dog Doing — game landing page
   Built on the shared Mattleon Labs token system (see
   NX_PUBLISHER_SITE/assets/css/site.css). Same palette, same
   radius, same wrap. Extended here with a hero band and a
   bolder headline scale for a games landing.
   ============================================================ */

/* ---------- Design tokens (shared with the publisher site) ---------- */
:root {
  color-scheme: light dark;
  --ink:#1c1c1e;
  --bg:#fffdf9;
  --muted:#6b6b70;
  --line:#e8e2d8;
  --accent:#c8860d;
  --accent-ink:#231a05;
  --card:#fff;
  --chip:#f4efe6;
  --chip-ink:#6b6b70;
  --shadow:0 1px 2px rgba(28,24,16,.04);
  --shadow-lift:0 .65rem 1.5rem rgba(28,24,16,.10);
  --radius:.85rem;
  --wrap:48rem;

  /* Landing-page additions */
  /* Light scrim is lighter than the dark one on purpose: cream over a bright
     painted arena flattens toward white fast, and at .72 the photo vanished.
     .55 keeps the art readable; every hero text colour is --ink, which still
     clears 4.5:1 against the darkest pixels of the image through this scrim. */
  --scrim-top:rgba(255,253,249,.55);
  --scrim-bot:rgba(255,253,249,.90);
  --stage:#e9e0d0;      /* neutral plate behind transparent sprites */
  --focus:#1c1c1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:#ece9e4;
    --bg:#15130f;
    --muted:#9a958c;
    --line:#2f2a22;
    --accent:#f0b53f;
    --accent-ink:#231a05;
    --card:#1e1b16;
    --chip:#26221b;
    --chip-ink:#9a958c;
    --shadow:0 1px 2px rgba(0,0,0,.35);
    --shadow-lift:0 .65rem 1.5rem rgba(0,0,0,.45);

    --scrim-top:rgba(21,19,15,.74);
    --scrim-bot:rgba(21,19,15,.94);
    --stage:#241f18;
    --focus:#f0b53f;
  }
}

/* ---------- Base ---------- */
* { box-sizing:border-box; }

html, body { overflow-x:hidden; }

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust:100%;
}

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

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

h1 {
  font-size:clamp(2.35rem,9vw,3.4rem);
  margin:.65rem 0 .5rem;
  letter-spacing:-.025em; line-height:1.08;
}
h2 { font-size:1.35rem; margin:0 0 .75rem; letter-spacing:-.01em; }
h3 { font-size:1.05rem; margin:0 0 .35rem; }

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

:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px;
  border-radius:.35rem;
}

/* ---------- Header / nav ---------- */
.site-nav {
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; flex-wrap:wrap;
  padding:.85rem 0;
  border-bottom:1px solid var(--line);
}
.site-nav .brand {
  display:inline-flex; align-items:center; gap:.55rem;
  font-weight:700; letter-spacing:-.01em; color:var(--ink);
  text-decoration:none; font-size:1rem;
  min-height:44px;
}
.site-nav .brand img { border-radius:.4rem; display:block; }
.site-nav .brand:hover { color:var(--accent); }
/* --ink, not --muted: this nav sits on top of the hero photograph, and muted
   grey over a semi-transparent scrim can drop below 4.5:1 on dark photo areas. */
.site-nav .links a {
  display:inline-flex; align-items:center;
  min-height:44px; padding:.25rem .7rem;
  border-radius:.5rem;
  color:var(--ink); text-decoration:none; font-size:.95rem;
}
.site-nav .links a:hover { color:var(--accent); background:var(--chip); }

/* ---------- Hero ---------- */
.hero {
  position:relative;
  isolation:isolate;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero-media {
  position:absolute; inset:0; z-index:-1;
}
.hero-media img {
  width:100%; height:100%;
  object-fit:cover; object-position:center 38%;
  display:block;
}
/* Scrim: guarantees text contrast over the arena photo in BOTH themes.
   Near-opaque at the bottom so body copy always sits on flat colour. */
.hero-media::after {
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to bottom, var(--scrim-top) 0%, var(--scrim-bot) 78%, var(--bg) 100%);
}

.hero-inner { text-align:center; padding-top:2.5rem; padding-bottom:0; }

.hero-icon {
  width:96px; height:96px;
  border-radius:1.35rem;
  border:1px solid var(--line);
  box-shadow:var(--shadow-lift);
  display:block; margin:0 auto;
}

.hero .tag {
  font-size:1.12rem; color:var(--ink);
  margin:0 auto; max-width:30rem;
}
/* Also --ink for the same reason. All hero text is full-contrast ink; the
   muted grey is reserved for copy that sits on an opaque card or the flat page. */
.hero .sub {
  color:var(--ink); font-size:.95rem;
  margin:.5rem auto 0; max-width:30rem;
}

.facts {
  list-style:none; margin:1.25rem 0 0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem;
}
.facts li {
  font-size:.78rem; font-weight:600; letter-spacing:.03em;
  padding:.3rem .7rem; border-radius:999px;
  background:var(--chip); color:var(--chip-ink);
  border:1px solid var(--line);
}

/* Two real in-game sprites squaring up along the bottom of the hero */
.hero-fighters {
  display:flex; align-items:flex-end; justify-content:center;
  gap:clamp(.75rem,6vw,3rem);
  margin-top:1.75rem;
}
.hero-fighters img {
  height:clamp(84px,21vw,132px);
  width:auto;
  image-rendering:pixelated;
  filter:drop-shadow(0 .5rem .6rem rgba(28,24,16,.22));
}
.hero-fighters .flip { transform:scaleX(-1); }

/* ---------- Buttons ---------- */
.cta { margin-top:1.5rem; display:flex; flex-wrap:wrap; gap:.75rem; justify-content:center; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; padding:.7rem 1.5rem;
  border-radius:.6rem; background:var(--accent);
  color:var(--accent-ink); text-decoration:none; font-weight:700;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover { color:var(--accent-ink); transform:translateY(-2px); box-shadow:var(--shadow-lift); }
.btn:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.btn.secondary { background:transparent; color:var(--ink); border-color:var(--line); }
.btn.secondary:hover { border-color:var(--accent); color:var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition:none; }
  .btn:hover { transform:none; }
}

/* ---------- Sections ---------- */
.section { padding:3rem 0 0; }
.section > p { margin:0 0 1rem; }
.section .lede { font-size:1.05rem; }
.eyebrow {
  font-size:.8rem; text-transform:uppercase; letter-spacing:.09em;
  color:var(--muted); font-weight:700; margin:0 0 .4rem;
}

/* ---------- Cards ---------- */
.grid {
  display:grid; gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));
  margin-top:1.25rem;
}
.card {
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:1rem 1.1rem;
  box-shadow:var(--shadow);
}
.card h3 { margin:0 0 .35rem; font-size:1rem; }
.card p { margin:0; color:var(--muted); font-size:.925rem; }

/* ---------- Move strip (transparent sprites on a neutral plate) ---------- */
.moves {
  display:grid; gap:.75rem;
  grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));
  margin-top:1.25rem;
}
.move {
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:.9rem .75rem 1rem; text-align:center;
}
.move .plate {
  background:var(--stage);
  border-radius:.6rem;
  height:108px;
  display:flex; align-items:flex-end; justify-content:center;
  padding:.5rem;
  margin-bottom:.65rem;
}
.move .plate img {
  max-height:92px; width:auto;
  image-rendering:pixelated;
}
.move h3 { font-size:.95rem; margin:0 0 .15rem; }
.move p { margin:0; font-size:.83rem; color:var(--muted); line-height:1.45; }

/* ---------- Arenas ---------- */
.arenas {
  display:grid; gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));
  margin-top:1.25rem;
}
.arena {
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow);
  overflow:hidden;
}
.arena img {
  display:block; width:100%; aspect-ratio:16/9;
  object-fit:cover;
  border-bottom:1px solid var(--line);
}
.arena .body { padding:.8rem .95rem 1rem; }
.arena h3 { font-size:1rem; margin:0 0 .2rem; }
.arena p { margin:0; font-size:.875rem; color:var(--muted); }

/* ---------- Skins ---------- */
.skins {
  list-style:none; padding:0; margin:1.25rem 0 0;
  display:grid; gap:.75rem;
  /* 7.5rem so the ten skins land as a clean 5 + 5 at the 48rem wrap,
     rather than an uneven 6 + 4. */
  grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr));
}
.skin {
  background:var(--card); border:1px solid var(--line);
  border-radius:.75rem; box-shadow:var(--shadow);
  padding:.7rem .5rem .8rem; text-align:center;
}
.skin img {
  width:76px; height:76px; display:block; margin:0 auto .4rem;
  image-rendering:pixelated;
}
.skin b { display:block; font-size:.85rem; font-weight:700; }
.skin span { display:block; font-size:.74rem; color:var(--muted); line-height:1.4; }

/* ---------- Callout (the one purchase) ---------- */
.callout {
  margin-top:1.25rem;
  background:var(--card); border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:1rem 1.15rem;
}
.callout h3 { margin:0 0 .3rem; font-size:1rem; }
.callout p { margin:0; color:var(--muted); font-size:.925rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top:3.5rem; padding:1.25rem 0 3rem;
  border-top:1px solid var(--line);
  color:var(--muted); font-size:.875rem;
  display:flex; flex-wrap:wrap; gap:.75rem 1.5rem;
  justify-content:space-between; align-items:flex-start;
}
.site-footer .links { display:flex; flex-wrap:wrap; gap:.25rem .5rem; }
.site-footer a { color:var(--accent); text-decoration:none; }
.site-footer a:hover { text-decoration:underline; }
.site-footer .links a {
  display:inline-flex; align-items:center;
  min-height:44px; padding:0 .5rem; border-radius:.5rem;
}
.site-footer p { margin:.35rem 0 0; }

/* ---------- Responsive reinforcement ---------- */
@media (max-width: 640px) {
  body { font-size:15.5px; }
  .wrap { padding:0 1rem; }

  h2 { font-size:1.2rem; }

  .site-nav { padding:.6rem 0; }
  .site-nav .brand { font-size:.95rem; }
  .site-nav .links a { padding:.25rem .55rem; font-size:.9rem; }

  .hero-inner { padding-top:2rem; }
  .hero-icon { width:84px; height:84px; border-radius:1.15rem; }
  .hero .tag { font-size:1.02rem; }

  .section { padding:2.25rem 0 0; }
  .grid, .arenas { gap:.75rem; grid-template-columns:1fr; }
  .moves { grid-template-columns:repeat(2,1fr); gap:.6rem; }
  .skins { grid-template-columns:repeat(2,1fr); gap:.6rem; }

  .cta .btn { width:100%; }

  .site-footer { margin-top:2.5rem; flex-direction:column; gap:.5rem; }
  .site-footer .links { margin-left:-.5rem; }
}

@media (max-width: 380px) {
  .site-nav { flex-direction:column; align-items:flex-start; gap:0; }
  .site-nav .links { margin-left:-.55rem; }
  .move .plate { height:92px; }
  .move .plate img { max-height:78px; }
  .skin img { width:64px; height:64px; }
}
