/* =========================================================
   SANNHETER OM LIVET — style.css
   SOL design system v1.0
   ---------------------------------------------------------
   Mørkt, elektronisk design med inspirasjon fra electronica
   og psytrance. Fokus: god lesbarhet, rolig innhold og
   fleksible komponenter for senere utvidelser.
   ========================================================= */


/* =========================================================
   1. DESIGNVARIABLER
   ========================================================= */

:root {
  --background: #070811;
  --background-deep: #04050a;

  --surface: #0e101b;
  --surface-soft: #131625;
  --surface-raised: #181b2b;

  --text: #f1f4f8;
  --text-soft: #d8dce5;
  --text-muted: #9da5b6;

  --cyan: #37f6ff;
  --purple: #9b5cff;
  --magenta: #ff3fd1;
  --green: #9aff68;

  --accent: var(--cyan);
  --accent-secondary: var(--purple);
  --accent-tertiary: var(--magenta);

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(55, 246, 255, 0.38);

  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.24);
  --glow-cyan: 0 0 22px rgba(55, 246, 255, 0.15);
  --glow-purple: 0 0 28px rgba(155, 92, 255, 0.16);

  --max-width: 920px;
  --max-readable: 72ch;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 20px;

  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 4.5rem;

  --transition-fast: 160ms ease;
  --transition: 220ms ease;
}


/* =========================================================
   2. RESET OG GRUNNSTIL
   ========================================================= */

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

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

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at 12% 8%, rgba(155, 92, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(55, 246, 255, 0.10), transparent 28rem),
    radial-gradient(circle at 50% 88%, rgba(255, 63, 209, 0.06), transparent 34rem),
    linear-gradient(180deg, var(--background), var(--background-deep));
  background-attachment: fixed;

  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 1rem;
  line-height: 1.72;
}

img,
video {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(55, 246, 255, 0.24);
  color: #ffffff;
}


/* =========================================================
   3. TYPOGRAFI
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

strong {
  font-weight: 750;
  color: #ffffff;
}

small {
  color: var(--text-muted);
}

.section-label,
.eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-secondary);
}

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

.text-center {
  text-align: center;
}

.max-readable {
  max-width: var(--max-readable);
}


/* =========================================================
   4. LAYOUT
   ========================================================= */

.container,
main,
#header {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

main {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl) var(--space-xxxl);
}

main > p,
main > ul,
main > ol,
main > blockquote {
  max-width: var(--max-readable);
}

.content-section {
  margin-block: var(--space-xxl);
}

.content-section:first-child {
  margin-top: 0;
}

.content-section > :last-child {
  margin-bottom: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

hr,
.accent-line {
  border: 0;
}

hr {
  height: 1px;
  margin-block: var(--space-xxl);
  background: var(--border);
}

.accent-line {
  width: 100%;
  height: 2px;
  margin-block: var(--space-lg);
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--purple),
    var(--magenta),
    transparent
  );
  box-shadow: 0 0 18px rgba(55, 246, 255, 0.14);
}


/* =========================================================
   5. HEADER OG LOGO
   ========================================================= */

#header {
  position: relative;
  padding-block: clamp(1.75rem, 6vw, 3.5rem) var(--space-lg);
  text-align: center;
}

#header::after {
  content: "";
  display: block;
  width: min(100%, 640px);
  height: 2px;
  margin: var(--space-lg) auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--purple),
    var(--magenta),
    transparent
  );
  box-shadow:
    0 0 10px rgba(55, 246, 255, 0.20),
    0 0 24px rgba(155, 92, 255, 0.12);
}

#header a {
  display: inline-block;
  text-decoration: none;
}

#header img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}


/* =========================================================
   6. NAVIGASJON
   ========================================================= */

#site-navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 17, 0.90);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.main-navigation {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 246, 255, 0.35) transparent;
}

.main-navigation-inner {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  width: max-content;
  min-width: 100%;
}

.main-navigation a,
.button-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0.62rem 0.88rem;

  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);

  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.main-navigation a:hover,
.button-link:hover {
  color: #ffffff;
  background: rgba(55, 246, 255, 0.055);
  border-color: var(--border-accent);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.main-navigation a[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(155, 92, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(55, 246, 255, 0.08), rgba(155, 92, 255, 0.13));
  box-shadow: var(--glow-purple);
}

/* Enkel sekundær nav på sider som index.html */
body > nav:not(.main-navigation) {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto var(--space-md);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

body > nav:not(.main-navigation) a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  text-decoration: none;
}


/* =========================================================
   7. LENKER OG KNAPPER
   ========================================================= */

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

a:hover {
  color: #8ffbff;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-height: 44px;
  padding: 0.72rem 1.05rem;

  background: linear-gradient(135deg, rgba(55, 246, 255, 0.16), rgba(155, 92, 255, 0.20));
  color: #ffffff;
  border: 1px solid rgba(55, 246, 255, 0.46);
  border-radius: var(--radius-small);

  font-weight: 750;
  text-decoration: none;
  cursor: pointer;

  box-shadow: var(--glow-cyan);

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.button:hover,
button:hover {
  color: #ffffff;
  border-color: rgba(55, 246, 255, 0.75);
  box-shadow:
    0 0 16px rgba(55, 246, 255, 0.18),
    0 0 30px rgba(155, 92, 255, 0.14);
  transform: translateY(-1px);
}

.button:active,
button:active {
  transform: translateY(1px);
}

.button-secondary {
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: rgba(155, 92, 255, 0.54);
  background: rgba(155, 92, 255, 0.07);
  box-shadow: var(--glow-purple);
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero {
  position: relative;
  margin-block: var(--space-lg) var(--space-xxl);
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(55, 246, 255, 0.055), transparent 42%),
    linear-gradient(315deg, rgba(155, 92, 255, 0.08), transparent 46%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -130px;
  right: -90px;
  border: 1px solid rgba(55, 246, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(155, 92, 255, 0.025),
    0 0 0 68px rgba(255, 63, 209, 0.015);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   9. GRID
   ========================================================= */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid > * {
  min-width: 0;
}


/* =========================================================
   10. CARDS
   ========================================================= */

.card {
  margin-block: var(--space-lg);
  padding: var(--space-lg);

  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.006)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: rgba(55, 246, 255, 0.23);
  box-shadow: var(--shadow), var(--glow-cyan);
  transform: translateY(-2px);
}

.card > :last-child {
  margin-bottom: 0;
}

.card--cyan {
  border-top: 2px solid rgba(55, 246, 255, 0.72);
}

.card--purple {
  border-top: 2px solid rgba(155, 92, 255, 0.72);
}

.card--magenta {
  border-top: 2px solid rgba(255, 63, 209, 0.68);
}


/* =========================================================
   11. INFO-BOKSER
   ========================================================= */

.info-box {
  margin-block: var(--space-xl);
  padding: var(--space-lg);

  background:
    linear-gradient(90deg, rgba(55, 246, 255, 0.075), transparent 38%),
    var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-medium);
}

.info-box > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   12. DETAILS / SUMMARY
   ========================================================= */

.details-card {
  margin-block: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.details-card > summary {
  padding: 1rem 1.15rem;
  background:
    linear-gradient(90deg, rgba(155, 92, 255, 0.07), transparent 45%),
    var(--surface-soft);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.details-card[open] {
  border-color: rgba(155, 92, 255, 0.34);
  box-shadow: var(--shadow-soft), var(--glow-purple);
}

.details-card[open] > summary {
  border-bottom: 1px solid var(--border);
}

.details-card > .details-content {
  padding: var(--space-lg);
}

.details-card > .details-content > :last-child {
  margin-bottom: 0;
}

.details-resource {
  margin-block: var(--space-sm);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.details-resource > summary {
  min-height: 52px;
  padding: 0.9rem 1rem;

  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;

  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}

.details-resource > summary::-webkit-details-marker {
  display: none;
}

.details-resource > summary::marker {
  content: "";
}

.details-resource > summary::before {
  content: "›";
  flex: 0 0 auto;
  width: 1em;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 10px rgba(55, 246, 255, 0.45);
}

.details-resource[open] > summary::before {
  content: "⌄";
}

.details-resource > summary:hover {
  color: #ffffff;
  background: rgba(55, 246, 255, 0.045);
}

.details-resource[open] {
  border-color: rgba(55, 246, 255, 0.28);
}

.details-resource > .details-content {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border);
}

.details-resource > .details-content > :first-child {
  margin-top: var(--space-md);
}

.details-resource > .details-content > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   13. BIBELREFERANSER, SITATER OG TEKSTUTDRAG
   ========================================================= */

.bible-reference,
.reference,
.quote-reference {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.055em;
}

.bible-reference {
  margin-top: -0.25rem;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
}

.reference {
  display: inline-block;
  margin-top: 0.15rem;
}

.letter-opening,
.letter-closing {
  color: #ffffff;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 750;
}

.letter-opening {
  margin-bottom: var(--space-xl);
  color: var(--accent-secondary);
}

.letter-closing {
  margin-top: var(--space-xl);
}

.quote-collection {
  display: grid;
  gap: var(--space-lg);
  margin-block: var(--space-xxl);
}

.quote-card {
  padding: var(--space-lg);
  background:
    linear-gradient(145deg, rgba(55, 246, 255, 0.035), transparent 52%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.quote-card > :last-child {
  margin-bottom: 0;
}

.quote-title {
  margin-bottom: var(--space-sm);
  color: var(--accent-secondary);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.quote-text {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.82;
}

.quote-reference {
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.quote-list {
  display: inline-block;
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  text-align: left;
}

.quote-left {
  text-align: left;
}

.quote-center {
  text-align: center;
}

.quote-right {
  text-align: right;
}

blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background:
    linear-gradient(90deg, rgba(155, 92, 255, 0.075), transparent 42%),
    var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
}


/* =========================================================
   14. LISTER
   ========================================================= */

ul,
ol {
  margin-top: 0;
  margin-bottom: var(--space-lg);
  padding-left: 1.5rem;
}

li + li {
  margin-top: var(--space-xs);
}

li::marker {
  color: var(--accent-secondary);
}


/* =========================================================
   15. TABELLER
   ========================================================= */

.table-wrap {
  width: 100%;
  margin-block: var(--space-lg);
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: #ffffff;
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   16. BILDER
   ========================================================= */

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

.content-image {
  width: 100%;
  margin-block: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
}

.image-credit {
  margin-top: -0.75rem;
  margin-bottom: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}


/* =========================================================
   17. LYD
   ========================================================= */

.audio-card {
  position: relative;
  margin-block: var(--space-lg);
  padding: var(--space-lg);
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(55, 246, 255, 0.055), transparent 45%),
    linear-gradient(315deg, rgba(155, 92, 255, 0.06), transparent 48%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.audio-card::before {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(55, 246, 255, 0.20);
}

.audio-card > :last-child {
  margin-bottom: 0;
}

audio {
  display: block;
  width: 100%;
  margin-top: var(--space-sm);
}


/* =========================================================
   18. VIDEO
   ========================================================= */

.video-container {
  width: 100%;
  max-width: var(--max-width);
  margin-block: var(--space-xl);
  margin-inline: auto;
}

.video-container video,
.video-container iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  background: #000000;
}

.video-container video {
  height: auto;
}

.video-16x9 {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-16x9 video,
.video-16x9 iframe {
  width: 100%;
  height: 100%;
}

.video-16x9 video {
  object-fit: contain;
}


/* =========================================================
   19. FILER OG RESSURSLENKER
   ========================================================= */

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.resource-list li {
  margin: 0;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);

  min-height: 52px;
  padding: 0.9rem 1rem;

  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  text-decoration: none;
  font-weight: 650;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.resource-link::after {
  content: "›";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(55, 246, 255, 0.50);
}

.resource-link:hover {
  color: #ffffff;
  border-color: rgba(55, 246, 255, 0.34);
  background: rgba(55, 246, 255, 0.04);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}


/* =========================================================
   20. CODE / PRE
   ========================================================= */

code {
  padding: 0.12em 0.35em;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #d9fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  margin-block: var(--space-lg);
  padding: var(--space-lg);
  overflow-x: auto;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);

  line-height: 1.55;
  white-space: pre;
}

pre code {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.9rem;
}


/* =========================================================
   21. FOOTER
   ========================================================= */

#site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-footer {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) 0 var(--space-xxl);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

.site-footer::before {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  opacity: 0.65;
}

.site-footer p {
  margin-bottom: var(--space-sm);
}

.site-footer a {
  font-weight: 650;
}

.site-footer small {
  display: block;
}

/* For senere bruk dersom footer får flere lenkegrupper */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.footer-link-group strong {
  margin-bottom: 0.3rem;
}

.footer-link-group p {
  margin: 0;
}


/* =========================================================
   22. UTILITY-KLASSER
   ========================================================= */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

.surface {
  background: var(--surface);
}

.surface-soft {
  background: var(--surface-soft);
}


/* =========================================================
   23. FOCUS / TILGJENGELIGHET
   ========================================================= */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
audio:focus-visible,
video:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}


/* =========================================================
   24. REDUSERT BEVEGELSE
   ========================================================= */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   25. RESPONSIVT
   ========================================================= */

@media (max-width: 760px) {
  :root {
    --space-xxl: 2.4rem;
    --space-xxxl: 3.25rem;
  }

  body {
    background-attachment: scroll;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-link-group {
    width: 100%;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .container,
  main,
  #header,
  #site-footer,
  body > nav:not(.main-navigation) {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .main-navigation {
    padding-inline: 0.65rem;
  }

  .main-navigation a,
  .button-link {
    font-size: 0.84rem;
  }

  .card,
  .info-box,
  .audio-card,
  .quote-card,
  .hero {
    padding: 1.1rem;
  }

  .details-card > .details-content {
    padding: 1.1rem;
  }
}
