/* ==========================================================================
   Arild Kristo – felles stilark for hele nettstedet
   --------------------------------------------------------------------------
   Innhold:
     1. Skrifter (ligger lokalt i /fonts/)
     2. Farger og grunnregler
     3. Felles byggeklosser (overskrifter, etiketter, knapper)
     4. Topplinje og meny
     5. Bunntekst og søk
     6. Forside
     7. Fotografi og bokomslag (bildeviser, kontaktark, fullskjerm)
     8. Filmer
     9. Om Kristo
    10. Kontaktskjema
    11. Samtykkelinje for informasjonskapsler (vises bare hvis Google Analytics er satt opp)
    12. Mobil og nettbrett
   ========================================================================== */


/* 1. Skrifter ------------------------------------------------------------ */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/work-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/work-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. Farger og grunnregler ----------------------------------------------- */

:root {
  --ak-bg: #0F0F0F;          /* sidebakgrunn */
  --ak-panel: #161615;       /* litt lysere felt */
  --ak-strip: #2A2926;       /* filmstrimmel */
  --ak-line: #2E2D2A;        /* tynne skillelinjer */
  --ak-line-2: #3A3832;
  --ak-border: #6F6C65;      /* rammer på knapper og felt */
  --ak-text: #FFFFFF;
  --ak-text-2: #D9D6CF;      /* brødtekst */
  --ak-text-3: #CFCBC3;      /* bildetekster */
  --ak-muted: #A8A49C;       /* etiketter */
  --ak-dim: #8A867E;
  --ak-ink: #0F0F0F;         /* tekst på lyse felt */
  --ak-ink-2: #55524C;
  --ak-accent: #FFFFFF;      /* bakgrunn i kontaktfeltet og tekst på filmstrimmelen */

  --ak-font-display: 'Anton', 'Arial Narrow', sans-serif;
  --ak-font-ui: 'Work Sans', system-ui, sans-serif;
  --ak-font-text: 'Figtree', system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ak-bg);
  color: var(--ak-text);
  font-family: var(--ak-font-text);
}

/* Bildene kan ikke dras ut eller markeres (se også «bildevern» i js/main.js). */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

a { color: var(--ak-text); }
a:hover { color: var(--ak-text-3); }

cite { font-style: italic; }

[hidden] { display: none !important; }

/* Tydelig fokusmarkering for tastaturbrukere */
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.ak-inv :focus-visible { outline-color: #0F0F0F; }

.ak-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2000;
  padding: 12px 18px;
  background: #FFFFFF;
  color: #0F0F0F;
  font: 800 15px var(--ak-font-ui);
  text-decoration: none;
}
.ak-skip:focus { top: 12px; color: #0F0F0F; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* 3. Felles byggeklosser ------------------------------------------------- */

.ak-wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.ak-disp { font-family: var(--ak-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.ak-lab { font-family: var(--ak-font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.ak-muted { color: var(--ak-muted); }
.ak-dim { color: var(--ak-dim); }

/* Knapper */
.ak-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  text-decoration: none;
  font: 800 15px var(--ak-font-ui);
  cursor: pointer;
}
.ak-btn--solid { background: #FFFFFF; color: #0F0F0F; border: 0; }
.ak-btn--solid:hover { color: #3A3832; }
.ak-btn--lg { min-height: 52px; gap: 12px; }
.ak-btn--start { align-self: flex-start; }
.ak-btn--dark { border-color: #0F0F0F; color: #0F0F0F; }
.ak-btn--ink { background: #0F0F0F; color: #FFFFFF; border: 0; padding: 0 28px; }
.ak-btn--ink:hover { color: #FFFFFF; background: #2E2D2A; }

/* Kvadratiske pilknapper */
.ak-sq {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ak-border);
  color: #FFFFFF;
  cursor: pointer;
}
.ak-sq--solid { background: #FFFFFF; border-color: #FFFFFF; color: #0F0F0F; }
.ak-sq--glass { background: rgba(15, 15, 15, 0.7); }
.ak-sq--sm { width: 44px; height: 44px; border-color: var(--ak-line-2); }
.ak-sq:hover { border-color: #FFFFFF; }

/* Filmstrimmel-hull */
.ak-sprockets {
  height: 14px;
  background-image: repeating-linear-gradient(90deg, #0F0F0F 0 12px, transparent 12px 30px);
  background-size: 30px 9px;
  background-repeat: repeat-x;
  background-position: 9px center;
}

/* Liste med årstall til venstre (forside, priser) */
.ak-years { list-style: none; margin: 0; padding: 0; border-top: 1px solid #FFFFFF; font-size: 17px; }
.ak-years li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ak-line); }
.ak-years .ak-disp { font-size: 22px; line-height: 1.1; }
.ak-years--lg { font-size: 18px; line-height: 1.5; }
.ak-years--lg .ak-disp { font-size: 24px; }

/* Definisjonslister (kreditering, kontaktopplysninger, bokomslag) */
.ak-facts { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px 16px; font-size: 16px; line-height: 1.5; }
.ak-facts dt { color: var(--ak-muted); padding-top: 3px; }
.ak-facts dd { margin: 0; }

/* Felt om Nasjonalmuseet (forside og Om Kristo) */
.ak-museum { border-top: 1px solid var(--ak-line); border-bottom: 1px solid var(--ak-line); }
.ak-museum--flat { border-top: 0; }
.ak-museum-in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-end; }
.ak-museum-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ak-museum-text p { margin: 0; }
.ak-museum-text h2 { margin: 0; font-size: clamp(48px, 6vw, 96px); line-height: 1; }
.ak-museum-text .ak-lead { max-width: 680px; font-size: 19px; line-height: 1.6; color: var(--ak-text-2); }
.ak-museum-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.ak-stat { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.ak-stat .ak-disp { font-size: 72px; line-height: 1; }
.ak-stat span:last-child { font-size: 16px; color: var(--ak-text-2); }


/* 4. Topplinje og meny --------------------------------------------------- */

.ak-header { border-bottom: 1px solid var(--ak-line); }
.ak-hrow { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.ak-brand { font-size: 44px; line-height: 1; text-decoration: none; color: #FFFFFF; }

/* På forsiden ligger menyen oppå toppfeltet (høyde 0), uten strek under, slik at
   «ARILD KRISTO» starter helt øverst på samme linje som menyen. Det gjelder både
   PC og mobil; bare mellom 761 og 900 piksler ligger menyen i flyten over navnet. */
.ak-header--home { border-bottom: 0; height: 0; position: relative; z-index: 2; }
.ak-header--home .ak-hrow { min-height: 44px; justify-content: flex-end; }

.ak-menubtn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--ak-border);
  color: #FFFFFF;
  cursor: pointer;
  font: 800 15px var(--ak-font-ui);
}

.ak-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-family: var(--ak-font-ui); font-size: 17px; font-weight: 800; }
.ak-nav a { text-decoration: none; }
.ak-nav a:hover,
.ak-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

.ak-lang { display: flex; gap: 6px; align-items: center; margin-left: 8px; }
.ak-lang a { color: var(--ak-muted); }
.ak-lang a[aria-current="true"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: auto; }
.ak-lang span { color: var(--ak-border); }


/* 5. Bunntekst og søk ---------------------------------------------------- */

.ak-footer { background: var(--ak-bg); border-top: 1px solid var(--ak-line); }
.ak-footer-in { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.ak-footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.ak-footer p { margin: 0; }

.ak-search { flex: 2 1 320px; display: flex; flex-direction: column; gap: 10px; }
.ak-search-field { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--ak-border); }
.ak-search-field:focus-within { border-color: #FFFFFF; outline: 2px solid #FFFFFF; outline-offset: 3px; }
.ak-search-field svg { flex: 0 0 auto; }
.ak-search input { flex: 1; min-width: 0; height: 50px; background: transparent; border: 0; outline-offset: 4px; color: #FFFFFF; font: 400 17px var(--ak-font-text); }
.ak-search input:focus-visible { outline: none; }   /* rammen rundt hele feltet markeres i stedet */
.ak-search input::placeholder { color: var(--ak-muted); opacity: 1; }

.ak-results { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--ak-line); font-size: 16px; }
.ak-results li { border-bottom: 1px solid var(--ak-line); }
.ak-results a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 0; text-decoration: none; }
.ak-results a:hover span:first-child { text-decoration: underline; text-underline-offset: 5px; }
.ak-results .ak-lab { color: var(--ak-muted); }
.ak-results-note { margin: 6px 0 0; font-size: 15px; color: var(--ak-muted); }

.ak-follow { flex: 1 1 180px; display: flex; flex-direction: column; gap: 14px; }
.ak-follow-links { display: flex; gap: 8px; }
.ak-follow-links a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ak-line-2); }
.ak-follow-links a:hover { border-color: #FFFFFF; }

.ak-footer-nav { flex: 1 1 180px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.ak-footer-nav a { text-underline-offset: 5px; }

.ak-legal { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ak-line); padding-top: 24px; font-size: 14px; line-height: 1.6; color: var(--ak-muted); }
.ak-legal p:first-child { color: #FFFFFF; }
.ak-legal p { max-width: 820px; }
.ak-legal button { padding: 0; background: none; border: 0; color: var(--ak-muted); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ak-legal button:hover { color: #FFFFFF; }


/* 6. Forside ------------------------------------------------------------- */

.ak-hero { padding-top: 14px; padding-bottom: 28px; }   /* navnet står på linje med menyen */
.ak-herorow { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.ak-hero-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 36px; }
.ak-hero-h1 { margin: 0; font-size: clamp(96px, 14vw, 220px); line-height: 1; }
.ak-hero-intro { display: flex; flex-direction: column; gap: 28px; }
.ak-hero-intro p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--ak-text-2); }
.ak-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ak-herofig { flex: 0 1 36%; max-width: 480px; margin: 100px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ak-hero-frame { position: relative; width: 100%; aspect-ratio: 313 / 411; background: #000000; overflow: hidden; }
.ak-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.2s ease; }
.ak-hero-frame img.er-aktiv { opacity: 1; }
.ak-hero-cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; font-size: 15px; color: var(--ak-text-3); }
.ak-hero-cap-text { display: flex; gap: 12px; min-width: 0; }
.ak-hero-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ak-hero-nav .ak-lab { margin-right: 8px; }

/* Filmstrimmel / kontaktark */
.ak-strip { background: var(--ak-strip); padding: 10px 0; }
.ak-strip-marks { display: flex; padding: 6px 24px 4px; color: var(--ak-accent); font-size: 10px; overflow: hidden; white-space: nowrap; }
.ak-strip-marks span { flex: 1 0 232px; }   /* ett merke per bilderute; klippes i kanten på smale skjermer */
.ak-strip-row { display: flex; gap: 8px; padding: 6px 24px; overflow-x: auto; min-height: 154px; }
.ak-strip-row a { flex: 0 0 auto; display: block; width: 168px; height: 150px; border: 2px solid #0F0F0F; }
.ak-strip-row a:hover, .ak-strip-row a:focus-visible { border-color: #FFFFFF; }
.ak-strip-row img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.ak-strip .ak-sprockets:last-child { margin-top: 4px; }

/* Tre innganger til arkivet */
.ak-tiles { padding-top: 96px; }
.ak-tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ak-tile { display: flex; flex-direction: column; align-items: center; gap: 20px; text-decoration: none; }
.ak-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 14px; }
.ak-tile span { font-size: 56px; line-height: 1; }

/* Stort sitat */
.ak-quote { padding-top: 120px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 32px 80px; }
.ak-quote .ak-lab { flex: 1 1 200px; margin: 0; }
.ak-quote-text { flex: 999 1 640px; min-width: 0; margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.ak-quote-text strong { font-weight: 600; }

/* Kort biografi */
.ak-about { border-top: 1px solid var(--ak-line); }
.ak-about-in { padding-top: 88px; padding-bottom: 120px; display: flex; flex-wrap: wrap-reverse; gap: 48px 80px; }
.ak-about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ak-about-text h2 { margin: 0; font-size: clamp(64px, 9vw, 140px); line-height: 0.9; }
.ak-about-text > p { margin: 0; font-size: 20px; line-height: 1.65; color: var(--ak-text-2); max-width: 620px; }
.ak-portrait { flex: 1 1 340px; max-width: 520px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ak-portrait img { width: 100%; height: auto; aspect-ratio: 2129 / 1496; object-fit: cover; display: block; }
.ak-portrait figcaption { font-size: 15px; color: var(--ak-text-3); }


/* 7. Fotografi og bokomslag ---------------------------------------------- */

/* Stor bildeviser (Fotografi) */
.ak-viewer { border-top: 1px solid var(--ak-line); }
.ak-viewer-in { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.ak-photo { position: relative; width: 100%; height: 720px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: #000000; color: #FFFFFF; cursor: zoom-in; }
.ak-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ak-fs-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(15, 15, 15, 0.8); color: #FFFFFF; }
.ak-viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.ak-caption { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.ak-caption .ak-disp { font-size: 32px; line-height: 1.1; }
.ak-caption span:last-child { font-size: 17px; color: var(--ak-muted); }
.ak-viewer-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ak-viewer-nav .ak-lab { margin-right: 8px; }

/* Kontaktark med miniatyrer */
.ak-sheet { background: var(--ak-strip); padding: 10px 0; margin-bottom: 96px; }
.ak-sheet-row { display: flex; gap: 8px; padding: 10px 24px; overflow-x: auto; min-height: 112px; }
.ak-sheet-row button { flex: 0 0 auto; width: 132px; height: 112px; padding: 0; background: #0F0F0F; border: 2px solid #0F0F0F; opacity: 0.6; cursor: pointer; }
.ak-sheet-row button:hover { opacity: 1; }
.ak-sheet-row button[aria-pressed="true"] { border-color: #FFFFFF; opacity: 1; }
.ak-sheet-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bokomslag: viser */
.ak-cover-viewer { border-top: 1px solid var(--ak-line); border-bottom: 1px solid var(--ak-line); background: var(--ak-panel); }
.ak-cover-viewer-in { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.ak-cover-big { position: relative; flex: 1 1 340px; max-width: 460px; margin: 0 auto; padding: 0; border: 0; background: transparent; color: #FFFFFF; cursor: zoom-in; }
.ak-cover-big img { width: 100%; height: auto; aspect-ratio: 347 / 583; object-fit: cover; object-position: top; display: block; background: #FFFFFF; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.ak-cover-info { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ak-cover-info > p { margin: 0; }
.ak-cover-info h2 { margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: 1; overflow-wrap: anywhere; }
.ak-cover-info .ak-facts { border-top: 1px solid var(--ak-line); padding-top: 20px; }
.ak-cover-nav { display: flex; gap: 8px; }

/* Bokomslag: oversikt */
.ak-covers { padding-top: 72px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 32px; }
.ak-covers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ak-covers-head h2 { margin: 0; font-size: 48px; line-height: 1; }
.ak-covers-head p { margin: 0; }
.ak-covers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.ak-covers-grid button { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: transparent; border: 1px solid transparent; color: #FFFFFF; cursor: pointer; text-align: left; }
.ak-covers-grid button:hover { border-color: var(--ak-border); }
.ak-covers-grid button[aria-pressed="true"] { border-color: #FFFFFF; }
.ak-covers-grid img { width: 100%; height: auto; aspect-ratio: 347 / 583; object-fit: cover; object-position: top; display: block; background: #FFFFFF; }
.ak-covers-grid .ak-cover-name { font: 500 15px var(--ak-font-text); color: #FFFFFF; text-align: left; }
.ak-covers-grid .ak-lab { color: var(--ak-muted); text-align: left; }

/* Fullskjermvisning */
.ak-lb { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.96); color: #FFFFFF; overflow: hidden; }
.ak-lb[open] { display: flex; flex-direction: column; }
.ak-lb::backdrop { background: transparent; }
.ak-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.ak-lb-cap { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.ak-lb-cap .ak-disp { font-size: 28px; line-height: 1.1; }
.ak-lb-cap span:last-child { font-size: 16px; color: var(--ak-muted); }
.ak-lb-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.ak-lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 80px 24px; }
.ak-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.ak-lb-stage .ak-sq { position: absolute; top: 50%; transform: translateY(-50%); }
.ak-lb-prev { left: 16px; }
.ak-lb-next { right: 16px; }

.ak-noscript { margin: 0; padding: 24px 0; font-size: 17px; color: var(--ak-text-2); }


/* 8. Filmer -------------------------------------------------------------- */

.ak-films { padding-bottom: 96px; display: flex; flex-direction: column; }
.ak-film { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--ak-line); padding: 48px 0; scroll-margin-top: 16px; }
.ak-film:last-child { padding-bottom: 0; }
.ak-film-media { flex: 999 1 560px; min-width: 0; position: relative; }
.ak-film-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ak-film-media img.ak-pos-left { object-position: 30% 50%; }
/* Stående bilde vist i sin helhet på svart bunn */
.ak-film-media--contain { aspect-ratio: 16 / 9; display: flex; justify-content: center; background: #000000; }
.ak-film-media--contain img { height: 100%; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; }
/* Felt som står klart til et stillbilde */
.ak-film-media--empty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--ak-panel); border: 1px dashed var(--ak-line-2); color: var(--ak-dim); }
.ak-play { position: absolute; left: 24px; bottom: 24px; min-height: 52px; gap: 12px; padding: 0 22px 0 18px; }
.ak-film-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 24px; }
.ak-film-info p { margin: 0; }
.ak-film-info h2 { margin: 0; font-size: 64px; line-height: 1; }
.ak-film-kind { margin: 0 0 8px !important; }
.ak-film-text { font-size: 16px; line-height: 1.6; color: var(--ak-text-2); }
.ak-film-buy { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ak-line); padding-top: 20px; }


/* 9. Om Kristo ----------------------------------------------------------- */

.ak-om-top { padding-top: 64px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-end; }
.ak-om-title { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ak-om-title p { margin: 0; }
.ak-om-title h1 { margin: 0; font-size: clamp(72px, 10vw, 168px); line-height: 0.95; }
.ak-om-title .ak-om-lead { max-width: 640px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; }
.ak-om-top .ak-portrait { flex: 1 1 520px; max-width: 780px; }

.ak-keys { border-top: 1px solid var(--ak-line); border-bottom: 1px solid var(--ak-line); background: var(--ak-panel); }
.ak-keys-in { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.ak-key { display: flex; flex-direction: column; gap: 8px; }
.ak-key .ak-disp { font-size: 72px; line-height: 1; }
.ak-key > span:last-child { font-size: 16px; line-height: 1.5; color: var(--ak-text-2); }

.ak-bio { padding-top: 24px; padding-bottom: 40px; }
.ak-bio-sec { display: flex; flex-wrap: wrap; gap: 16px 80px; padding: 64px 0; border-bottom: 1px solid var(--ak-line); }
.ak-bio-sec:last-child { border-bottom: 0; }
.ak-bio-sec > h2 { flex: 1 1 240px; margin: 0; font-size: 44px; line-height: 1; }
.ak-bio-body { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.65; color: var(--ak-text-2); }
.ak-bio-body p { margin: 0; }
.ak-bio-body--lists { gap: 28px; color: #FFFFFF; }
.ak-bio-group { display: flex; flex-direction: column; gap: 12px; }
.ak-bio-sec > .ak-years { flex: 999 1 560px; min-width: 0; max-width: 760px; }

.ak-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ak-line); font-size: 18px; line-height: normal; }
.ak-lines li { padding: 14px 0; border-bottom: 1px solid var(--ak-line); }
.ak-lines a { text-underline-offset: 5px; }
.ak-lines--dated li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.ak-lines--dated li > span:last-child { color: var(--ak-muted); }

.ak-pull { margin: 8px 0; padding: 4px 0 4px 24px; border-left: 2px solid #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.ak-pull blockquote { margin: 0; font-size: 22px; line-height: 1.45; color: #FFFFFF; }
.ak-pull figcaption a { color: var(--ak-muted); }
.ak-pull figcaption a:hover { color: #FFFFFF; }


/* 10. Kontaktskjema ------------------------------------------------------ */

.ak-inv { background: var(--ak-accent); color: var(--ak-ink); color-scheme: light; }
.ak-inv a { color: var(--ak-ink); }
.ak-inv a:hover { color: #3A3832; }
.ak-contact-in { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px 80px; }
.ak-contact-text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 28px; }
.ak-contact-text p { margin: 0; }
.ak-contact-text h2 { margin: 0; font-size: clamp(56px, 7vw, 112px); line-height: 0.95; }
.ak-contact-text .ak-lead { font-size: 19px; line-height: 1.55; max-width: 520px; }
.ak-contact-facts { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px 16px; font-size: 17px; line-height: 1.5; border-top: 1px solid #0F0F0F; padding-top: 20px; max-width: 520px; }
.ak-contact-facts dt { padding-top: 4px; }
.ak-contact-facts dd { margin: 0; }
.ak-contact-facts a { font-weight: 600; }
.ak-contact-form { flex: 1 1 440px; max-width: 640px; }

.ak-form { display: flex; flex-direction: column; gap: 20px; }
.ak-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ak-form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.ak-form .ak-req { color: var(--ak-ink-2); font-weight: 400; }
.ak-form input,
.ak-form textarea { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 16px; background: #FFFFFF; border: 1px solid #0F0F0F; border-radius: 0; color: #0F0F0F; font: 400 17px var(--ak-font-text); }
.ak-form textarea { padding: 14px 16px; resize: vertical; line-height: 1.5; }
.ak-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ak-form-status { margin: 0; font-size: 16px; line-height: 1.5; }
.ak-form-status:empty { display: none; }
.ak-form-status[data-type="feil"] { padding: 12px 16px; border: 2px solid #0F0F0F; font-weight: 500; }
.ak-thanks { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid #0F0F0F; }
.ak-thanks p { margin: 0; font-size: 17px; line-height: 1.5; }
.ak-thanks .ak-disp { font-size: 40px; line-height: 1; }


/* 11. Samtykkelinje ------------------------------------------------------ */

.ak-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--ak-panel); border-top: 1px solid var(--ak-border); }
.ak-consent-in { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.ak-consent p { margin: 0; flex: 1 1 420px; max-width: 760px; font-size: 16px; line-height: 1.5; color: var(--ak-text-2); }
.ak-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ak-consent .ak-btn { min-width: 120px; justify-content: center; background: transparent; }
.ak-consent .ak-btn:hover { background: #FFFFFF; color: #0F0F0F; }


/* 12. Mobil og nettbrett ------------------------------------------------- */

@media (min-width: 901px) {
  .ak-herorow { flex-wrap: nowrap; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .ak-header--home { height: auto; }
}

@media (max-width: 900px) {
  .ak-herofig { margin-top: 0; flex-basis: 100%; }
}

@media (max-width: 760px) {
  .ak-wrap { padding-left: 20px; padding-right: 20px; }
  .ak-quote, .ak-about-in, .ak-contact-in, .ak-covers { padding-top: 64px; padding-bottom: 64px; }

  /* Meny bak «Meny»-knappen */
  .ak-menubtn { display: inline-flex; }
  .ak-hrow { column-gap: 16px; }   /* navn og menyknapp på samme linje */
  .ak-header--home .ak-hrow { justify-content: space-between; }
  .ak-nav { display: none; }
  .ak-nav.ak-open { background: var(--ak-bg); display: flex; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; font-size: 28px; padding: 12px 0 8px; border-top: 1px solid var(--ak-line); }
  .ak-nav.ak-open > a { padding: 12px 0; }
  .ak-nav.ak-open > .ak-lang { margin: 16px 0 0; font-size: 14px; }
  .ak-lang a { padding: 8px 4px; }

  .ak-hero-h1 { font-size: clamp(72px, 25vw, 140px); }
  .ak-tile span { font-size: 40px; }
  .ak-photo { height: 440px; }
  .ak-film-info h2 { font-size: clamp(40px, 14vw, 64px); }   /* lange titler får plass på én linje */

  /* Mer plass til bildet i fullskjerm på små skjermer */
  .ak-lb-stage { padding: 0 12px 24px; }
  .ak-lb-prev { left: 8px; }
  .ak-lb-next { right: 8px; }
  .ak-lb-top { padding: 12px; }
}
