/* Narhvalhornets Orden – stilark
   Farger fra NASAs grafiske profil. Gull brukes sparsomt, som aksent. */
:root {
  --lilla: #7209B7;
  --sort: #32303E;
  --bakgrunn: #1C1A23;
  --hvit: #F9F7FF;
  --gull: #D4AF37;
  --dempet: #A9A3B8;
  --linje: rgba(249, 247, 255, 0.12);
  --bredde: 44rem;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bakgrunn);
  color: var(--hvit);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--hvit); text-decoration-color: var(--gull); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--gull); }
:focus-visible { outline: 2px solid var(--gull); outline-offset: 3px; }

.hopp { position: absolute; left: -999px; background: var(--gull); color: var(--bakgrunn); padding: 0.5rem 1rem; }
.hopp:focus { left: 1rem; top: 1rem; }

.ramme { max-width: var(--bredde); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Topptekst ---------- */
.topp { border-bottom: 1px solid var(--linje); }
.topp .ramme {
  max-width: 64rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.merke { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.meny { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.meny a { color: var(--dempet); text-decoration: none; font-size: 0.95rem; }
.meny a:hover, .meny a[aria-current="page"] { color: var(--hvit); }
.meny a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gull); }

/* ---------- Typografi ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.75rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.4rem; }
p { margin: 0 0 1.1rem; }
.ingress { font-size: 1.2rem; color: var(--dempet); line-height: 1.6; }

/* ---------- Sidehode ---------- */
.sidehode { padding: 5rem 0 3rem; }
.sidehode .horn { width: 3rem; margin-bottom: 2.5rem; }
.sidehode .ingress { margin: 0; }

/* ---------- Seksjoner ---------- */
.seksjon { padding: 3rem 0; }
.seksjon .ramme::before { content: ""; display: block; border-top: 1px solid var(--linje); margin-bottom: 3rem; }

/* ---------- Lister med skillelinjer ---------- */
.liste { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.liste > li { padding: 1.5rem 0; border-bottom: 1px solid var(--linje); }
.liste:not(:first-child) > li:first-child { border-top: 1px solid var(--linje); }
.liste h3 { margin: 0 0 0.35rem; }
.liste p { margin: 0; color: var(--dempet); }
.liste p + p { margin-top: 0.6rem; }
.liste .innehaver { margin-top: 0.75rem; color: var(--hvit); font-size: 0.95rem; }
.liste .innehaver span { color: var(--dempet); }

/* Grader: lite romertall i marg */
.grader > li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; }
.grader .rang { font-family: var(--serif); color: var(--gull); font-size: 1.2rem; line-height: 1.3; }

/* ---------- Lenker videre ---------- */
.videre { margin-top: 2rem; }
.videre a { font-weight: 600; }

.knapp {
  display: inline-block; margin-top: 0.5rem; padding: 0.75rem 1.5rem;
  border: 1px solid var(--gull); color: var(--hvit); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.knapp:hover { background: var(--gull); color: var(--bakgrunn); }

.merknad { border-left: 2px solid var(--gull); padding-left: 1.25rem; color: var(--dempet); margin: 2rem 0; }

/* ---------- Statutter ---------- */
.innhold { margin: 0 0 1rem; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.innhold li { break-inside: avoid; }
.innhold a { color: var(--dempet); text-decoration: none; font-size: 0.95rem; }
.innhold a:hover { color: var(--hvit); }
.statuttekst section { scroll-margin-top: 2rem; padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--linje); }
.statuttekst h2 { font-size: 1.45rem; }
.statuttekst h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-top: 1.75rem; }
.statuttekst ul { padding-left: 1.25rem; }
.vedtatt { margin-top: 3rem; font-style: italic; color: var(--dempet); }

/* ---------- Bunntekst ---------- */
.bunn { margin-top: 4rem; border-top: 1px solid var(--linje); padding: 2.5rem 0 3rem; color: var(--dempet); font-size: 0.9rem; }
.bunn .ramme { max-width: 64rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.bunn p { margin: 0; }
.bunn a { color: var(--dempet); }
.bunn a:hover { color: var(--hvit); }

@media (max-width: 40rem) {
  .sidehode { padding: 3rem 0 2rem; }
  .innhold { columns: 1; }
}

@media print {
  body { background: #fff; color: #000; }
  .topp, .bunn, .hopp, .innhold { display: none; }
  .ingress, .liste p, .vedtatt { color: #333; }
  a { color: #000; }
}
