/*
  Vitre Anestesi — Bas-stilmall
  Delas av samtliga sidor (även framtida undersidor).
  Innehåller reset, typografi, tillgänglighetsstöd och grundkomponenter.
*/

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-body);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--color-ink);
  line-height: var(--lh-heading);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-brand-blue-dark);
  text-decoration-color: rgba(31, 78, 122, 0.35);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-color: currentColor;
}

/* Tydlig, konsekvent focus state för tangentbordsnavigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-small);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

.container {
  width: 100%;
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 48rem) {
  .container {
    padding-inline: var(--space-4);
  }
}

.btn {
  display: inline-block;
  padding: 0.85em 1.75em;
  border: 1px solid var(--color-brand-blue-dark);
  color: var(--color-brand-blue-dark);
  border-radius: var(--radius-small);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background-color: var(--color-brand-blue-dark);
  color: #fff;
}
