/* ==========================================================================
   Tom Ole Alvær / Kunst for Folket
   Designsystem: se design-system/tom-ole-alvaer/MASTER.md
   Tailwind (CDN) brukes kun til layout-utilities i HTML. Alt som må virke
   uten Tailwind – farger, typografi, komponenter – ligger her.
   ========================================================================== */

:root {
  /* Farger */
  --bg: #121110;
  --bg-raised: #1b1a18;
  --bg-sunken: #0b0a09;
  --ink: #f2ede4;
  --ink-2: #cfc8bc;
  --ink-3: #a39c90;
  --accent: #d2a65c;
  --accent-strong: #e2ba74;
  --on-accent: #121110;
  --line: #3a3631;
  --line-strong: #7a746b;

  /* Typografi */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-hero: clamp(3.4rem, 1.6rem + 7.6vw, 8.75rem);
  --fs-display: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  --fs-h3: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  --fs-lead: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --fs-story: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* Avstand */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --wrap: 82rem;
  --header-h: 4rem;

  /* Kanter og bevegelse */
  --radius: 2px;
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 450ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Bildetoning: varm monokrom som treffer kull/offwhite/messing. Samme
     funksjonsliste i begge tilstander, så overgangen interpoleres jevnt. */
  --tone: grayscale(1) sepia(0.32) saturate(0.9) contrast(1.06) brightness(0.82);
  --tone-off: grayscale(0) sepia(0) saturate(1) contrast(1) brightness(1);
  --dur-tone: 700ms;
}

@media (min-width: 1024px) {
  :root { --header-h: 4.5rem; }
}

/* --------------------------------------------------------------------------
   Grunnlag (Tailwinds preflight er slått av)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.is-locked,
html.is-locked body { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Seksjoner som får programmatisk fokus etter ankerhopp */
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 1.125em; height: 1.125em;
  flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: var(--s-4); top: -10rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* --------------------------------------------------------------------------
   Typografiske byggeklosser
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.eyebrow .num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 2rem; height: 1px; margin-left: var(--s-3);
  background: var(--line-strong);
}

.display {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display em { font-style: italic; }

.h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}

.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s-4); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --------------------------------------------------------------------------
   Bilder som smelter inn i flaten
   - .tone / galleriet: tonet i sidens palett, ekte farger ved hover, tastatur-
     fokus, eller (berøringsskjerm) når bildet står midt i skjermen (.is-lit, JS).
   - .fade-edges: kantene løses opp mot bakgrunnen i stedet for harde rammer.
   -------------------------------------------------------------------------- */
.tone img,
.gallery img {
  filter: var(--tone);
  transition: filter var(--dur-tone) var(--ease), transform var(--dur-slow) var(--ease);
}
.tone.is-lit img,
.gallery a.is-lit img,
.gallery a:focus-visible img { filter: var(--tone-off); }
@media (hover: hover) {
  .tone:hover img,
  .gallery a:hover img { filter: var(--tone-off); }
}

/* To lineære masker som krysses: alle fire kanter tones ut, midten står urørt. */
.fade-edges img {
  --fade-x: transparent 0%, #000 12%, #000 88%, transparent 100%;
  --fade-y: transparent 0%, #000 10%, #000 84%, transparent 100%;
  -webkit-mask-image: linear-gradient(to right, var(--fade-x)), linear-gradient(to bottom, var(--fade-y));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, var(--fade-x)), linear-gradient(to bottom, var(--fade-y));
  mask-composite: intersect;
}
/* Portrettet løses mest opp mot teksten (venstre) og nedover */
.hero-portrait.fade-edges img {
  --fade-x: transparent 0%, #000 24%, #000 90%, transparent 100%;
  --fade-y: transparent 0%, #000 9%, #000 70%, transparent 100%;
}

/* --------------------------------------------------------------------------
   Knapper og lenker
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon-nudge { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); background: rgba(242, 237, 228, 0.06); }

.btn-sm { min-height: 2.75rem; padding: 0 1rem; }

.link-quiet {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur) var(--ease);
}
.link-quiet:hover { text-decoration-color: var(--accent); }

/* --------------------------------------------------------------------------
   Header og navigasjon
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 17, 16, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: var(--s-4);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 2.25rem; height: auto; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: var(--s-1); }
.nav-desktop a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="true"] { color: var(--ink); }
.nav-desktop a[aria-current="true"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.45em; }

/* «foredrag» skjules visuelt på smale skjermer, men leses fortsatt opp */
.header-cta .long {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 2.75rem; min-height: 2.75rem;
  padding: 0 0.75rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--ink); }

/* Smale telefoner: kompakt header så navn, booking og meny får plass */
.brand { min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 419px) {
  .header-inner { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand-mark { width: 2rem; }
  .brand-name { font-size: 1.0625rem; }
  .header-cta { padding: 0 0.8rem; }
  .menu-toggle:not(.menu-close) { padding: 0; }
  .menu-toggle:not(.menu-close) > span {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

@media (min-width: 480px) {
  .header-cta .long { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }
  .brand-mark { width: 2.5rem; }
}

/* Mobilmeny (modal <dialog>) */
.mobile-menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.mobile-menu::backdrop { background: rgba(11, 10, 9, 0.7); }
.mobile-menu[open] { display: flex; flex-direction: column; }
.mobile-menu-top {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  padding-block: var(--s-6) var(--s-7);
  overflow-y: auto;
}
.mobile-menu ol { counter-reset: m; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: var(--s-4);
  padding: var(--s-4) 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}
.mobile-menu li a::before {
  counter-increment: m;
  content: "0" counter(m);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mobile-menu-foot { display: grid; gap: var(--s-4); }
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot a.tel { color: var(--ink-2); font-size: var(--fs-small); }


/* --------------------------------------------------------------------------
   Seksjoner
   -------------------------------------------------------------------------- */
main { display: block; }
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section--raised { background: var(--bg-raised); }
.section--sunken { background: var(--bg-sunken); }
.section-head { display: grid; gap: var(--s-5); margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 5vw, 5.5rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; font-weight: 300; }
.hero-roles {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero-roles span + span::before { content: "·"; margin: 0 0.6em; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: transparent;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 30%;
}
/* Nettbrett: bredere utsnitt så portrettet ikke tar hele skjermhøyden */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-portrait { aspect-ratio: 5 / 4; }
  .talk-figure img { aspect-ratio: 4 / 3; }
}
.hero-portrait figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: var(--s-2) var(--s-3);
  background: rgba(11, 10, 9, 0.8);
  font-size: var(--fs-label);
  color: var(--ink-2);
}
.hero-index { border-top: 1px solid var(--line); }
.hero-index a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.hero-index .num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-index .t { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.2; }
.hero-index .d { display: block; font-family: var(--font-sans); font-size: var(--fs-small); color: var(--ink-3); margin-top: 0.15rem; }
.hero-index .icon { color: var(--ink-3); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.hero-index a:hover .icon { color: var(--accent); transform: translateY(2px); }

/* --- Foredrag ------------------------------------------------------------- */
.talk-figure { position: relative; }
.talk-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 55%; }
.pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote::before { content: "«"; color: var(--accent); }
.pullquote::after { content: "»"; color: var(--accent); }

.tailor {
  display: grid; gap: var(--s-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-left: 2px solid var(--accent);
  background: var(--bg);
}
.tailor .label { color: var(--accent); }
.fact-block { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.fact-block h3 { margin-bottom: var(--s-4); }
.fact-list li {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) 1.5rem;
  color: var(--ink-2);
}
.fact-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 0.75rem; height: 1px; background: var(--accent);
}
.status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small); color: var(--ink-2);
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

/* --- Obduksjon (fortelling) ---------------------------------------------- */
.story-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 1.2rem + 8vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.story-dek { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lead); color: var(--ink-2); max-width: 36ch; }

.story-toc { display: none; }
@media (min-width: 1024px) {
  .story-toc { display: block; position: sticky; top: calc(var(--header-h) + var(--s-7)); align-self: start; }
}
.story-toc li a {
  display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline;
  min-height: 2.75rem; padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.story-toc li a span { font-family: var(--font-serif); font-style: italic; color: var(--ink-3); }
.story-toc li a:hover { color: var(--ink); }
.story-toc li a[aria-current="true"] { color: var(--ink); }
.story-toc li a[aria-current="true"] span { color: var(--accent); }

.story-body { max-width: 62ch; }
.chapter + .chapter, .story-figure + .chapter { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.chapter-kicker { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.chapter-kicker .roman { font-family: var(--font-serif); font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--accent); }
.chapter-title { margin-bottom: var(--s-5); }
.chapter p {
  font-family: var(--font-serif);
  font-size: var(--fs-story);
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}
.chapter p + p { margin-top: var(--s-5); }
.chapter p em { color: var(--ink); }
.chapter .dropcap::first-letter {
  float: left;
  font-size: 4.3em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--ink);
}
.story-quote {
  margin: var(--s-7) 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
}
.story-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
}
.story-quote footer { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-3); }
.story-figure { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.story-figure img { width: 100%; }
.story-figure--offset { max-width: 26rem; }
.story-end {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--s-4);
}
.story-end p { color: var(--ink-2); }

/* --- Musikk --------------------------------------------------------------- */
.music-mark {
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--bg-sunken);
}
.music-mark img { width: 62%; height: auto; }
@media (max-width: 1023px) {
  .music-mark { max-width: 20rem; }
}
.archive-card {
  display: grid; gap: var(--s-4);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.archive-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-small); color: var(--ink-3); }
.archive-card .meta span { display: inline-flex; align-items: center; gap: var(--s-2); }

/* --- Foto ----------------------------------------------------------------- */
.gallery { columns: 2; column-gap: var(--s-3); }
@media (min-width: 768px) { .gallery { column-gap: var(--s-4); } }
@media (min-width: 1024px) { .gallery { columns: 3; column-gap: var(--s-5); } }
.gallery li { break-inside: avoid; margin-bottom: var(--s-3); }
@media (min-width: 768px) { .gallery li { margin-bottom: var(--s-4); } }
@media (min-width: 1024px) { .gallery li { margin-bottom: var(--s-5); } }
.gallery a {
  position: relative; display: block;
  background: var(--bg-raised);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery img { width: 100%; }
.gallery a:hover img { transform: scale(1.02); }
/* Myk innervignett som binder bildekanten til flaten; forsvinner når bildet «tennes» */
.gallery a::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.05), inset 0 0 3rem 0.5rem rgba(18, 17, 16, 0.55);
  transition: opacity var(--dur-tone) var(--ease);
}
.gallery a.is-lit::after,
.gallery a:focus-visible::after { opacity: 0; }
@media (hover: hover) {
  .gallery a:hover::after { opacity: 0; }
}
.gallery .zoom {
  z-index: 1;
  position: absolute; right: var(--s-2); bottom: var(--s-2);
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: rgba(11, 10, 9, 0.75);
  color: var(--ink);
}
.archive-band {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--s-5);
}
@media (min-width: 768px) {
  .archive-band { grid-template-columns: 1fr auto; align-items: end; }
}

/* Lysboks */
.lightbox {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(11, 10, 9, 0.97);
  color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(11, 10, 9, 0.9); }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--gutter);
}
.lightbox-count { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lightbox-stage {
  min-height: 0;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}
.lightbox-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox-nav {
  display: flex; justify-content: center; gap: var(--s-4);
  padding: var(--s-4) var(--gutter) var(--s-5);
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 3rem; min-height: 3rem;
  padding: 0 var(--s-4);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--fs-small); font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--ink); background: rgba(242, 237, 228, 0.06); }

/* --- Historikk ------------------------------------------------------------ */
.cv-list > li {
  display: grid; gap: var(--s-1) var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) {
  .cv-list > li { grid-template-columns: 11rem 1fr; }
}
.cv-when { font-size: var(--fs-small); color: var(--ink-3); }
.cv-role { font-family: var(--font-serif); font-size: 1.3125rem; font-weight: 500; line-height: 1.25; color: var(--ink); }
.cv-org { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); margin-top: 0.15rem; }
.cv-desc { margin-top: var(--s-2); color: var(--ink-3); font-size: var(--fs-small); max-width: 56ch; }
.side-note {
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
}
.side-note dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); margin-top: var(--s-4); font-size: var(--fs-small); }
.side-note dt { color: var(--ink-3); }
.side-note dd { color: var(--ink); }

/* --- Kontakt -------------------------------------------------------------- */
.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 1.4rem + 7vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.contact-line {
  display: grid; gap: var(--s-1);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line .value {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.contact-line .value .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); transition: transform var(--dur) var(--ease); }
.contact-line:hover .value .icon { transform: translateX(4px); }
.contact-line .hint { font-size: var(--fs-small); color: var(--ink-3); }

.site-footer {
  padding-block: var(--s-7);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.site-footer .brand-foot { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--fs-label); }
.site-footer .brand-foot img { width: 2rem; }
.site-footer .org { flex-basis: 100%; }
.site-footer .org a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); }
.site-footer .org a:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* --------------------------------------------------------------------------
   Diskré innglidning – kun når JS har bekreftet at det er trygt
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .mobile-menu, .lightbox, .skip-link, .story-toc { display: none !important; }
  body { background: #fff; color: #000; }
}
