/* ============================================================
   CUTIE CARE — Base
   Reset, body, container, typografi-defaults, utilities.
   ============================================================ */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-near-black);
  background: var(--color-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── HEADINGS (defaults — sektionsnivå override i sections.css) ── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--color-near-black);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

em {
  font-style: italic;
  color: var(--color-red);
}

p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-warm-gray);
}

p strong { color: var(--color-near-black); font-weight: 600; }

::selection {
  background: var(--color-red);
  color: var(--color-white);
}

/* ── CONTAINER ─────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container--narrow { max-width: 920px; }
.container--wide   { max-width: 1440px; }

/* ── SKIP LINK ─────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  background: var(--color-near-black);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus { transform: translateY(16px); }

/* ── FOCUS STATES ──────────────────────────────────────── */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── UTILITIES ─────────────────────────────────────────── */

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

.no-scroll { overflow: hidden !important; }

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