:root {
    --space-0:  0;
    --space-1:  0.25rem;  /* 4px */
    --space-2:  0.5rem;   /* 8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --radius-sm:   0.625rem;  /* 10px */
    --radius-md:   0.875rem;  /* 14px */
    --radius-lg:   1.125rem;  /* 18px */
    --radius-xl:   1.5rem;    /* 24px */
    --radius-pill: 999px;
    --transition-fast:   140ms ease;
    --transition-normal: 180ms ease;
    --transition-slow:   240ms ease;
    --z-base:   1;
    --z-sticky: 40;
    --z-fab:    60;
    --z-toast:  80;
    --z-modal:  90;
    --container-width: 1180px;

    /* Typographic scale */
    --font-xs:   0.75rem;   /* 12px */
    --font-sm:   0.875rem;  /* 14px */
    --font-base: 1rem;      /* 16px */
    --font-md:   1.125rem;  /* 18px */
    --font-lg:   1.25rem;   /* 20px */
    --font-xl:   1.5rem;    /* 24px */
    --font-xxl:  1.875rem;  /* 30px */
}

/* box-sizing, html scroll-behavior, text-size-adjust kuralları critical.css'te
   render-block aşamasında uygulanıyor — base.css'te tekrar tanımlanmaz. */
[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
}

/* [TYPOGRAPHY SCALE] Mobilde root font-size'i 13.5px'e indirmek (eski sürüm)
   tüm rem-bazlı metinleri ~%16 küçültüyordu — work-type hint 9.7px'e düşüyor,
   accessibility ve okunabilirlik bozuluyordu. Yeni eğri: 16 → 15.5 → 15 →
   14.5px. Component'ler kendi clamp/px kurallarıyla görsel hiyerarşiyi
   koruyor. */
@media (max-width: 1180px) {
    html { font-size: 15.5px; }
}

@media (max-width: 900px) {
    html { font-size: 15px; }
}

@media (max-width: 480px) {
    html { font-size: 14.5px; }
}


body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    /* FIX: Inter stylistic sets — cv02=alternate a, cv03=alternate g, cv11=single-story i.
       Harfler çok daha rafine ve kurumsal görünür. */
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a,
button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    padding: 0;
}

/* img/svg display + max-width critical.css'te tanımlı. */

/* Merkezi sembol sözlüğü — layout'ta asla yer kaplamaz
   (CSP style-src 'self' inline display:none'ı engellediği için sınıfla) */
.svg-sprite {
    display: none;
}

::selection {
    background: rgba(26, 183, 105, 0.2);
    color: var(--text);
}

html[data-theme="dark"] ::selection {
    background: rgba(59, 130, 246, 0.28);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    box-shadow: none;
}

/* Autofill global overrides */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: 0 0 0px 1000px #f1f5f9 inset !important;
    -webkit-box-shadow: 0 0 0px 1000px #f1f5f9 inset !important;
    transition: background-color 9999s ease-out 0s;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #18181c inset !important;
    -webkit-box-shadow: 0 0 0px 1000px #18181c inset !important;
}

/* Skip-link ve prefers-reduced-motion kuralları critical.css'te tanımlı. */
