/**
 * USTAD Design Tokens
 * CSS custom properties only — load before main.css
 */

:root {
  /* ——— Renkler ——— */
  --color-black: #0B0B0D;
  --color-cream: #F5F2EB;
  --color-page-background: var(--color-cream);
  --color-white: #FFFFFF;
  --color-burgundy: #781F2A;
  --color-bronze: #B19762;
  --color-text: #171719;
  --color-text-muted: #66625E;
  --color-line: #DCD6CC;
  --color-surface: #ECE8E0;

  /* Semantik */
  --color-burgundy-hover: #5F1821;
  --color-burgundy-active: #4A1219;
  --color-success: #1F5C3A;
  --color-success-bg: #E8F2EC;
  --color-error: #8B1E2A;
  --color-error-bg: #F8E8EA;
  --color-warning: #8A7340;
  --color-warning-bg: #F5EFE3;
  --color-focus: #781F2A;
  --color-overlay: rgba(11, 11, 13, 0.55);
  --color-overlay-heavy: rgba(11, 11, 13, 0.72);

  /* ——— Tipografi ——— */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --text-display: clamp(2.25rem, 4.5vw, 3.75rem);
  --text-h1: clamp(1.875rem, 3vw, 2.5rem);
  --text-h2: clamp(1.5rem, 2.5vw, 2rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-h4: 1.25rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-label: 0.75rem;
  --text-section-num: 0.875rem;

  --leading-display: 1.15;
  --leading-heading: 1.25;
  --leading-body: 1.7;
  --leading-tight: 1.35;
  --leading-label: 1.4;

  --tracking-label: 0.06em;
  --tracking-tight: -0.01em;

  --measure-reading: 72ch;
  --measure-reading-min: 65ch;
  --measure-reading-max: 75ch;

  /* ——— Boşluk ——— */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 120px;

  /* ——— Layout ——— */
  --container-max: 1380px;
  --content-max: 760px;
  --gutter-mobile: 16px;
  --gutter-tablet: 20px;
  --gutter-desktop: 24px;
  --page-pad-x: 20px;
  --header-height: 72px;
  --header-height-scrolled: 60px;
  --cols-mobile: 4;
  --cols-tablet: 8;
  --cols-desktop: 12;

  /* ——— Radius / kenar ——— */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-none: 0;
  --border-width: 1px;
  --border-width-thick: 2px;

  /* ——— Gölge (minimal) ——— */
  --shadow-none: none;
  --shadow-subtle: 0 1px 0 rgba(11, 11, 13, 0.04);
  --shadow-lift: 0 2px 8px rgba(11, 11, 13, 0.06);

  /* ——— Z-index ——— */
  --z-base: 1;
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-skip: 600;

  /* ——— Hareket ——— */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  /* ——— Bileşen ——— */
  --btn-height-sm: 40px;
  --btn-height-md: 48px;
  --btn-height-lg: 52px;
  --touch-min: 44px;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
  --input-height: 48px;
  --reading-progress-height: 3px;

  /* ——— Kapak oranı ——— */
  --cover-ratio: 3 / 4;
  --cover-ratio-wide: 16 / 10;
  --avatar-ratio: 1 / 1;
}
