/* ===========================================================
   Keeperlegender — base.css
   Reset, variabler, typografi, grunnstiler
   Palett: teal (tíl) + lime, mørk
   =========================================================== */

:root {
  /* Palett */
  --bg: #0b1414;
  --bg-2: #0f1d1d;
  --bg-3: #13282a;
  --panel: #102323;
  --teal: #0fb6a6;
  --teal-deep: #0a7f76;
  --teal-soft: #145e5a;
  --lime: #c8f53b;
  --lime-deep: #9bd400;
  --ink: #eafaf6;
  --muted: #8fb3ac;
  --muted-2: #6c918b;
  --line: rgba(200, 245, 59, 0.14);
  --line-soft: rgba(143, 179, 172, 0.16);
  --shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.75);
  --shadow-lime: 0 18px 50px -22px rgba(200, 245, 59, 0.35);

  /* Typografi */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Radius & spacing */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --maxw: 1240px;
  --gut: clamp(18px, 4vw, 56px);

  --t-fast: 0.18s ease;
  --t-med: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(15, 182, 166, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(200, 245, 59, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.1px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

p {
  color: var(--muted);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

::selection {
  background: var(--lime);
  color: #0b1414;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink);
  opacity: 0.92;
  line-height: 1.7;
}

.text-lime {
  color: var(--lime);
}

.text-teal {
  color: var(--teal);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: #0b1414;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

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