@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pv-ink-900);
  background: var(--pv-white);
  font-family: var(--pv-font-ui);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--pv-font-ui);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--pv-petrol-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pv-teal-600);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  border-radius: var(--pv-radius);
}

:focus-visible {
  outline: 3px solid var(--pv-gold-500);
  outline-offset: 3px;
}

/*
 * Typetrinnene (25.07). Feilen som ble målt på live: 64 px hero og deretter et
 * flatt felt på 17–26 px — ingen mellomnivåer, så øyet fant ingen orden. Sju
 * trinn med tydelig avstand løser det. Georgia settes i 400: bold Georgia ble
 * tung og «trykt», og den godkjente skiven bruker regular.
 */
:root {
  --pv-t-1: clamp(2.1rem, 4.4vw, 2.9rem);
  --pv-t-2: clamp(1.55rem, 2.8vw, 1.85rem);
  --pv-t-3: 1.35rem;
  --pv-t-4: 1.19rem;
  --pv-t-5: 1.06rem;
  --pv-t-6: 0.875rem;
  --pv-t-7: 0.75rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--pv-ink-900);
  font-family: var(--pv-font-editorial);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: var(--pv-t-1);
  line-height: 1.06;
}

h2 {
  font-size: var(--pv-t-2);
  line-height: 1.15;
}

h3 {
  font-size: var(--pv-t-3);
  line-height: 1.25;
}

h4 {
  font-size: var(--pv-t-4);
  line-height: 1.3;
}

p,
ul,
ol,
blockquote,
figure {
  margin-top: 0;
}

::selection {
  color: var(--pv-white);
  background: var(--pv-petrol-700);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pv-skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--pv-space-3);
  left: var(--pv-space-3);
  padding: var(--pv-space-3) var(--pv-space-4);
  color: var(--pv-white);
  background: var(--pv-petrol-900);
  transform: translateY(-180%);
}

.pv-skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
