/* Shared base of the two static sites (landing page and studio page). The look follows the game (style D, tokens.css):
   opaque plates, flat edged light (a light line on top, a hard shadow below), no gradients, Rubik for text, Lilita One for
   big titles only, the pixel font only inside the word mark. Fonts lie next to the pages; nothing is loaded from elsewhere. */
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url('../fonts/rubik-400.woff2') format('woff2'); }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url('../fonts/rubik-700.woff2') format('woff2'); }
@font-face { font-family: 'Lilita One'; font-weight: 400; font-display: swap; src: url('../fonts/lilita-one-400.woff2') format('woff2'); }

:root {
  --night: #0a0d1f;
  --plate: #131a33;
  --plate-2: #1a2344;
  --plate-3: #222d55;
  --edge: #2e3a6b;
  --ink: #f4f6ff;
  --ink-2: #c9cfee;
  --light: #eef2ff;
  --light-edge: #8f9ac4;
  --light-ink: #141a33;
  --go: #1f7f3a;
  --go-lo: #145a28;
  --go-hi: #21833b;
  --go-edge: #0e4a20;
  --focus: #5fd8ff;
  --title: 'Lilita One', 'Rubik', system-ui, sans-serif;
  --text: 'Rubik', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--text); font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 6px; background: var(--light); color: var(--light-ink); font-weight: 700; }
.skip:focus { top: 8px; }

/* buttons: the game's buttons (g-btn), two facets and a hard edge below; the green one starts something */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; height: var(--bh); padding: 0 22px; border-radius: 8px;
  background: var(--plate-3); color: var(--ink); font: 700 17px/1.2 var(--text); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 -4px 0 #0e1328, 0 4px 0 rgb(0 0 0 / 0.4);
}
.btn:hover { background: #2a3766; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--edge), inset 0 -4px 0 #0e1328; }
/* the start button: lower facet = background, upper facet = an inset band of half the height (game.css g-btn--primary) */
.btn--go {
  --bh: 56px;
  padding: 0 30px; font-size: 19px; color: #fff; text-shadow: 0 1px 0 rgb(0 0 0 / 0.45);
  background: var(--go-lo);
  box-shadow: inset 0 calc(var(--bh) / 2) 0 var(--go), inset 0 -4px 0 var(--go-edge), 0 4px 0 rgb(0 0 0 / 0.4);
}
.btn--go:hover { background: var(--go-lo); box-shadow: inset 0 calc(var(--bh) / 2) 0 var(--go-hi), inset 0 -4px 0 var(--go-edge), 0 4px 0 rgb(0 0 0 / 0.4), 0 0 0 3px rgb(69 226 140 / 0.25); }
.btn--go:active { box-shadow: inset 0 calc(var(--bh) / 2) 0 var(--go), inset 0 -4px 0 var(--go-edge); }

/* footer */
.foot { display: grid; gap: 10px; padding: 32px var(--gutter) 40px; border-top: 2px solid var(--edge); background: var(--plate); color: var(--ink-2); font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--ink); }

/* the 404 page of both sites */
.lost { display: grid; align-content: center; gap: 18px; min-height: 100svh; max-width: 760px; margin: 0 auto; padding: var(--gutter); }
.lost h1 { font: 400 clamp(32px, 5vw, 56px)/1.1 var(--title); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
