/**
 * @file        tokens.css
 * @description Design tokens (colours, fonts, spacing, grid) for the SOS Strassenhunde MVP — NewConcept 4.1–4.4
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @email       tom@synthetixmind.com
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         d4cbe3f5-f498-4b7f-ab58-82626c66c145
 * @version     0.2.0.3
 * @created     2026-10-25
 * @updated     2026-11-07
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Self-hosted fonts (SIL OFL 1.1, Fontsource latin subset) — no Google Fonts connection. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours (ColorTheme 2) */
  --color-primary: #E71F26;       /* SOS-Rot (logo) */
  --color-secondary: #0E4A57;     /* Apulien-Petrol */
  --color-accent: #F2B134;        /* Sonnengelb */
  --color-bg: #FBF7F4;            /* Warmweiss */
  --color-text: #1D2B30;          /* Anthrazit */
  /* Derived helper tones */
  --color-primary-dark: #B8141B;  /* small red text, hover */
  --color-white: #FFFFFF;
  /* Functional colours */
  --color-focus: var(--color-secondary);
  --color-focus-on-dark: var(--color-accent);
  --color-error: var(--color-primary-dark);
  --color-success: #2E7D32;      /* green ticks (Spenden «Das nehmen wir gerne»), 5.1:1 with white */
  --color-border: rgba(29, 43, 48, 0.16);
  /* Red text on light backgrounds (WCAG 1.4.3, issue #10): #B8141B is 6.25:1 on Warmweiss.
     --color-primary (#E71F26) is only 4.27:1 there: buttons, borders and large text only. */
  --color-primary-text: var(--color-primary-dark);

  /* Focus ring (WCAG 2.4.7, 1.4.11, issue #8): 3 px ring plus a white halo, visible on any button colour. */
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  --focus-ring-color: var(--color-focus);               /* Petrol, 9.23:1 on Warmweiss */
  --focus-ring-color-on-dark: var(--color-focus-on-dark); /* Sonnengelb, 5.20:1 on Petrol */
  --focus-ring-halo: var(--color-white);

  /* Pointer target size (WCAG 2.5.8, issue #11): 24 px is the AA minimum, 44 px the house standard for touch. */
  --target-min: 24px;
  --target-comfort: 44px;

  /* Typography (NewConcept 4.2) */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-h1: clamp(2rem, 5vw, 3.25rem);
  --text-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --text-h3: 1.25rem;
  --text-body: 1.125rem;
  --text-small: 0.875rem;

  /* Spacing, 4 px base (NewConcept 4.3) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-space: var(--space-7);

  /* Grid (NewConcept 4.4) — mobile values, widened in base.css media queries */
  --grid-gap: 16px;
  --page-gutter: 16px;
  --content-max: 1200px;

  /* Shape and motion */
  --radius: 8px;
  --radius-card: 12px;
  --shadow-card: 0 2px 8px rgba(29, 43, 48, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(29, 43, 48, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 80px;
  --header-height-compact: 64px;
}

@media (min-width: 768px) {
  :root { --grid-gap: 24px; --page-gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --page-gutter: 48px; --section-space: var(--space-9); }
}
@media (min-width: 1440px) {
  :root { --grid-gap: 32px; }
}
