/*
  Design tokens for Tjøme Bil & Motor AS.
  Brand red/ink sampled directly from the company logo (Bilder/Tjøme Bil & Motor Logo.png).
  All color pairs below are verified WCAG AA (4.5:1+) for body text.
*/

:root {
  /* Brand colors */
  --color-red: #bf2329;
  --color-red-dark: #9e1b21;
  --color-red-darker: #7a1519;
  --color-red-light: #fbeaeb;

  --color-ink: #141414;
  --color-ink-soft: #4a4a4a;
  --color-ink-faint: #706b63;

  --color-white: #ffffff;
  --color-cream: #f7f5f2;
  --color-cream-dark: #efebe4;

  --color-border: #e4e0d8;
  --color-border-strong: #cfc9bd;

  --color-success: #1e7b4d;
  --color-success-bg: #e9f5ee;
  --color-error: #b3261e;
  --color-error-bg: #fbeaea;

  /* Surfaces */
  --surface-page: var(--color-white);
  --surface-alt: var(--color-cream);
  --surface-ink: var(--color-ink);

  /* Typography */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step--1: clamp(0.833rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.406rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.728rem, 1.53rem + 1vw, 2.25rem);
  --step-4: clamp(2.074rem, 1.78rem + 1.5vw, 2.9rem);
  --step-5: clamp(2.488rem, 2.05rem + 2.2vw, 3.75rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* Spacing (8pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;
  --space-10: 6.5rem;
  --space-11: 8rem;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06), 0 1px 1px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 20, 0.08), 0 2px 6px rgba(20, 20, 20, 0.05);
  --shadow-lg: 0 20px 48px rgba(20, 20, 20, 0.14), 0 6px 16px rgba(20, 20, 20, 0.08);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 860px;
  --header-height: 76px;

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;
}
