/*
 * Shared foundation for every Lutris Labs page.
 * Palette tokens, minimal reset, accessibility defaults.
 * All layout and personality lives in the per-concept stylesheets.
 */

:root {
  --navy: #103560;
  --blue: #2460A4;
  --sky: #599DDA;
  --orange: #FC9622;
  --burnt-orange: #E36308;
  --deep-orange: #9E3503;
  --ink: #120B10;
  --paper: #F8FAF8;
  --white: #FFFFFF;

  --font-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--burnt-orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Functional default for the EN/NL switch; concepts restyle it. */
.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
}

.lang-switch button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
