/* ── /vis/innpakka: året i musikk, kort for kort ────────────────────────────
   Ein fast nattehage, lik i lyst og mørkt modus: kvart kort har sin eigen
   bakgrunn, så sida følgjer ikkje prefers-color-scheme slik resten av /vis
   gjer. Pargangane er gata i test/contrast.test.js. ADR 0076. */

:root {
  color-scheme: dark;
  --ip-plomme: #26102b;
  --ip-rosa: #ff8fb1;
  --ip-gull: #ffc145;
  --ip-mose: #1d4a38;
  --ip-mjolk: #fff3ea;
  --ip-rose: #7a1f4a;
  --ip-blekk: #26102b;
  --ip-disp: "Unbounded", system-ui, sans-serif;
  --ip-tekst: "Inter Tight", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-snap-type: y proximity; }
body.ip {
  margin: 0; background: var(--ip-plomme); color: var(--ip-mjolk);
  font: 16px/1.5 var(--ip-tekst);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ip-mjolk); color: var(--ip-blekk); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ip-topp {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, 4vw) 10px;
  background: var(--ip-plomme); color: var(--ip-mjolk);
  font: 600 14px var(--ip-tekst);
  border-bottom: 1px solid rgba(255, 243, 234, 0.18);
}
.ip-topp a { color: inherit; text-decoration: none; min-height: 24px; }
.ip-topp a:hover { text-decoration: underline; }

/* Korta: kvart minst ein skjerm høgt, innhaldet i ei 560 px-søyle. */
.ip-kort {
  min-height: 100svh; scroll-snap-align: start;
  display: flex; justify-content: center; align-items: center;
  padding: 72px max(16px, 5vw) 56px;
}
.ip-inn { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.ip-plomme { background: var(--ip-plomme); color: var(--ip-mjolk); }
.ip-rosa   { background: var(--ip-rosa);   color: var(--ip-blekk); }
.ip-gull   { background: var(--ip-gull);   color: var(--ip-blekk); }
.ip-mose   { background: var(--ip-mose);   color: var(--ip-mjolk); }
.ip-mjolk  { background: var(--ip-mjolk);  color: var(--ip-blekk); }
.ip-rose   { background: var(--ip-rose);   color: var(--ip-mjolk); }
.ip-kort a { color: inherit; }
.ip-kort a:focus-visible, .ip-topp a:focus-visible, .ip-fot a:focus-visible {
  outline: 3px solid currentColor; outline-offset: 3px;
}

.ip-h1, .ip-h2, .ip-stor {
  font-family: var(--ip-disp); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0; text-wrap: balance;
}
.ip-h1 { font-size: clamp(40px, 11vw, 72px); }
.ip-h2 { font-size: clamp(26px, 6.4vw, 40px); }
.ip-inn .ip-stor { font-size: clamp(64px, 19vw, 120px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-inn .ip-stor--mindre { font-size: clamp(52px, 15vw, 96px); }
.ip-inn .ip-stor--dato { font-size: clamp(44px, 13vw, 88px); }
.ip-inn p { margin: 0; font-size: 17px; max-width: 34em; }
.ip-inn .ip-lede { font-size: 19px; font-weight: 600; }
.ip-inn .ip-liten { font-size: 14px; }
.ip-auga { font: 600 13px var(--ip-tekst); letter-spacing: 0.14em; text-transform: uppercase; }

.ip-blom { width: min(100%, 340px); aspect-ratio: 1; align-self: center; }
.ip-blom--liten { width: min(60%, 200px); }

.ip-med-bilete { display: flex; align-items: center; gap: 16px; }
.ip-omslag {
  display: block; width: 96px; height: 96px; flex: 0 0 auto; border-radius: 8px;
  object-fit: cover; background: rgba(38, 16, 43, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.ip-omslag--stor { width: 120px; height: 120px; }
.ip-utan { background: repeating-radial-gradient(circle, rgba(255, 243, 234, 0.18) 0 4px, transparent 4px 10px), var(--ip-plomme); }
.ip-mini { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; display: block; }

.ip-tal {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr));
}
.ip-tal li { border-top: 2px solid currentColor; padding-top: 8px; }
.ip-tal b { display: block; font: 800 clamp(26px, 6.6vw, 38px)/1.05 var(--ip-disp); font-variant-numeric: tabular-nums; }
.ip-tal span { font-size: 14px; }

.ip-rader { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ip-rader li {
  display: grid; grid-template-columns: 2em auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  border-top: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 10px;
}
.ip-rader li:not(:has(img, .ip-utan)) { grid-template-columns: 2em minmax(0, 1fr) auto; }
.ip-nr { font: 800 20px var(--ip-disp); }
.ip-t { font-weight: 600; font-size: 17px; line-height: 1.25; }
.ip-t span { display: block; font-weight: 400; font-size: 14px; }
.ip-v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ip-opp, .ip-ned { font-weight: 800; }

.ip-manader {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px;
  align-items: end; height: 220px;
}
.ip-manader li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.ip-soyle { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: rgba(255, 243, 234, 0.55); min-height: 2px; }
.ip-mnd-topp .ip-soyle { background: var(--ip-gull); }
.ip-mnd { font-size: 12px; }
@media (max-width: 480px) { .ip-mnd { font-size: 10px; letter-spacing: -0.02em; } }

.ip-prikkar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: min(100%, 320px); }
.ip-prikkar i { aspect-ratio: 1; border-radius: 50%; background: rgba(38, 16, 43, 0.2); }
.ip-prikkar i.ip-fylt { background: var(--ip-rose); }

.ip-kasse {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.ip-kasse li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ip-kasse .ip-omslag { width: 100%; height: auto; aspect-ratio: 1; }
.ip-kasse-nr {
  position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; border-radius: 13px;
  display: grid; place-items: center; background: var(--ip-plomme); color: var(--ip-mjolk);
  font: 800 13px var(--ip-disp);
}
.ip-kasse-t { font-size: 13px; line-height: 1.3; }
.ip-kasse-t b, .ip-kasse-t em { display: block; }
.ip-kasse-t em { font-style: normal; font-weight: 600; }

.ip-merke {
  display: inline-block; background: var(--ip-gull); color: var(--ip-blekk);
  border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 14px; margin-right: 4px;
}

.ip-billettar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ip-billett {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px;
  background: var(--ip-mjolk); color: var(--ip-blekk);
  border-radius: 10px; padding: 12px 14px; border-left: 8px dotted var(--ip-plomme);
}
.ip-billett-d { font: 800 14px/1.15 var(--ip-disp); grid-row: span 2; align-self: center; text-align: center; }
.ip-billett-a { font-weight: 800; font-size: 16px; line-height: 1.25; }
.ip-med { font-weight: 400; }
.ip-billett-w { font-size: 14px; }

.ip-fot { background: var(--ip-plomme); padding: 28px max(16px, 5vw) calc(env(safe-area-inset-bottom, 0px) + 28px); text-align: center; font-size: 14px; }
.ip-fot a { color: var(--ip-mjolk); }
