/* ============================================================
   Praktica & Co — Design tokens
   Two-color brand: Deep Navy (#0C1B33) + Soft Sun (#FFDE59),
   with Sky as a strictly text-only third accent.
   Compiled from the Praktica & Co design system.
   ============================================================ */
:root {
  /* -------- Brand: Deep Navy -------- */
  --navy-900: #0C1B33; /* brand navy — primary ink & inverse surface */
  --navy-800: #12253F;
  --navy-700: #1B314F;
  --navy-600: #2A415F;
  --navy-500: #435878;
  --navy-400: #6B7C99;
  --navy-300: #9AA6BC;
  --navy-200: #C7CEDB;
  --navy-100: #E4E8EF;
  --navy-50:  #F2F4F8;

  /* -------- Brand: Soft Sun (yellow) -------- */
  --sun-700: #C9A21F;
  --sun-600: #EFC933;
  --sun-500: #FFDE59; /* brand yellow — primary accent */
  --sun-400: #FFE780;
  --sun-300: #FFEFA6;
  --sun-200: #FFF6CC;
  --sun-100: #FFFBE8;

  /* -------- Accent: Sky (text-only heading highlight) -------- */
  --sky-600: #547FAD;
  --sky-500: #6E9AC4;
  --sky-400: #8FB1D3;

  /* -------- Neutrals -------- */
  --white:   #FFFFFF;
  --paper:   #FBFBF9;
  --gray-50:  #F4F5F3;
  --gray-100: #E9EAE6;
  --gray-200: #D8DAD4;
  --gray-300: #B9BCB4;
  --gray-400: #8B8F86;
  --gray-500: #63665F;
  --black:   #05060A;

  /* -------- Status -------- */
  --success-500: #2E7D5B;
  --success-100: #DCEFE6;
  --danger-500:  #C4453B;
  --danger-100:  #F7E1DF;
  --warning-500: #C9A21F;
  --warning-100: #FFF6CC;

  /* -------- Semantic aliases -------- */
  --surface-page:     var(--paper);
  --surface-card:     var(--white);
  --surface-sunken:   var(--gray-50);
  --surface-inverse:  var(--navy-900);
  --surface-accent:   var(--sun-500);
  --surface-accent-soft: var(--sun-100);

  --text-strong:   var(--navy-900);
  --text-body:     var(--navy-800);
  --text-muted:    var(--navy-500); /* navy-500 not DS navy-400: AA contrast at 15px on light */
  --text-on-dark:  var(--white);
  --text-on-dark-muted: var(--navy-300);
  --text-on-accent: var(--navy-900);
  --text-link:     var(--navy-900);
  --text-accent-secondary: var(--sky-600);

  --border-subtle:  var(--gray-100);
  --border-default: var(--gray-200);
  --border-strong:  var(--navy-900);
  --border-accent:  var(--sun-500);

  --action-primary:        var(--navy-900);
  --action-primary-hover:  var(--navy-700);
  --action-primary-text:   var(--white);
  --action-accent:         var(--sun-500);
  --action-accent-hover:   var(--sun-600);
  --action-accent-text:    var(--navy-900);
  --focus-ring: var(--navy-900);

  /* -------- Typography -------- */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-heading: var(--font-display);
  --font-eyebrow: var(--font-display);

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  --text-display-2xl: clamp(3.5rem, 7vw, 6rem);
  --text-display-xl:  clamp(2.75rem, 5vw, 4.25rem);
  --text-display-lg:  clamp(2.25rem, 4vw, 3.25rem);
  --text-display-md:  clamp(1.875rem, 3vw, 2.5rem);
  --text-xl:  1.5rem;
  --text-lg:  1.25rem;
  --text-md:  1.0625rem;
  --text-sm:  0.9375rem;
  --text-xs:  0.8125rem;
  --text-2xs: 0.6875rem;

  --leading-tight:  1.02;
  --leading-snug:   1.15;
  --leading-normal: 1.5;
  --leading-relaxed:1.65;

  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-eyebrow: 0.16em;

  /* -------- Spacing & layout -------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-9:  4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;
  --container:     1180px;
  --gutter:        clamp(20px, 5vw, 48px);

  /* -------- Radii, borders, shadows, motion -------- */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(12, 27, 51, 0.06);
  --shadow-sm: 0 2px 6px rgba(12, 27, 51, 0.07);
  --shadow-md: 0 8px 24px rgba(12, 27, 51, 0.09);
  --shadow-lg: 0 18px 48px rgba(12, 27, 51, 0.12);
  --shadow-focus: 0 0 0 3px rgba(12, 27, 51, 0.18);
  --shadow-focus-accent: 0 0 0 3px rgba(255, 222, 89, 0.55);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   360ms;
  --dur-reveal:  640ms;
  --dur-slow-xl: 720ms;
}

/* ============================================================
   Base element styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a:not([class]) { color: var(--navy-900); }
a:not([class]):hover { color: var(--navy-700); }

::selection { background: var(--sun-500); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

img { max-width: 100%; }
