/* Klasik Sanatlar — design tokens. Source: design-system/klasik-sanatlar/MASTER.md */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
  /* bordo — hero color */
  --bordo-950: #2a0605;
  --bordo-900: #3f0a08;
  --bordo-800: #561009;
  --bordo-700: #6d1410;
  --bordo-600: #8b1d17;
  --bordo-500: #a8322a;
  --bordo-300: #d08a82;
  --bordo-200: #e8c3bd;
  --bordo-100: #f5e3df;
  /* altın varak */
  --altin-700: #6f4f15;
  --altin-600: #8a6420;
  --altin-500: #b8893a;
  --altin-400: #d4aa5a;
  --altin-300: #e9cf8f;
  --altin-100: #f7ecd2;
  /* krem kâğıt */
  --krem-50: #fdf9f1;
  --krem-100: #f8f1e1;
  --krem-200: #efe3c8;
  --krem-300: #e2d1ad;
  /* mürekkep */
  --murekkep: #1f1412;
  --murekkep-2: #5b4843;
  --murekkep-3: #735f59; /* a11y: was #8a7670 (4.08:1 on krem-50) → 5.70:1 */
  /* çini aksanları */
  --lacivert: #1d3a5f;
  --lacivert-100: #e3eaf3;
  --turkuaz: #1c6f6d; /* a11y: was #1f7a78 (4.37:1 on turkuaz-100) → 5.07:1 */
  --turkuaz-400: #3fb3ae;
  --turkuaz-100: #dff1f0;
  --success: #2a7036;
  --success-100: #e2f1e5;
  --warning: #855b00;
  --warning-100: #fbf0d6;
  --danger: #b42318;
  --danger-100: #fde6e3;

  /* semantic (light) */
  --bg: var(--krem-50);
  --bg-2: var(--krem-100);
  --surface: #fffdf8;
  --surface-2: var(--krem-100);
  --text: var(--murekkep);
  --text-2: var(--murekkep-2);
  --text-3: var(--murekkep-3);
  --border: var(--krem-200);
  --border-2: var(--krem-300);
  --primary: var(--bordo-700);
  --primary-hover: var(--bordo-800);
  --primary-contrast: var(--krem-100);
  --accent: var(--altin-500);
  --accent-text: var(--altin-600);
  --focus: var(--bordo-700); /* bordo ring on light grounds; gold on dark (see below) */
  --focus-dark: var(--altin-400);
  --border-input: #9c8670; /* a11y: form control borders ≥3:1 (was krem-300, 1.48:1) */

  /* color channels for translucent tints: rgb(var(--ink-rgb) / .08) — keeps site CSS free of raw colors */
  --ink-rgb: 63 10 8;          /* bordo-900: shadows, hairlines on cream */
  --deep-rgb: 42 6 5;          /* bordo-950: veils over photos */
  --bordo-rgb: 109 20 16;      /* bordo-700 */
  --gold-rgb: 212 170 90;      /* altin-400: ornaments, hairlines on bordo */
  --gold-300-rgb: 233 207 143;
  --gold-500-rgb: 184 137 58;
  --gold-600-rgb: 138 100 32;
  --cream-rgb: 248 241 225;    /* krem-100: text/lines on dark grounds */
  --paper-rgb: 253 249 241;    /* krem-50: frosted header */
  --surface-rgb: 255 253 248;
  --murekkep-rgb: 31 20 18;
  --turq-rgb: 63 179 174;
  --turkuaz-rgb: 31 122 120;
  --black-rgb: 0 0 0;
  --white-rgb: 255 255 255;
  --white: #fff;
  /* third-party brand colors (Instagram ring, WhatsApp) */
  --brand-ig-1: #feda75; --brand-ig-2: #fa7e1e; --brand-ig-3: #d62976; --brand-ig-4: #962fbf; --brand-ig-5: #4f5bd5;
  --brand-wa: #25d366;
  /* veils (photo overlays) */
  --veil-bottom: linear-gradient(180deg, transparent 35%, rgb(var(--deep-rgb) / .95));

  --grad-bordo: linear-gradient(135deg, #8b1d17 0%, #6d1410 45%, #3f0a08 100%);
  --grad-bordo-deep: radial-gradient(120% 90% at 20% 10%, #6d1410 0%, #3f0a08 55%, #2a0605 100%);
  --grad-altin: linear-gradient(120deg, #8a6420 0%, #e9cf8f 40%, #b8893a 62%, #8a6420 100%);

  /* type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri', serif;
  --fs-12: .75rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem;
  --fs-24: 1.5rem; --fs-32: 2rem; --fs-44: 2.75rem; --fs-60: 3.75rem;
  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 6.25rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  /* radius */
  --r-1: 6px; --r-2: 10px; --r-3: 16px; --r-4: 28px; --r-pill: 999px;
  --r-arch: 50% 50% 16px 16px / 26% 26% 16px 16px;

  /* elevation (warm) */
  --sh-1: 0 1px 2px rgba(63, 10, 8, .08);
  --sh-2: 0 10px 28px -10px rgba(63, 10, 8, .28);
  --sh-3: 0 28px 70px -24px rgba(63, 10, 8, .5);
  --sh-gold: 0 0 0 1px rgba(184, 137, 58, .35), 0 12px 30px -12px rgba(138, 100, 32, .45);

  /* motion */
  --dur-1: 150ms; --dur-2: 250ms; --dur-3: 450ms; --dur-4: 800ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, .06, .68, .19);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  --z-header: 50; --z-drawer: 80; --z-modal: 90; --z-toast: 100; --z-transition: 120;
  color-scheme: light;
}

/* dark theme (admin + portal) */
[data-theme="dark"] {
  --bg: #170807;
  --bg-2: #1d0b0a;
  --surface: #22100e;
  --surface-2: #2d1512;
  --text: #f8f1e1;
  --text-2: #d4c3b4;
  --text-3: #a8958a;
  --border: #4a2420;
  --border-2: #5e2f2a;
  --primary: #c2453a;
  --primary-hover: #d25a4f;
  --primary-contrast: #1a0706;
  --accent: #d4aa5a;
  --accent-text: #e2be73;
  --focus: var(--altin-400);
  --border-input: #8e5e56;
  --bordo-100: #3a1512;
  --bordo-200: #5a221d;
  --altin-100: #3a2c12;
  --turkuaz-100: #103a38;
  --lacivert-100: #16283f;
  --success-100: #12301a;
  --warning-100: #3a2a06;
  --danger-100: #3f0f0b;
  --turkuaz: #4cc3bd;
  --lacivert: #8fb2dc;
  --success: #6fcf85;
  --warning: #e7b64a;
  --danger: #ff8a7a;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 10px 28px -10px rgba(0, 0, 0, .6);
  --sh-3: 0 28px 70px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-4: 0ms; }
}
