/* Designtokens — "Jord og pixels".
   Alle farver, typografi, afstande og effekter samlet ét sted.
   Kilde: designsystemets tokens/*.css. Mobil (≤ 720px) er udgangspunktet;
   desktopværdierne sættes i blokken nederst. Rund ikke værdierne af. */

:root {
  /* Farver: base */
  --jw-paper: #f4f0e7;
  --jw-ink: #1d1a16;
  --jw-okker: #f0b73a;
  --jw-tegl: #c9522a;
  --jw-tegl-dark: #b84b26;  /* tegl til tekst og bag hvid tekst: 4,5:1 på paper, 5,2:1 med hvid */
  --jw-white: #ffffff;
  --jw-black: #000000;      /* kun hero-seglet */

  /* Farver: varme neutraler */
  --jw-stone-200: #d6cfc5;  /* brødtekst på ink (kontakt) */
  --jw-stone-300: #c9c2b8;  /* sekundær tekst på ink */
  --jw-stone-400: #a8a097;  /* footer-tekst */
  --jw-stone-600: #6b645c;  /* dæmpet tekst på paper */
  --jw-stone-700: #4a443d;  /* inaktive segmenter på ink */
  --jw-ink-800: #2b2621;    /* hårfine skillelinjer på ink */

  /* Farver: semantik */
  --surface-page: var(--jw-paper);
  --surface-card: var(--jw-white);
  --surface-inverse: var(--jw-ink);
  --surface-accent: var(--jw-okker);
  --text-primary: var(--jw-ink);
  --text-muted: var(--jw-stone-600);
  --text-on-inverse: var(--jw-paper);
  --text-muted-on-inverse: var(--jw-stone-300);
  --text-on-tegl: var(--jw-white);
  --text-accent: var(--jw-tegl-dark);      /* tegl som tekstfarve */
  --surface-tegl: var(--jw-tegl-dark);     /* tegl bag tekst: knapper, stickers, markeringer */
  --accent-primary: var(--jw-tegl);        /* tegl som streg, skygge, prik og citationstegn */
  --accent-secondary: var(--jw-okker);
  --border-strong: var(--jw-ink);
  --focus-ring: var(--jw-tegl);
  --link: var(--jw-tegl-dark);
  --link-hover: var(--jw-ink);
  --link-underline: var(--jw-tegl);

  /* Beskyttelsesgradienter over kontaktfotoet */
  --gradient-contact: linear-gradient(180deg, rgb(29 26 22 / 0) 0%, rgb(29 26 22 / 0.4) 55%, var(--jw-ink) 100%);

  /* Typografi */
  --font-sans: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600;
  --weight-bold: 700; --weight-extrabold: 800; --weight-black: 900;

  --text-display: 48px;     --lh-display: 0.98;  --ls-display: -0.035em;
  --text-h1: 40px;          --lh-h1: 1;          --ls-h1: -0.03em;
  --text-h1-portfolio: 38px; --lh-h1-portfolio: 1.02;
  --text-h2: 36px;          --lh-h2: 1;          --ls-h2: -0.03em;
  --text-h3: 28px;          --lh-h3: 1.08;       --ls-h3: -0.025em;
  --text-h4: 28px;          --lh-h4: 1.1;        --ls-h4: -0.02em;
  --text-stat: 52px;        --lh-stat: 0.9;      --ls-stat: -0.04em;
  --text-statement: 21px;   --lh-statement: 1.55; --ls-statement: -0.02em;
  --text-pullquote: 26px;   --lh-pullquote: 1.2; --ls-pullquote: -0.025em;
  --text-hero-lead: 20px;   --lh-hero-lead: 1.4;
  --text-lead: 20px;        --lh-lead: 1.45;
  --text-body: 18px;        --lh-body: 1.6;
  --text-quote: 17px;       --lh-quote: 1.55;
  --text-callout: 20px;     --lh-callout: 1.4;
  --text-callout-dark: 22px; --lh-callout-dark: 1.3;
  --text-journey: 24px;
  --text-stat-label: 18px;

  --text-button: 17px;
  --text-nav: 16px;
  --text-field-label: 15px;
  --text-field: 17px;       /* ≥ 16px undgår zoom på iOS */
  --text-eyebrow: 14px;
  --text-meta: 14px;
  --text-name: 16px;
  --text-label: 14px;
  --text-sticker: 13px;
  --text-caption: 15px;     --ls-caption: -0.02em;
  --text-seal: 11px;
  --text-check: 16px;
  --text-small: 16px;

  /* Afstande og layout */
  --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-10: 10px; --space-12: 12px; --space-14: 14px;
  --space-16: 16px; --space-18: 18px; --space-20: 20px; --space-22: 22px; --space-24: 24px; --space-28: 28px;
  --space-32: 32px; --space-36: 36px; --space-40: 40px; --space-44: 44px; --space-48: 48px;

  --gutter: 20px;
  --section-y-top: 56px;
  --section-y-bottom: 64px;
  --section-y-compact-top: 48px;
  --section-y-compact-bottom: 56px;
  --stack-text: 20px;
  --stack-project: 18px;

  --measure: 740px;
  --container-hero: 820px;
  --container-media: 1040px;
  --container-logos: 1080px;
  --tap-min: 44px;
  --cta-min: 56px;

  /* Radier og kanter */
  --radius-mark: 3px; --radius-badge: 5px; --radius-sticker: 6px; --radius-input: 8px;
  --radius-button: 10px; --radius-card: 12px; --radius-quote: 14px; --radius-panel: 16px; --radius-round: 50%;
  --border-width: 2px;

  /* Hårde offset-skygger (kombinér med en farve) */
  --hard-press: 0 4px 0;
  --hard-press-down: 0 1px 0;
  --hard-sm: 3px 3px 0;
  --hard-sm-down: 1px 1px 0;
  --hard-md: 4px 4px 0;
  --hard-lg: 5px 5px 0;
  --hard-xl: 6px 6px 0;
  /* Blød skygge: kun polaroid-fotos */
  --shadow-photo: 0 14px 30px rgb(29 26 22 / 0.14);

  /* Tilt */
  --tilt-xs: 0.8deg; --tilt-sm: 1deg; --tilt-md: 1.5deg; --tilt-lg: 2.5deg; --tilt-xl: 4deg; --tilt-seal: 10deg;

  /* Bevægelse */
  --press-translate: 0 3px;
  --duration-fast: 120ms;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

/* Desktop (> 720px) */
@media (min-width: 721px) {
  :root {
    --gradient-contact: linear-gradient(90deg, rgb(29 26 22 / 0) 0%, rgb(29 26 22 / 0) 30%, rgb(29 26 22 / 0.55) 42%, rgb(29 26 22 / 0.92) 56%, var(--jw-ink) 100%);

    --text-display: clamp(48px, 8vw, 104px);
    --text-h1: clamp(40px, 5.5vw, 68px);
    --text-h1-portfolio: var(--text-h1); --lh-h1-portfolio: 1;
    --text-h2: clamp(36px, 4.5vw, 56px);
    --text-h3: clamp(30px, 3vw, 44px);  --lh-h3: 1.05;
    --text-h4: clamp(28px, 2.6vw, 36px);
    --text-stat: clamp(48px, 5vw, 72px);
    --text-statement: clamp(22px, 2.2vw, 28px); --lh-statement: 1.5;
    --text-pullquote: clamp(28px, 3vw, 40px); --lh-pullquote: 1.18;
    --text-hero-lead: clamp(22px, 2.2vw, 28px);
    --text-lead: clamp(22px, 2vw, 26px);
    --text-body: clamp(19px, 1.5vw, 21px);
    --text-quote: clamp(19px, 1.6vw, 22px);
    --text-callout: clamp(21px, 1.9vw, 24px);
    --text-callout-dark: clamp(22px, 2vw, 28px); --lh-callout-dark: 1.25;
    --text-journey: clamp(24px, 2.2vw, 30px);
    --text-stat-label: 20px;

    --text-button: 18px;
    --text-field-label: 16px;
    --text-field: 18px;
    --text-eyebrow: 15px;
    --text-meta: 15px;
    --text-name: 17px;
    --text-sticker: 14px;
    --text-caption: 18px;
    --text-seal: 15px;
    --text-check: 17px;
    --text-small: 17px;

    --gutter: clamp(20px, 5vw, 56px);
    --section-y-top: clamp(64px, 9vw, 120px);
    --section-y-bottom: clamp(64px, 9vw, 120px);
    --section-y-compact-top: clamp(48px, 7vw, 88px);
    --section-y-compact-bottom: clamp(48px, 7vw, 88px);
    --stack-text: 24px;
    --stack-project: 22px;

    --hard-md: 5px 5px 0;
    --hard-lg: 6px 6px 0;
    --hard-xl: 8px 8px 0;
    --shadow-photo: 0 18px 40px rgb(29 26 22 / 0.14);
  }
}
