/* Self-hosted fonts: one WOFF2 per face holding Google's latin range plus Turkish (Ğ ğ İ Ş ş, ₺), built by
   tools/subset-fonts.py from the OFL sources in design/fonts/source (the tool rewrites the hashed names below).
   No unicode-range: each face is a single file, so the browser falls back per character for anything it lacks.
   One family, the wordmark's voice (it.3 retired Playfair): Barlow 900 italic = page titles (H1), Barlow Condensed 800
   italic = section titles (H2) and the hero CTA, 800 upright = H3 and labels (eyebrow, badges, bar), 700 = CTA plates,
   Barlow 400/600 = body, font-display: optional (preloaded where they set the first screen; a late body face is not
   swapped in, so paragraphs never reflow — device-independent, also where the Arial-based fallback below is missing). */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:optional;src:url(/assets/fonts/barlow-400.11b09aef.woff2) format('woff2');}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:optional;src:url(/assets/fonts/barlow-600.5a53e06c.woff2) format('woff2');}
@font-face{font-family:'Barlow';font-style:italic;font-weight:900;font-display:swap;src:url(/assets/fonts/barlow-900i.2ab809ab.woff2) format('woff2');}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/barlow-condensed-700.346335dd.woff2) format('woff2');}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/barlow-condensed-800.ea84012d.woff2) format('woff2');}
@font-face{font-family:'Barlow Condensed';font-style:italic;font-weight:800;font-display:swap;src:url(/assets/fonts/barlow-condensed-800i.f609c1ee.woff2) format('woff2');}
/* Metric-matched fallbacks (hero loop it.3): local Arial scaled to Barlow's average advance over the site's own text
   (design/hero-loop/fallback_metrics.py, then calibrated
   in Chromium on the pages' own paragraphs and headings), so text set before the web font arrives already wraps like it and the swap
   does not reflow the page (sub-pages preload only the H1 and plate faces). Uppercase faces are fitted on capitals. */
@font-face{font-family:'Barlow Fallback';font-weight:100 500;src:local('Arial'),local('ArialMT');size-adjust:94.72%;ascent-override:105.57%;descent-override:21.11%;line-gap-override:0%;}
@font-face{font-family:'Barlow Fallback';font-weight:600 800;src:local('Arial Bold'),local('Arial-BoldMT');size-adjust:89.95%;ascent-override:111.17%;descent-override:22.23%;line-gap-override:0%;}
@font-face{font-family:'Barlow Fallback';font-style:italic;font-weight:900;src:local('Arial Bold Italic'),local('Arial-BoldItalicMT');size-adjust:86.14%;ascent-override:116.09%;descent-override:23.22%;line-gap-override:0%;}
@font-face{font-family:'Barlow Condensed Fallback';font-weight:700;src:local('Arial Bold'),local('Arial-BoldMT');size-adjust:68.0%;ascent-override:147.06%;descent-override:29.41%;line-gap-override:0%;}
@font-face{font-family:'Barlow Condensed Fallback';font-weight:800;src:local('Arial Bold'),local('Arial-BoldMT');size-adjust:77.31%;ascent-override:129.35%;descent-override:25.87%;line-gap-override:0%;}
@font-face{font-family:'Barlow Condensed Fallback';font-style:italic;font-weight:800;src:local('Arial Bold Italic'),local('Arial-BoldItalicMT');size-adjust:67.35%;ascent-override:148.48%;descent-override:29.7%;line-gap-override:0%;}

:root {
  /* Palette — black + orange (design/SANAT-YONETIMI.md, user decision 2026-09-25). EVERY colour value of the site lives
     in this block: the raw palette first, then the roles the components use. tools/lib/checks.js CONTRAST_PAIRS
     computes the ratios of the text/background roles (≥ 4.5; the CTA label on the plate ≥ 3, measured 8.13).
     Rules: CTA text is always ink-0 on mandarin; cream on mandarin (2.08) is forbidden; text-mute only on ink-0/ink-1. */
  --ink-0: #0A0807;          /* hero court, header, footer: the deepest black */
  --ink-1: #141110;          /* page ground */
  --ink-2: #1F1A17;          /* card / panel surface */
  --line: #332A24;           /* decorative edge (never text) */
  --mandarin: #F58A1F;       /* CTA fill, links, active nav, badges */
  --mandarin-deep: #C4600F;  /* pressed, input edge */
  --mandarin-light: #FFB25C; /* CTA hover, focus ring, status dot */
  --ember: #7A3A08;          /* gradient end, shadow face, hairline; never a large text ground */
  --cream: #F5EBDC;          /* primary text */
  --text-2: #B8A895;         /* secondary text */
  --text-mute: #8C7E70;      /* small meta, only on ink-0 / ink-1 */

  /* roles (names say what a colour does) */
  --surface: var(--ink-1);
  --surface-2: var(--ink-0);
  --surface-raised: var(--ink-2);
  --surface-raised-2: var(--line);   /* panel inside a panel */
  --brand: var(--mandarin);          /* CTA plate, seal */
  --on-brand: var(--ink-0);          /* text on the plate: always black */
  --cta-label: var(--on-brand);
  --cta-hover: var(--mandarin-light);   /* plate hover (label stays ink-0: 11.21) */
  --cta-pressed: var(--mandarin-deep);  /* plate pressed (ink-0: 4.78) */
  --accent: var(--mandarin);         /* links, icons, heading accent word */
  --accent-hi: var(--mandarin-light);/* hover text, focus ring */
  --accent-deep: var(--mandarin-deep);
  --status: var(--mandarin-light);   /* "adres güncel" dot */
  --status-text: var(--text-2);      /* status text beside the dot */
  --text: var(--cream);
  --text-muted: var(--text-2);
  --danger: var(--mandarin-light);   /* warnings: no red in this palette; the icon carries the meaning */
  --line-strong: var(--ember);

  /* derived (no literal colour) */
  --brand-grad: linear-gradient(180deg, var(--mandarin-light) 0%, var(--mandarin) 38%, var(--mandarin) 70%, var(--mandarin-deep) 100%);
  --panel-grad: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-1) 100%);
  --scrim: color-mix(in srgb, var(--ink-0) 90%, transparent);
  --glow: color-mix(in srgb, var(--mandarin) 16%, transparent);

  /* Type */
  --font-display: var(--font-body); /* page titles: Barlow 900 italic, set in capitals */
  --font-body: 'Barlow', 'Barlow Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-head: var(--font-display);
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.75rem;
  --fs-xl: 2.5rem;
  --fs-2xl: 3.5rem;
  --fs-hero: clamp(3rem, 12vw, 6rem);

  /* Space (4pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* Shape & depth */
  --radius: 10px;
  --shadow-deep: 0 18px 40px rgba(0, 0, 0, 0.5);

  /* Motion */
  --dur-fast: 180ms;
  --dur: 280ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layers */
  --z-sticky: 20;
  --z-header: 40;
  --z-skip: 100;

  --container: 1200px;
  --sticky-h: 66px;
}
