/* ═══════════════════════════════════════════════════════════
   VARDE fjellodge — én natt på 69,58° N
   Palett: polarnatt-blå, is, aurora-grønn/fiolett, lykte-amber
   Typo: Zodiak (display) · Schibsted Grotesk (brød) · Fragment Mono (data)
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Zodiak";
  src: url("../fonts/zodiak-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url("../fonts/zodiak-400i.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url("../fonts/zodiak-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Zodiak";
  src: url("../fonts/zodiak-700i.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --natt-dyp: #050a1a;
  --natt: #0b1430;
  --skumring: #1c2c54;
  --is: #dce7f5;
  --is-dus: rgba(220, 231, 245, .64);
  --is-svak: rgba(220, 231, 245, .38);
  --aurora: #6cf2b4;
  --aurora-2: #9d7bff;
  --glo: #ffb25e;
  --glo-dyp: #e08a2e;
  --kort: rgba(9, 16, 38, .55);
  --kort-kant: rgba(220, 231, 245, .1);
  --display: "Zodiak", "Times New Roman", serif;
  --brod: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --maks: 1060px;
}

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

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

body {
  font-family: var(--brod);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--is);
  background: var(--natt-dyp);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--aurora); color: var(--natt-dyp); }

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

/* ── Himmelen ─────────────────────────────────────────────── */

#himmel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

#himmel-fallback {
  position: fixed;
  inset: 0;
  z-index: -3;
  display: none;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255, 178, 94, .12), transparent 55%),
    radial-gradient(90% 60% at 70% 10%, rgba(108, 242, 180, .16), transparent 60%),
    radial-gradient(80% 55% at 25% 25%, rgba(157, 123, 255, .12), transparent 60%),
    linear-gradient(180deg, #060c20 0%, #0b1430 55%, #16234a 100%);
}
body.uten-webgl #himmel { display: none; }
body.uten-webgl #himmel-fallback { display: block; }

/* ── Fjellrygger ──────────────────────────────────────────── */

.fjell {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: min(34vh, 380px);
  z-index: -2;
  pointer-events: none;
}
.fjell-lag {
  position: absolute;
  left: -2%; right: -2%; bottom: 0;
  width: 104%;
  height: 100%;
  will-change: transform;
}
.fjell-bak  path { fill: #131f42; }
.fjell-midt path { fill: #0c1531; }
.fjell-fram path { fill: #060b1d; }

/* ── Natturet ─────────────────────────────────────────────── */

.natt-ur {
  position: fixed;
  right: clamp(12px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--is-svak);
  z-index: 40;
}
.ur-spor {
  position: relative;
  width: 2px;
  height: min(34vh, 300px);
  background: rgba(220, 231, 245, .14);
  border-radius: 2px;
}
.ur-fyll {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--aurora), var(--aurora-2));
  border-radius: 2px;
}
.ur-prikk {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 8px; height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--aurora);
  box-shadow: 0 0 12px var(--aurora);
}
.ur-naa {
  color: var(--aurora);
  font-size: .82rem;
  order: 3;
}
.ur-start { order: 1; }
.ur-spor  { order: 2; }
.ur-slutt { order: 4; }

/* ── Topp ─────────────────────────────────────────────────── */

.topp {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  z-index: 50;
  transition: background .4s ease, backdrop-filter .4s ease;
}
.topp.tett {
  background: rgba(5, 10, 26, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.merke {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--is);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .22em;
}
.topp nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}
.topp nav a {
  color: var(--is-dus);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .02em;
  transition: color .2s;
}
.topp nav a:hover { color: var(--is); }
.topp-cta {
  border: 1px solid rgba(108, 242, 180, .5);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--aurora) !important;
  transition: background .2s, color .2s;
}
.topp-cta:hover {
  background: var(--aurora);
  color: var(--natt-dyp) !important;
}

/* ── Typografi ────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  text-wrap: balance;
}

.overlinje {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--aurora);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 48px) 140px;
  position: relative;
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 7.4rem);
  margin: 26px 0 30px;
  max-width: 12ch;
  text-shadow: 0 4px 60px rgba(5, 10, 26, .8);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--aurora);
}
.hero-ingress {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--is-dus);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 42px;
}

.knapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--brod);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), background .2s, color .2s, box-shadow .25s;
}
.knapp:hover { transform: translateY(-2px); }
.knapp:active { transform: translateY(0); }
.knapp-fyll {
  background: var(--aurora);
  color: #05271a;
  border: none;
  box-shadow: 0 0 0 rgba(108, 242, 180, 0);
}
.knapp-fyll:hover { box-shadow: 0 8px 34px rgba(108, 242, 180, .35); }
.knapp-ghost {
  border: 1px solid rgba(220, 231, 245, .3);
  color: var(--is);
  background: rgba(9, 16, 38, .3);
  backdrop-filter: blur(6px);
}
.knapp-ghost:hover { border-color: rgba(220, 231, 245, .6); }
.knapp .pil { transition: transform .25s; }
.knapp:hover .pil { transform: translateY(3px); }
.knapp-stor { padding: 18px 38px; font-size: 1.08rem; }

.dataremse {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 52px);
  margin-top: 64px;
  padding: 18px 30px;
  border: 1px solid var(--kort-kant);
  border-radius: 16px;
  background: rgba(5, 10, 26, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dataremse div { text-align: left; }
.dataremse dt {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--is-svak);
  margin-bottom: 3px;
}
.dataremse dd {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--aurora);
}

.scrollhint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(220, 231, 245, .35);
  border-radius: 12px;
}
.scrollhint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--aurora);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ── Kapitler ─────────────────────────────────────────────── */

.kap {
  max-width: var(--maks);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 48px);
}

.kap-hode {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: clamp(30px, 5vh, 54px);
  border-bottom: 1px solid var(--kort-kant);
  padding-bottom: 22px;
}
.kap-tid {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--aurora);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.kap-hode h2 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  font-style: italic;
  font-weight: 400;
}

.kap-tekst { max-width: 44rem; }
.kap-tekst .stor {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 22px;
}
.kap-tekst p + p { margin-top: 16px; color: var(--is-dus); }

.kap-bilde {
  margin: clamp(30px, 5vh, 50px) 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--kort-kant);
  box-shadow: 0 30px 80px rgba(3, 6, 16, .6);
}
.kap-bilde img { width: 100%; }
.kap-bilde figcaption {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--is-svak);
  padding: 12px 18px;
  background: rgba(5, 10, 26, .8);
}

.faktaremse {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vh, 56px);
}
.faktaremse li {
  border: 1px solid var(--kort-kant);
  border-radius: 14px;
  background: var(--kort);
  backdrop-filter: blur(8px);
  padding: 20px 22px;
}
.faktaremse .tall {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--glo);
}
.faktaremse .tall i {
  font-style: normal;
  font-size: 1rem;
  margin-left: 4px;
  color: var(--is-svak);
}
.faktaremse .tekst {
  font-size: .88rem;
  color: var(--is-dus);
}

/* ── Utbruddet: solvind-panelet ──────────────────────────── */

.solvind {
  margin-top: clamp(36px, 6vh, 60px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(108, 242, 180, .28);
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(108, 242, 180, .12), transparent 55%),
    radial-gradient(120% 140% at 10% 120%, rgba(157, 123, 255, .12), transparent 55%),
    var(--kort);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.solvind-hode {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.solvind-tittel {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
}
.solvind-verdi {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--aurora);
}

#kp-skyver {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1c2c54, var(--aurora) 55%, var(--aurora-2));
  outline-offset: 6px;
  cursor: ew-resize;
}
#kp-skyver::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--is);
  border: 3px solid var(--natt-dyp);
  box-shadow: 0 0 18px rgba(108, 242, 180, .8);
  cursor: grab;
}
#kp-skyver::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--is);
  border: 3px solid var(--natt-dyp);
  box-shadow: 0 0 18px rgba(108, 242, 180, .8);
  cursor: grab;
}
.solvind-skala {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--is-svak);
}
.solvind-status {
  margin-top: 20px;
  font-size: .95rem;
  color: var(--is-dus);
  border-top: 1px dashed var(--kort-kant);
  padding-top: 16px;
  min-height: 2.4em;
}

.vekking {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid var(--glo);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 178, 94, .07);
  max-width: 44rem;
  color: var(--is-dus);
}
.vekking strong { color: var(--glo); }

/* ── Rom og dag: kort ─────────────────────────────────────── */

.kap-bred { max-width: 1220px; }

.romkort, .dagkort {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: clamp(36px, 6vh, 60px);
}

.rom, .dag {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--kort-kant);
  background: var(--kort);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .35s cubic-bezier(.2, .8, .25, 1), border-color .35s, box-shadow .35s;
}
.rom:hover, .dag:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 242, 180, .4);
  box-shadow: 0 24px 60px rgba(3, 6, 16, .55);
}
.rom figure, .dag figure {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.rom img, .dag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .25, 1);
}
.rom:hover img, .dag:hover img { transform: scale(1.045); }

.rom-innhold { padding: 26px 26px 30px; }
.rom h3, .dag h3 {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 10px;
}
.rom p, .dag p {
  font-size: .95rem;
  color: var(--is-dus);
}
.rom-pris, .dag-pris {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: .85rem !important;
  color: var(--is) !important;
}
.rom-pris b { color: var(--glo); font-weight: 400; }
.dag { padding-bottom: 26px; }
.dag h3, .dag > p { padding: 0 26px; }
.dag h3 { margin-top: 24px; }
.dag-pris { color: var(--glo) !important; }

/* ── Vertskapet ──────────────────────────────────────────── */

.kap-vert {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.vert-bilde {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--kort-kant);
  box-shadow: 0 30px 80px rgba(3, 6, 16, .6);
}
.vert-sitat p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  text-wrap: balance;
}
.vert-sitat cite {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--is-svak);
}

/* ── Book ─────────────────────────────────────────────────── */

.kap-book { max-width: 760px; }

.bookskjema {
  margin-top: 10px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid var(--kort-kant);
  background: var(--kort);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.felt-rad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.felt span {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--is-svak);
  margin-bottom: 7px;
}
.felt input, .felt select {
  width: 100%;
  font-family: var(--brod);
  font-size: 1rem;
  color: var(--is);
  background: rgba(5, 10, 26, .6);
  border: 1px solid var(--kort-kant);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s;
}
.felt input:focus, .felt select:focus {
  outline: none;
  border-color: var(--aurora);
  box-shadow: 0 0 0 3px rgba(108, 242, 180, .15);
}
.felt input::-webkit-calendar-picker-indicator { filter: invert(.85); }
.bookskjema .knapp-stor { margin-top: 10px; width: 100%; justify-content: center; }
.book-note {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--is-svak);
  text-align: center;
}
.book-kvitt {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(5, 10, 26, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
}
.book-kvitt[hidden] { display: none; }
.book-kvitt p { color: var(--is-dus); }
.book-kvitt strong { color: var(--is); font-size: 1.15rem; }

/* ── Bunn ─────────────────────────────────────────────────── */

.bunn {
  margin-top: 60px;
  padding: 70px clamp(20px, 5vw, 48px) 46px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 16, .85) 30%);
}
.bunn-merke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.bunn address {
  font-style: normal;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.9;
  color: var(--is-dus);
}
.bunn a { color: var(--is-dus); }
.bunn a:hover { color: var(--aurora); }
.bunn-liten {
  margin-top: 22px;
  font-size: .85rem;
  color: var(--is-svak);
}
.bunn-kreditt {
  margin-top: 34px;
  font-size: .78rem;
  color: var(--is-svak);
}
.bunn-kreditt a { color: var(--is-dus); text-decoration-color: var(--aurora); }

/* ── Reveal ───────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .25, 1);
}
.reveal.inne {
  opacity: 1;
  transform: none;
}

/* ── Fokus ────────────────────────────────────────────────── */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--aurora);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Redusert bevegelse ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scrollhint span { animation: none; }
  .knapp, .rom, .dag, .rom img, .dag img { transition: none; }
}

/* ── Mobil ────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .natt-ur { display: none; }
  .topp nav a:not(.topp-cta) { display: none; }
  .kap-vert { grid-template-columns: 1fr; }
  .vert-bilde { max-width: 420px; }
  .dataremse { gap: 18px 28px; padding: 16px 20px; }
  .hero { padding-bottom: 110px; }
  .fjell { height: 24vh; }
}
