/* The landing page and 404 of modding.tabbingstudios.com, in the colours and fonts of tabbingstudios.com. */
@font-face {
  font-family: "Jersey 10";
  src: url("/fonts/jersey-10-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0820;
  --bg-2: #120c2c;
  --panel: #1a1238;
  --line: #3a2a6e;
  --text: #f6ead2;
  --muted: #b9adc9;
  --accent: #dc6420;
  --accent-dark: #94400f;
  --cyan: #5cc6d3;
  --gold: #f5c04a;
  --px: 4px;
  --display: "Jersey 10", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.55;
}
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: var(--px) solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1rem; }

.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }

.top { padding: 1.2rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #ece4ce;
  font-family: var(--display); font-size: 1.6rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
}
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }

main { flex: 1; padding: 2.5rem 0 4rem; }
h1 {
  font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 8vw, 4.4rem); text-transform: uppercase; text-shadow: 0 4px 0 #000; margin: 0 0 1.2rem;
}
h1 em { font-style: normal; color: var(--gold); }
.prompt { font-family: var(--display); font-size: 1.35rem; color: var(--cyan); margin-bottom: 0.6rem; }
.muted { color: var(--muted); }

.games { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
/* Pixel-notched box: the 4 shadows draw the border and leave the corners cut. */
.games a {
  display: block; margin: var(--px); padding: 1rem 1.2rem 1.1rem; background: var(--panel);
  color: var(--text); text-decoration: none;
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--bc, var(--line)),
    0 var(--px) 0 0 var(--bc, var(--line)),
    calc(var(--px) * -1) 0 0 0 var(--bc, var(--line)),
    var(--px) 0 0 0 var(--bc, var(--line));
}
.games a:hover { --bc: var(--gold); }
.games .name { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.games .about { color: var(--muted); }

.lost { text-align: center; }
.lost h1 { font-size: clamp(6rem, 22vw, 10rem); color: #fff6e6; text-shadow: 0 0.05em 0 var(--accent), 0 0.1em 0 var(--accent-dark); margin-bottom: 1rem; }

.footer { border-top: var(--px) solid var(--bg-2); padding: 1.4rem 0; font-size: 1rem; color: var(--muted); }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  body { font-size: 1.05rem; }
}
