/* kquiz.css — v1.1.0 | keiserdesign.dk/playground/quiz/css/kquiz.css
   K-Quiz homepage refresh (from the Design canvas "K-Quiz homepage — refresh").
   Changelog v1.1.0 (2026-11-03): font files = fontsource "standard" variable woff2 (Bricolage: opsz + wght + wdth;
     Inter: opsz + wght), latin subset incl. æøå; font-stretch/opsz declared. Otherwise identical to design v1.0. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #172038;          /* page background */
  --icon-navy: #1A2744;   /* icon background / K / text on light */
  --surface: #202940;     /* cards */
  --surface-2: #2A3555;   /* icon tiles in cards */
  --border: #2C3654;
  --border-strong: #3A466B;
  --line: #263152;        /* header / footer rules */
  --text: #FFFFFF;
  --text-2: #C9CEDD;
  --text-muted: #A9B0C8;
  --accent: #EFC638;      /* yellow */
  --dot: #F2600C;         /* orange (logo dot + i-dot) */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Wordmark: K-Quiz with orange i-dot ---------- */
.wordmark { font-family: var(--font-display); font-weight: 800; }
.wordmark .q { color: var(--accent); }
/* The orange i-dot: an orange copy of the "i" on top of the yellow one,
   clipped so only the dot shows. Works at any size and line-height. */
.idot { position: relative; display: inline-block; }
.idot::after {
  content: "i";
  content: "i" / "";   /* empty alt text: screen readers do not read the extra "i" */
  position: absolute;
  inset: 0;
  color: var(--dot);
  clip-path: inset(0 0 calc(50% + 0.24em) 0);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; display: block; }
.brand .wordmark { font-size: 24px; letter-spacing: -0.03em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav a:hover { color: var(--text); }
.nav a.nav-outline { padding: 0 20px; border: 1.5px solid var(--border-strong); color: var(--text); font-weight: 600; }

/* ---------- Hero ---------- */
main { flex-grow: 1; }
.hero .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-block: 88px 72px;
}
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pill {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border-radius: 999px; background: #222C4A; border: 1px solid var(--border-strong);
  color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.hero-title { display: flex; flex-direction: column; gap: 10px; }
.hero h1 {
  margin: 0; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.045em;
}
.byline {
  margin: 0 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--text-muted);
}
.lead { margin: 0; max-width: 34rem; font-size: 20px; line-height: 1.5; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  text-decoration: none; cursor: pointer; border: 0;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #F5D35E; color: var(--bg); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

/* ---------- Join card ---------- */
.join {
  flex: 1 1 360px; min-width: 0; max-width: 440px; padding: 32px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
}
.join-head { display: flex; align-items: center; gap: 14px; }
.join-head img { width: 56px; height: 56px; display: block; }
.join h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input {
  min-height: 52px; padding: 0 18px; border-radius: 12px;
  border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px;
}
.field input::placeholder { color: #7D859E; }
.field input:focus { border-color: var(--accent); outline: none; }
.field input.code {
  min-height: 56px; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.3em;
}
.field input.code::placeholder { letter-spacing: normal; font-size: 18px; font-weight: 500; }
.join .btn { width: 100%; }
.join-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-align: center; }

/* ---------- Feature cards ---------- */
.features .wrap { padding-bottom: 96px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 280px; min-width: 0; padding: 28px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px; font-size: 14px; color: var(--text-muted);
}
.site-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero .wrap { padding-block: 48px 48px; gap: 40px; }
  .join { padding: 24px; }
  .lead { font-size: 18px; }
}
