/* ==========================================================================
   Minimal, modern reset
   ========================================================================== */

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

* {
  margin: 0;
}

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

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

html,
body {
  height: 100%;
}

body {
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
}

/* Author-CSS för en dold elements EGEN klass (t.ex. .form-status,
   .btn { display: ... }) vinner annars alltid över webbläsarens
   inbyggda [hidden]{display:none}, oavsett specificitet, eftersom
   UA-stilar har lägre prioritet än author-stilar — så ett element med
   både `hidden` och en styled class syns ändå. Samma fix som redan
   finns i admin.css (upptäckt där i Fas 3); denna regel gör det säkert
   sajt-övergripande, t.ex. för kontaktformulärets #contact-status
   (Fas 12) och "Tillbaka"-knappen i bokningsflödet. */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}
