/* =========================================================
   🔧 BASE.CSS – RESET & GLOBAL FOUNDATION
   ---------------------------------------------------------
   Denna fil sätter grundbeteende för hela sidan.
   Använder variabler från skin.css
   ========================================================= */


/* =========================================================
   📦 BOX SIZING RESET
   ---------------------------------------------------------
   Gör att padding + border inkluderas i width/height
   ========================================================= */
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}


/* =========================================================
   🌍 BODY – GLOBAL STANDARD
   ---------------------------------------------------------
   Sätter grund för typography och färger
   ========================================================= */
body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height);

  color: var(--color-text);
  background-color: var(--color-bg);

  margin: 0;
  padding: 0;
}


/* =========================================================
   🔗 LÄNKAR
   ---------------------------------------------------------
   Neutral styling – färg styrs av komponenter
   ========================================================= */
a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   🖼️ BILDER
   ---------------------------------------------------------
   Säkerställer responsiva bilder
   ========================================================= */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* =========================================================
   🔤 HEADINGS – TYPOGRAFI
   ---------------------------------------------------------
   Säkerställer att rubriker använder heading-font
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Smooth scroll */
html {
  scroll-behavior: smooth;
}