/* Fælles udtryk for hele sitet. Øvelsessiderne lægger deres eget ovenpå. */

:root {
  --ink: #17202a;
  --ink-soft: #5a6673;
  --ink-faint: #8b96a3;
  --paper: #ffffff;
  --bg: #f4f5f3;
  --line: #dfe3e0;
  --accent: #14425c;
  --accent-soft: #e7eef2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 42, .05), 0 8px 24px rgba(23, 32, 42, .06);
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sidehoved ────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--ink-faint); font-weight: 400; }

.crumbs {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-soft);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--ink-faint); padding: 0 6px; }

/* ── Sidetop ──────────────────────────────────────────────────────────── */

.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 40px); }
.page-head .lede {
  margin-top: 12px;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 17px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Kort ─────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-bottom: 64px;
  list-style: none;
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: #c9d2cd;
  box-shadow: 0 2px 4px rgba(23, 32, 42, .06), 0 14px 32px rgba(23, 32, 42, .10);
}

a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.card h2 { font-size: 19px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.card .tag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.card.is-empty { background: transparent; box-shadow: none; border-style: dashed; }
.card.is-empty .tag { background: #eceeeb; color: var(--ink-faint); }

/* ── Bund ─────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--ink-faint);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
