/* nordlek.net – flashy festival-stil */

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

:root {
  --maksbreidd: 1100px;
  --farge-mørk: #070d1a;
  --farge-dyp: #0f1f3d;
  --farge-blå: #1e4a8a;
  --farge-rød: #c8102e;
  --farge-gull: #f0c75e;
  --farge-lys: #f5f0e6;
  --farge-tekst: #f5f0e6;
  --farge-dempa: rgba(245, 240, 230, 0.72);
  --fokus-ring: 3px;
}

html {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--farge-tekst);
  background: var(--farge-mørk);
  overflow-x: hidden;
}

#side {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animert bakgrunn */
.bakgrunn {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(200, 16, 46, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(30, 74, 138, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(240, 199, 94, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, var(--farge-mørk) 0%, var(--farge-dyp) 45%, #0a1628 100%);
  animation: bakgrunn-puls 12s ease-in-out infinite alternate;
}

@keyframes bakgrunn-puls {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.06); }
}

/* Header – berre språkval */
.topp {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px 0;
  max-width: var(--maksbreidd);
  margin: 0 auto;
  width: 100%;
}

.sprakval {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sprakval a {
  text-decoration: none;
  padding: 6px 12px;
  color: var(--farge-dempa);
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sprakval a:hover {
  color: var(--farge-lys);
  border-color: rgba(245, 240, 230, 0.5);
}

.sprakval a[aria-current="true"] {
  color: var(--farge-mørk);
  background: var(--farge-gull);
  border-color: var(--farge-gull);
}

.sprakval a:focus-visible {
  outline: var(--fokus-ring) solid var(--farge-gull);
  outline-offset: 3px;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--maksbreidd);
  margin: 0 auto;
  padding: 0 24px;
}

.scene {
  padding: 0;
  border: none;
  background: none;
}

/* Hero */
.hero-scene {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 60px;
}

.tagline {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--farge-gull);
}

.tittel {
  margin: 0 0 48px;
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--farge-lys) 40%, var(--farge-gull) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tittel .år {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--farge-rød) 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.05em;
}

.fakta {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fakta-rad {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fakta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--farge-dempa);
}

.fakta-verdi {
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--farge-lys);
}

.fakta-verdi.stor {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--farge-gull);
  text-shadow: 0 0 60px rgba(240, 199, 94, 0.35);
}

.fakta-under {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--farge-dempa);
  margin-top: 2px;
}

/* Sommarleir */
.leir-scene {
  padding: 48px 0 56px;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
}

.leir-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--farge-rød);
}

.leir-dato {
  margin: 0 0 16px;
  font-family: "Fraunces", serif;
  font-weight: 650;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--farge-lys);
}

.leir-tekst {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--farge-dempa);
  max-width: 36rem;
}

.leir-note {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: rgba(245, 240, 230, 0.5);
}

.mer-info {
  margin: 0 0 32px;
  font-size: 14px;
  color: rgba(245, 240, 230, 0.45);
  max-width: 32rem;
}

/* Logo nederst */
.logo-bunn {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 16px 24px 48px;
  max-width: var(--maksbreidd);
  margin: 0 auto;
  width: 100%;
}

.logo-bunn a {
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}

.logo-bunn a:hover {
  opacity: 1;
  transform: scale(1.04);
}

.logo-bunn a:focus-visible {
  outline: var(--fokus-ring) solid var(--farge-gull);
  outline-offset: 6px;
  border-radius: 4px;
}

.logo-bunn img {
  display: block;
  width: 100px;
  height: auto;
}

/* Responsivt */
@media (max-width: 600px) {
  .topp { padding: 16px 16px 0; }
  main { padding: 0 16px; }
  .hero-scene { min-height: 65vh; padding-bottom: 40px; }
  .fakta { gap: 22px; }
  .logo-bunn { padding: 12px 16px 36px; }
  .logo-bunn img { width: 84px; }
}
