/* Home page and privacy page. Mobile-first; no build step. */

:root {
  color-scheme: light dark;
  --page-bg: #F6F1EA;
  --page-text: #1d1a16;
  --page-muted: #6b6258;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Default (unknown slug) card colours; per-slug overrides below. */
  --card-bg: #2c2c2a;
  --card-text: #ffffff;
  --pill-bg: #ffffff;
  --pill-text: #2c2c2a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #15130f;
    --page-text: #f3ede4;
    --page-muted: #b3a99c;
  }
  .card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
}

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 0;
}

/* ---------- Header ---------- */

.site-header { margin-bottom: 20px; }

.title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 10px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.brand {
  font-size: 13px;
  color: var(--page-muted);
}

.tagline {
  margin: 8px 0 0;
  max-width: 34em;
  color: var(--page-text);
}

/* ---------- Game cards ---------- */

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 132px;
  height: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--card-text);
  text-decoration: none;
  transition: transform 120ms ease;
}

.card[data-slug="kraai-op-de-kop"] { --card-bg: #3b2a1f; --card-text: #F6F1EA; --pill-bg: #F6F1EA; --pill-text: #3b2a1f; }
.card[data-slug="lange-lokken"]    { --card-bg: #020912; --card-text: #FCFCFC; --pill-bg: #E3001B; --pill-text: #FFFFFF; }
.card[data-slug="tassenregen"]     { --card-bg: #11110E; --card-text: #FFFFFF; --pill-bg: #9FCAFC; --pill-text: #11110E; }
.card[data-slug="bubbels"]         { --card-bg: #27348A; --card-text: #FDEBC3; --pill-bg: #FDEBC3; --pill-text: #27348A; }

@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
}

/* The ring is the card's button colour (as designed). The inner ring in the page text colour
   keeps it visible where the button colour matches the page background. */
.card:focus-visible {
  outline: 3px solid var(--pill-bg);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--page-text);
}

.shop {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.3;
}

.name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.prize,
.cities {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.cities { opacity: 0.9; }

.pill {
  margin-top: auto;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}

/* Minimum space between the last text line and the pill; the pill sits at the card bottom. */
.card > :nth-last-child(2) { margin-bottom: 12px; }

/* ---------- Footer ---------- */

.site-footer {
  width: 100%;
  max-width: 880px;
  margin: auto auto 0;
  padding: 32px 16px 16px;
  display: flex;
  gap: 8px 20px;
  font-size: 13px;
}

.site-footer a,
.back {
  color: var(--page-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0;
  display: inline-block;
}

.site-footer a:hover,
.back:hover { color: var(--page-text); }

.site-footer a:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--page-text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Privacy page ---------- */

.prose { max-width: 40em; }

.prose h1 { margin-bottom: 4px; }

.prose h2 {
  margin: 28px 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.prose p,
.prose ul { margin: 0 0 12px; }

.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

.prose a { color: var(--page-text); text-underline-offset: 3px; }
.prose a:focus-visible { outline: 3px solid var(--page-text); outline-offset: 2px; border-radius: 2px; }

.prose .lead { color: var(--page-muted); }

.back { margin: -10px 0 8px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
