/* ---------------------------------------------
   Taste Norway – basisstil
   Mobil-først. Ingen eksterne avhengigheter.
   --------------------------------------------- */

:root {
  --farge-tekst: #1c1c1a;
  --farge-bakgrunn: #ffffff;
  --farge-lys: #f5f2ec;
  --farge-aksent: #1f5c3d;      /* norsk skog-grønn */
  --farge-aksent-mork: #16452d;
  --maks-bredde: 68rem;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--farge-tekst);
  background: var(--farge-bakgrunn);
  -webkit-font-smoothing: antialiased;
}

/* Hopp-til-innhold for tastaturbrukere */
.hopp-til-innhold {
  position: absolute;
  left: -9999px;
  background: var(--farge-aksent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.hopp-til-innhold:focus { left: 1rem; top: 1rem; }

/* Synlig fokusmarkering – aldri fjern uten erstatning */
:focus-visible {
  outline: 3px solid var(--farge-aksent);
  outline-offset: 2px;
}

.beholder {
  width: min(100% - 2.5rem, var(--maks-bredde));
  margin-inline: auto;
}

/* --- Topp og meny --- */
.topp {
  border-bottom: 1px solid #e6e2da;
  padding: 1rem 0;
}
.topp__rad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--farge-aksent);
  text-decoration: none;
}
.meny {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.meny a {
  color: var(--farge-tekst);
  text-decoration: none;
  /* Minst 44x44 px trykkflate på mobil */
  display: inline-block;
  padding: 0.6rem 0.25rem;
  min-height: 44px;
}
.meny a:hover { text-decoration: underline; }

/* --- Hero --- */
.hero {
  padding: 4rem 0 3rem;
  background: var(--farge-lys);
}
h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.ingress {
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

/* --- Seksjoner --- */
.seksjon { padding: 3.5rem 0; }
.seksjon--lys { background: var(--farge-lys); }
h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0 0 1rem;
}

/* --- Knapp --- */
.knapp {
  display: inline-block;
  background: var(--farge-aksent);
  color: #fff;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knapp:hover { background: var(--farge-aksent-mork); }

/* --- Skjema --- */
.skjema { max-width: 34rem; }
.felt { margin-bottom: 1.1rem; }
.felt label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.felt input,
.felt textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  border: 1px solid #c9c3b8;
  border-radius: var(--radius);
  background: #fff;
}
.smaatekst {
  font-size: 0.9rem;
  color: #5a564f;
}
/* Honeypot – skjules for mennesker, ikke for roboter */
.skjult {
  position: absolute !important;
  left: -9999px;
}

/* --- Bunn --- */
.bunn {
  padding: 2.5rem 0;
  border-top: 1px solid #e6e2da;
  font-size: 0.95rem;
}
.bunn a { color: var(--farge-aksent); }

/* --- Bilder: unngå layoutforskyvning (CLS) --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Respekter redusert bevegelse --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
