/* =============================================================================
   BASE — Tasarım sistemi tokenları, tipografi ve global sıfırlamalar
   Bu dosya diğer tüm CSS modüllerinden önce yüklenir.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Yazı tipleri (yerel barındırma — dış istek yok)
   Her iki aile de değişken font olduğundan tek dosya tüm ağırlıkları karşılar.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -----------------------------------------------------------------------------
   2. Tasarım tokenları
   Kurumsal palet korundu (ivory #FAF5F2 + gül #C99898), kontrast için
   derinleştirilmiş ton varyantları eklendi.
   -------------------------------------------------------------------------- */
:root {
  /* Renk — nötrler */
  --ink:            #14100E;   /* sıcak siyah — ana metin ve koyu zeminler */
  --ink-800:        #241D19;
  --ink-600:        #4A3E38;
  --ink-400:        #7A6B63;   /* ikincil metin */
  --ink-200:        #B9ABA3;

  --ivory:          #FAF6F3;   /* ana zemin */
  --ivory-deep:     #F3ECE7;   /* alternatif bölüm zemini */
  --sand:           #E8DCD4;   /* kart zemini / ayırıcı */
  --white:          #FFFFFF;

  /* Renk — marka aksanı */
  --rose:           #C99898;   /* kurumsal gül tonu */
  --rose-deep:      #8E5F5B;   /* metin ve bağlantılarda AA kontrast */
  --rose-soft:      #EBDAD6;
  --rose-wash:      #F7EEEB;

  /* Çizgiler */
  --line:           rgba(20, 16, 14, 0.10);
  --line-soft:      rgba(20, 16, 14, 0.06);
  --line-invert:    rgba(255, 255, 255, 0.14);
  --line-rose:      rgba(201, 152, 152, 0.42);

  /* Tipografi */
  --font-display:   'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:      'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Akışkan tip ölçeği — clamp ile breakpoint'siz geçiş */
  --fs-display:     clamp(2.75rem, 1.4rem + 6.2vw, 7rem);
  --fs-h1:          clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --fs-h2:          clamp(1.85rem, 1.25rem + 2.4vw, 3.25rem);
  --fs-h3:          clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  --fs-h4:          clamp(1.1rem, 0.98rem + 0.45vw, 1.35rem);
  --fs-lead:        clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  --fs-body:        1rem;
  --fs-sm:          0.9375rem;
  --fs-xs:          0.8125rem;
  --fs-kicker:      0.75rem;

  /* Boşluk ölçeği — 4px tabanlı */
  --sp-1:  0.25rem;   --sp-2:  0.5rem;    --sp-3:  0.75rem;
  --sp-4:  1rem;      --sp-5:  1.5rem;    --sp-6:  2rem;
  --sp-7:  2.5rem;    --sp-8:  3rem;      --sp-9:  4rem;
  --sp-10: 5rem;      --sp-11: 6.5rem;    --sp-12: 8rem;

  /* Bölüm dikey boşluğu — her bölüm nefes alsın */
  --section-y:      clamp(4.5rem, 2rem + 8vw, 9.5rem);
  --section-y-sm:   clamp(3rem, 1.5rem + 5vw, 6rem);

  /* Köşe yarıçapı — keskin değil, abartılı da değil */
  --r-xs: 2px;  --r-sm: 4px;  --r-md: 8px;  --r-lg: 14px;  --r-pill: 999px;

  /* Gölge — çok dengeli, renkten türetilmiş */
  --sh-xs: 0 1px 2px rgba(20, 16, 14, 0.04);
  --sh-sm: 0 2px 10px rgba(20, 16, 14, 0.05);
  --sh-md: 0 12px 34px -12px rgba(20, 16, 14, 0.16);
  --sh-lg: 0 28px 70px -24px rgba(20, 16, 14, 0.26);

  /* Hareket */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  0.22s;
  --dur:       0.4s;
  --dur-slow:  0.75s;

  /* Ölçüler */
  --header-h:      92px;
  --header-h-sm:   68px;
  --container-max: 1320px;
  --z-header:      1000;
  --z-overlay:     1100;
}

/* -----------------------------------------------------------------------------
   3. Sıfırlama ve temel öğeler
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sabit başlık altında kalmaması için çapa hedeflerine üst boşluk */
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-800);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobil menü açıkken arka plan kaydırmayı engelle */
body.is-locked { overflow: hidden; }

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

/*
  <picture> düzen akışından çıkarılır.
  Aksi hâlde araya girdiği için ".frame img { height: 100% }" gibi kurallar
  yüzde yüksekliği <picture>'ın otomatik yüksekliğine göre çözer ve görsel
  kapsayıcısını doldurmaz. display: contents ile <img> doğrudan kapsayıcının
  çocuğu gibi ölçülendirilir.
*/
picture { display: contents; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-sans); font-weight: 400; letter-spacing: 0; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }

strong, b { font-weight: 500; }

hr {
  height: 1px;
  margin: var(--sp-8) 0;
  border: 0;
  background: var(--line);
  opacity: 1;
}

::selection { background: var(--rose); color: var(--white); }

/* -----------------------------------------------------------------------------
   4. Erişilebilirlik
   -------------------------------------------------------------------------- */

/* Klavye kullanıcıları için görünür odak halkası */
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* Ekran okuyucuya özel metin */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* İçeriğe atla bağlantısı */
.skip-link {
  position: absolute;
  top: -100px; left: var(--sp-4);
  z-index: calc(var(--z-overlay) + 10);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; color: var(--white); }

/* Hareket azaltma tercihine tam uyum */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -----------------------------------------------------------------------------
   5. Tipografi yardımcıları
   -------------------------------------------------------------------------- */

/* Bölüm üstü küçük etiket — harf aralığı geniş, aksan renkli */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--fs-kicker);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
/* Etiketin solundaki ince çizgi */
.kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--rose);
}
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--rose);
}
.kicker--invert { color: var(--rose-soft); }
.kicker--invert::before, .kicker--invert::after { background: var(--rose); }

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-600);
}

.display {
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.025em;
}

/* Serif vurgu — italik ve aksan renkli */
.accent-italic {
  font-style: italic;
  color: var(--rose-deep);
}

.text-muted-ink { color: var(--ink-400); }

/* Sayı sunumu — istatistik blokları */
.tabular { font-variant-numeric: tabular-nums; }
