/* VidarSign design tokens — Nordic palette.
 * Contrast ratios (WCAG 2.1, measured with tools/contrast-check.ps1):
 *   ink #1B2422 on bone #F4EFE6 ............ 13.9 : 1  (AAA)
 *   forest #1F3D3A on bone #F4EFE6 ......... 10.3 : 1  (AAA)
 *   muted #4E5B58 on bone #F4EFE6 ........... 6.2 : 1  (AA)
 *   amber-text #8A5512 on bone #F4EFE6 ...... 5.4 : 1  (AA)
 *   forest-900 #132724 on amber #D9932B ..... 6.1 : 1  (AA)   amber buttons
 *   bone #F4EFE6 on forest #1F3D3A ......... 10.3 : 1  (AAA)  dark surfaces
 *   amber-soft #F0C987 on forest #1F3D3A .... 7.5 : 1  (AAA)  accents on dark
 * Pure amber #D9932B on bone is only 2.25 : 1, so it is used for glow,
 * borders and decoration — never for body text on light backgrounds.
 */

/* "Vidar Carved" is VidarSign's custom logo lettering. Only eight capitals
 * exist (A D G I N R S V) and there is no font file yet, so it is drawn as
 * vector outlines in js/wordmark.js (VIDARSIGN wordmark, VS monogram).
 * Headings use Cinzel until a complete Vidar Carved font with Romanian
 * diacritics exists; then add it here with @font-face. */

:root {
  --c-forest: #1F3D3A;
  --c-forest-900: #132724;
  --c-forest-700: #19322F;
  --c-forest-500: #2E5752;
  --c-forest-300: #6F8D88;
  --c-amber: #D9932B;
  --c-amber-soft: #F0C987;
  --c-amber-text: #8A5512;
  --c-bone: #F4EFE6;
  --c-bone-2: #ECE5D8;
  --c-surface: #FBF8F2;
  --c-ink: #1B2422;
  --c-muted: #4E5B58;
  --c-line: #D9D0C0;
  --c-success: #2F6B4F;
  --c-success-bg: #E1EEE5;
  --c-danger: #9E3626;
  --c-danger-bg: #F6E2DC;

  /* Vidar Carved wordmark colours (brand spec; logotypes are exempt from text contrast rules) */
  --wm-vidar: #123F3D;
  --wm-sign: #D49A46;

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(19, 39, 36, .08), 0 2px 8px rgba(19, 39, 36, .06);
  --shadow-2: 0 4px 24px rgba(19, 39, 36, .12);
  --glow: 0 0 0 1px rgba(217, 147, 43, .35), 0 0 18px rgba(217, 147, 43, .35);

  --t-fast: 150ms;
  --t-med: 220ms;
  --t-slow: 300ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 60px;
  --mobile-nav-h: 64px;
  --gutter: 16px;
  --maxw: 1120px;

  /* subtle stone grain, inlined so it costs no request */
  --tex-stone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .2  0 0 0 0 .18  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* faint vertical wood grain for dark panels */
  --tex-wood: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px, rgba(0,0,0,.03) 9px 10px, transparent 10px 23px);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 68px; }
}
