/* =========================================================
   Ekstra preg utover tokens. Tokens per preg ligg i tokens.css.
   ========================================================= */

/* ---------- U: liga ---------- */
:where(.theme-u) h1 { font-size: var(--fs-3xl); line-height: 0.92; }
:where(.theme-u) h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); line-height: 0.95; }
:where(.theme-u) h3 { line-height: 1; }
:where(.theme-u) .lead { color: var(--text-muted); }
:where(.theme-u) .section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: var(--sp-3);
  background: var(--accent);
}

/* Skarp diagonal overgang mellom seksjonar i U */
.u-slash { position: relative; }
.u-slash::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 28px;
  background: var(--c-ink-900);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

/* ---------- M: lys og leiken ---------- */
:where(.theme-m) h1, :where(.theme-m) h2 { letter-spacing: -0.02em; }
.theme-m .card { border-width: 2px; }
.theme-m .section--alt { background: var(--bg-alt); }
.m-blob {
  position: absolute;
  border-radius: 46% 54% 63% 37% / 42% 45% 55% 58%;
  background: var(--c-accent-tint);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Foreldre: roleg ---------- */
:where(.theme-foreldre) h1 { font-size: var(--fs-xl); }
:where(.theme-foreldre) h2 { font-size: var(--fs-lg); }
:where(.theme-foreldre) .lead { color: var(--text-muted); }
:where(.theme-foreldre) p, :where(.theme-foreldre) li { max-width: 68ch; }
