/* ============================================================
   Elif Mimarlık — Tasarım Sistemi (tokenlar + temel)
   Kural: renk, tipografi, boşluk ve hareket önce burada tanımlanır.
   ============================================================ */

:root {
  /* --- Renk --- */
  --bg: #0C0B0A;
  --bg-2: #141210;
  --yuzey: rgba(255, 255, 255, 0.055);
  --yuzey-guclu: rgba(255, 255, 255, 0.09);
  --cizgi: rgba(255, 255, 255, 0.14);
  --metin: #F6F3EE;
  --metin-2: rgba(246, 243, 238, 0.66);
  --metin-3: rgba(246, 243, 238, 0.44);
  --beyaz: #ffffff;
  --altin: #C9A46A;
  --koyu: #0A0908;

  /* --- Tipografi --- */
  --yazi: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --boy-hero: clamp(2.75rem, 7vw, 5.5rem);
  --boy-bolum: clamp(2rem, 4.5vw, 3.25rem);
  --boy-proje: clamp(1.5rem, 3vw, 2.25rem);
  --boy-govde: clamp(1rem, 1.1vw, 1.125rem);
  --boy-kucuk: 0.92rem;
  --boy-goz: 0.78rem;

  /* --- Boşluk --- */
  --u: 4px;
  --bolum-bosluk: clamp(72px, 10vw, 140px);
  --genis: 1200px;
  --kenar: clamp(20px, 5vw, 56px);
  --hucre-cizgi: clamp(10px, 1.4vw, 18px);

  /* --- Hareket --- */
  --egri: cubic-bezier(0.22, 1, 0.36, 1);
  --hizli: 100ms;
  --temel: 240ms;
  --yavas: 380ms;
  --acilis: 520ms;

  /* --- Malzeme --- */
  --cam: rgba(10, 9, 8, 0.55);
  --cam-filtre: blur(18px) saturate(160%);
  --golge: 0 30px 80px rgba(0, 0, 0, 0.55);

  /* --- Katmanlar --- */
  --z-menu: 100;
  --z-panel: 120;
  --z-kutuphane: 200;
}

/* --- Sıfırlama --- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font: 100%/1.6 var(--yazi);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--metin);
  font-size: var(--boy-govde);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.kilit {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--altin);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--altin);
  color: var(--koyu);
}

/* --- Tipografi rolleri --- */

.goz {
  font-size: var(--boy-goz);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

h1,
.baslik-1 {
  font-size: var(--boy-hero);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

h2,
.baslik-2 {
  font-size: var(--boy-bolum);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

h3,
.baslik-3 {
  font-size: var(--boy-proje);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* --- Hareket yardımcıları --- */

.acil {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--yavas) var(--egri),
    transform var(--yavas) var(--egri);
  transition-delay: calc(var(--gecikme, 0) * 70ms);
}

.acil.gorunur {
  opacity: 1;
  transform: none;
}

/* --- Erişilebilirlik --- */

.atla {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--beyaz);
  color: var(--koyu);
  border-radius: 999px;
  font-size: var(--boy-kucuk);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--temel) var(--egri);
}

.atla:focus-visible {
  transform: none;
}

.yardimci-gizle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Azaltılmış hareket --- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    transition-property: opacity, background-color, color, border-color !important;
  }

  .acil {
    transform: none;
  }

  .acil.gorunur {
    transform: none;
  }
}
