/* styles.css — shared site styles for games.stuts.uk
   Follows the stuts.uk aesthetic: void-dark, minimal, hand-rolled. */

:root {
  --void: #0a0a0a;
  --obsidian: #141414;
  --smoke: #222222;
  --ash: #3a3a3a;
  --text: #e8e8e8;
  --muted: #888888;
  --dim: #555555;
  --purple: #ee00ce;
  --purple-glow: rgba(238, 0, 206, 0.3);
  --green: #0bda51;
  --green-dark: rgba(11, 218, 81, 0.35);
  --red: #ff4d3d;
  --red-dark: rgba(255, 77, 61, 0.35);
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Crimson Pro", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.header,
.footer {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header {
  border-bottom: 1px solid var(--smoke);
}

.header--linked a {
  color: var(--muted);
}

.header--linked a:hover {
  color: var(--text);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--smoke);
  color: var(--dim);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

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