@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url(/fonts/atkinson.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #131820;
  --muted: #535b66;
  --line: #d9dee4;
  --accent: #2350d8;
  --on-accent: #ffffff;
  --hero-bg: var(--bg);
  --hero-ink: var(--ink);
  --hero-muted: var(--muted);
  --pill-bg: #e3e8f9;
  --pill-ink: #1a3a9e;
  --display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, sans-serif;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 44px);
  --r: 18px;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
}

.mark img {
  width: 32px;
  height: 32px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
}

.foot {
  margin-top: clamp(56px, 9vw, 104px);
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.foot a {
  color: inherit;
}

.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.intro {
  padding-block: clamp(36px, 7vw, 88px) clamp(28px, 5vw, 56px);
}

.intro h1 {
  max-width: 14em;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
}

.intro p {
  max-width: 34em;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--r);
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-head img,
.hero-icon {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.22);
}

.card-head img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.card h2 {
  font-size: 1.6rem;
}

.card p {
  color: var(--hero-muted);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: auto;
  padding-top: 6px;
}

.card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hero-ink);
  font-weight: 700;
}

.pill {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.about {
  margin-top: clamp(48px, 8vw, 88px);
  max-width: 40em;
}

.about h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 12px;
}

.about p + p {
  margin-top: 12px;
}

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.hero .top a {
  color: var(--hero-ink);
}

.card :focus-visible,
.hero :focus-visible {
  outline-color: var(--focus-on-hero, var(--accent));
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(20px, 5vw, 56px) clamp(44px, 7vw, 88px);
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.hero-lead {
  max-width: 30em;
  margin-top: 16px;
  color: var(--hero-muted);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

.hero .pill {
  display: inline-block;
  margin-top: 24px;
}

.hero-art {
  justify-self: center;
  width: min(100%, 360px);
}

.dial {
  position: relative;
}

.dial img {
  width: 100%;
}

.dial figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dial strong {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.dial span {
  color: var(--hero-muted);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(70%, 280px);
  }
}

.content {
  padding-top: clamp(40px, 7vw, 80px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 40px;
}

.facts h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.facts ul {
  padding-left: 1.2em;
}

.facts li + li {
  margin-top: 6px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin-top: clamp(36px, 6vw, 64px);
}

.shots img {
  width: 100%;
  border-radius: 14px;
}

.note {
  max-width: 42em;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}

.note h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.note p + p {
  margin-top: 10px;
}

.doc {
  max-width: 42em;
  padding-top: clamp(28px, 5vw, 56px);
}

.doc h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
}

.doc .updated {
  margin-top: 10px;
  color: var(--muted);
}

.doc h2 {
  font-size: 1.5rem;
  margin-block: 40px 10px;
}

.doc p + p,
.doc ul + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.short {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tema-kunnskapsproven {
  --bg: #f6f5f8;
  --ink: #1d1622;
  --muted: #645b6b;
  --line: #e4dfe7;
  --accent: #6e1f48;
  --hero-bg: #3b0e27;
  --hero-ink: #ffffff;
  --hero-muted: rgb(255 255 255 / 0.8);
  --pill-bg: #f0b23e;
  --pill-ink: #3a2600;
  --focus-on-hero: #f0b23e;
}

.tema-zapcage {
  --bg: #f4f7fb;
  --ink: #0d1124;
  --muted: #4d5672;
  --line: #d9dfeb;
  --accent: #5b2bd6;
  --hero-bg: #070914;
  --hero-ink: #eef6ff;
  --hero-muted: #b4c0dd;
  --pill-bg: #ffd166;
  --pill-ink: #070914;
  --focus-on-hero: #3df0ff;
}

.card.tema-kunnskapsproven,
.card.tema-zapcage {
  background: var(--hero-bg);
}

@media (prefers-reduced-motion: no-preference) {
  .card-links a,
  .top-link {
    transition: color 0.15s ease;
  }
}
