/* ==========================================================================
   DUM Studio · base.css
   Shared by every page: fonts, colour tokens, the white sticker outline,
   pixel cursors and small utilities.
   ========================================================================== */

/* ---------- Fonts (both Open Font License) ---------- */
@font-face {
  font-family: "Gothic Pixel";            /* Old English Gothic Pixel – ColorSwitchFan25 / FontStruct */
  src: url("../assets/fonts/gothic-pixel.woff2") format("woff2");
  font-display: block;
}
@font-face {
  font-family: "VT323";                   /* CRT on-screen display + small UI text */
  src: url("../assets/fonts/vt323.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";          /* retro game windows (has £ : / so it can show prices) */
  src: url("../assets/fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* room */
  --wall: #5a302a;
  --wall-hi: #6e4342;
  --floor: #5a2a1c;

  /* type colours */
  --ink: #0b0908;          /* blackletter fill */
  --stroke: #f6f2ee;       /* sticker outline / light text */

  /* CRT */
  --phosphor: #8dff7a;
  --phosphor-glow: rgba(120, 255, 110, .55);
  --screen-black: #040604;

  /* families
     NOTE: Gothic Pixel has no £ : / glyphs – use --mono (or a future
     body face) for prices, times and URLs. */
  --display: "Gothic Pixel", "Old English Text MT", serif;
  --mono: "VT323", "Courier New", monospace;
  --pixel: "Press Start 2P", "VT323", monospace;

  /* white sticker outline (was a Photoshop stroke layer style).
     Use with .outline / .outline-sm, or text-shadow: var(--ring). */
  --ring: var(--stroke) 0.110em 0.000em 0, var(--stroke) 0.106em 0.028em 0, var(--stroke) 0.095em 0.055em 0, var(--stroke) 0.078em 0.078em 0, var(--stroke) 0.055em 0.095em 0, var(--stroke) 0.028em 0.106em 0, var(--stroke) 0.000em 0.110em 0, var(--stroke) -0.028em 0.106em 0, var(--stroke) -0.055em 0.095em 0, var(--stroke) -0.078em 0.078em 0, var(--stroke) -0.095em 0.055em 0, var(--stroke) -0.106em 0.028em 0, var(--stroke) -0.110em 0.000em 0, var(--stroke) -0.106em -0.028em 0, var(--stroke) -0.095em -0.055em 0, var(--stroke) -0.078em -0.078em 0, var(--stroke) -0.055em -0.095em 0, var(--stroke) -0.028em -0.106em 0, var(--stroke) -0.000em -0.110em 0, var(--stroke) 0.028em -0.106em 0, var(--stroke) 0.055em -0.095em 0, var(--stroke) 0.078em -0.078em 0, var(--stroke) 0.095em -0.055em 0, var(--stroke) 0.106em -0.028em 0, var(--stroke) 0.060em 0.000em 0, var(--stroke) 0.052em 0.030em 0, var(--stroke) 0.030em 0.052em 0, var(--stroke) 0.000em 0.060em 0, var(--stroke) -0.030em 0.052em 0, var(--stroke) -0.052em 0.030em 0, var(--stroke) -0.060em 0.000em 0, var(--stroke) -0.052em -0.030em 0, var(--stroke) -0.030em -0.052em 0, var(--stroke) -0.000em -0.060em 0, var(--stroke) 0.030em -0.052em 0, var(--stroke) 0.052em -0.030em 0;
  --ring-sm: var(--stroke) 0.120em 0.000em 0, var(--stroke) 0.111em 0.046em 0, var(--stroke) 0.085em 0.085em 0, var(--stroke) 0.046em 0.111em 0, var(--stroke) 0.000em 0.120em 0, var(--stroke) -0.046em 0.111em 0, var(--stroke) -0.085em 0.085em 0, var(--stroke) -0.111em 0.046em 0, var(--stroke) -0.120em 0.000em 0, var(--stroke) -0.111em -0.046em 0, var(--stroke) -0.085em -0.085em 0, var(--stroke) -0.046em -0.111em 0, var(--stroke) -0.000em -0.120em 0, var(--stroke) 0.046em -0.111em 0, var(--stroke) 0.085em -0.085em 0, var(--stroke) 0.111em -0.046em 0, var(--stroke) 0.060em 0.000em 0, var(--stroke) 0.042em 0.042em 0, var(--stroke) 0.000em 0.060em 0, var(--stroke) -0.042em 0.042em 0, var(--stroke) -0.060em 0.000em 0, var(--stroke) -0.042em -0.042em 0, var(--stroke) -0.000em -0.060em 0, var(--stroke) 0.042em -0.042em 0;
  /* thin hard outline for VT323 text */
  --ring-mono: 0 .06em 0 var(--ink), .06em 0 0 var(--ink), -.06em 0 0 var(--ink), 0 -.06em 0 var(--ink);

  /* pixel cursors (hotspot = arrow tip / fingertip) */
  --cur: url("../assets/cursors/arrow.png") 1 1, default;
  --cur-down: url("../assets/cursors/arrow-click.png") 9 10, default;
  --cur-link: url("../assets/cursors/hand.png") 11 1, pointer;
  --cur-link-down: url("../assets/cursors/hand-click.png") 11 9, pointer;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--wall);
  color: var(--stroke);
  font: 400 18px/1.4 var(--mono);
  cursor: var(--cur);
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Cursors ---------- */
a, button, [role="button"], label[for] { cursor: var(--cur-link); }
body.is-down { cursor: var(--cur-down); }
body.is-down a, body.is-down button { cursor: var(--cur-link-down); }

/* ---------- Type helpers ---------- */
.blackletter { font-family: var(--display); font-weight: 400; color: var(--ink); }
.outline     { text-shadow: var(--ring); }
.outline-sm  { text-shadow: var(--ring-sm); }
.pixelated   { image-rendering: pixelated; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px dashed var(--stroke); outline-offset: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
