/* Base for the plain pages with their own stylesheet: the ladder (/ladder/) and the claim page (/prijs/).
   Tokens, header, prizes block and footer; ladder.css and prijs.css do the rest. Mobile-first; no build step.
   (The home page and the legal pages use /home.css.) */

: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;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #15130f;
    --page-text: #f3ede4;
    --page-muted: #b3a99c;
  }
}

*, *::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; }

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

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

/* ---------- Prizes (shared/prizes.css does the rest) ---------- */

.prizes-block {
  margin-bottom: 24px;
  --prizes-fg: var(--page-text);
  --prizes-muted: var(--page-muted);
  --prizes-accent: var(--page-text);
}

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

.site-footer {
  width: 100%;
  max-width: 880px;
  margin: auto auto 0;
  padding: 32px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 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;
}

/* Discreet admin entry: icon-only lock at the far right of the footer row (as on the home page). */
.site-footer .admin-link {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.45;
}

.site-footer .admin-link:hover,
.site-footer .admin-link:focus-visible { opacity: 1; }

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