/* ==========================================================================
   Kjøtt Huset — base.css
   Reset, typography, buttons, links, section rhythm. Tokens: /tokens.css
   ========================================================================== */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
dl, dd { margin: 0; }

::selection {
  background: var(--color-accent);
  color: var(--color-onphoto);
}

/* Focus — appears instantly, never animated in */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: calc(-1 * var(--space-2xl));
  z-index: var(--z-cookie);
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  transition: top var(--dur-short) var(--ease-out);
}
.skip-link:focus { top: var(--space-sm); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.section__head {
  padding-block: var(--space-2xl) var(--space-xl);
  max-width: 640px;
}

.section__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 58ch;
}

/* ============================================
   BUTTON — one voice: solid oxblood slab
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  min-height: 44px;
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: var(--rule-hair) solid var(--color-accent);
  border-radius: var(--radius);
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}

.btn:hover {
  background: var(--color-accent-2);
  border-color: var(--color-accent-2);
}

.btn:active { opacity: 0.9; }

/* ============================================
   TYPOGRAPHIC LINK (C3) — word, arrow, 1px rule
   ============================================ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-accent);
  white-space: nowrap;
  border-bottom: var(--rule-hair) solid currentColor;
  padding-bottom: var(--space-3xs);
  transition: color var(--dur-short) var(--ease-out);
}

.link-arrow::after {
  content: "→";
  transition: transform var(--dur-short) var(--ease-out);
}

.link-arrow:hover { color: var(--color-accent-2); }
.link-arrow:hover::after { transform: translateX(3px); }

.link-arrow--light {
  color: var(--color-onphoto);
}

.link-arrow--light:hover { color: var(--color-onphoto); opacity: 0.75; }

/* ============================================
   SECTION RHYTHM — deliberately uneven
   ============================================ */
.section {
  padding-inline: var(--page-gutter);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   SHARED PHOTO TREATMENT
   Source photos are warmed + pulled back so the set reads as one shoot.
   ============================================ */
.ph,
.hero__img,
.product__media img,
.tilbud__media img,
.about__media img,
.halal__media img {
  filter: saturate(0.88) contrast(1.04);
}

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

  .hero__title,
  .hero__lede,
  .hero__actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
