/* ==========================================================================
   Min Lille Kæreste — Design System
   Shared tokens, reset and base components used across the whole site
   (homepage, /games/, /store/). Individual games layer their own
   stylesheet on top of this for game-specific UI — see games/navneord/style.css
   for an example.

   Load order on every page: Google Fonts <link>, then this file, then any
   page/game-specific stylesheet.
   ========================================================================== */

:root {
  /* Background (mutable at runtime, e.g. mood-reactive game backgrounds) */
  --bg-h: 38;
  --bg-s: 22%;
  --bg-l: 96%;
  --bg: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
  --surface: #FFFFFF;

  /* Brand */
  --navy: #1A2340;
  --navy-soft: #2C3E6B;
  --gold: #D4A843;

  /* Semantic */
  --text: #1A2340;
  --muted: #7A849C;
  --border: #E2DDD5;
  --correct: #3A8A5A;
  --wrong: #C23B3B;

  /* Danish-flag accent pair — introduced for the fælleskøn/intetkøn noun
     quiz, kept global so any future two-way-contrast game can reuse it */
  --en-color: #C75C3F;
  --et-color: #2E7D8C;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-width: 1240px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 1.4s ease;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Site nav ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.site-nav .brand {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--navy);
}

.site-nav .brand span { color: var(--en-color); }

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-soft);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.15s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 14px rgba(26,35,64,0.25);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--border);
}

/* ── Cards ── */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(26,35,64,0.09), 0 1px 4px rgba(26,35,64,0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: #F3F0EA;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { color: var(--navy-soft); font-weight: 600; }
