/* ==============================================================
   BASE — reset, font yükleme, tipografi, container
   ============================================================== */

/* --- Fontlar --------------------------------------------------
   Google Fonts CDN üzerinden yükleniyor (bkz. includes/header.php).
   Google'ın css2 API'si latin-ext alt kümesini unicode-range ile
   otomatik veriyor, Türkçe karakterler sorunsuz.

   CANLIYA ÇIKARKEN: KVKK/GDPR açısından self-hosted'a dön.
   header.php'deki iki <link> satırını sil, buraya @font-face
   bloklarını koy — tokens.css'teki --f-display / --f-govde
   değişmediği için başka hiçbir dosyaya dokunmak gerekmez.
   ------------------------------------------------------------ */

/* --- Material Symbols ---------------------------------------- */
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.icon--sm { font-size: 18px; }
.icon--lg { font-size: 28px; }

/* --- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-y) + 16px);
}

body {
  min-height: 100svh;
  background: var(--zemin);
  color: var(--metin);
  font-family: var(--f-govde);
  font-size: var(--yazi-base);
  font-weight: 400;
  line-height: var(--satir-govde);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

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

ul[class], ol[class] { list-style: none; padding: 0; }

/* --- Tipografi ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;                 /* 700 hiç yüklenmiyor, kullanılmıyor */
  line-height: var(--satir-baslik);
  letter-spacing: var(--harf-baslik);
  text-wrap: balance;
}
h1 { font-size: var(--yazi-5xl); }
h2 { font-size: var(--yazi-4xl); }
h3 { font-size: var(--yazi-3xl); }

/* Ultra-mobil (≤ 380) — display başlıkları daha da kısıl */
@media (max-width: 380px) {
  h1 { font-size: 1.875rem; }   /* 30px */
  h2 { font-size: 1.625rem; }   /* 26px */
  h3 { font-size: 1.375rem; }   /* 22px */
}
h4 { font-family: var(--f-govde); font-size: var(--yazi-lg); font-weight: 500; letter-spacing: 0; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Üstlük — display başlığın karşı kutbu. Yapısal etiket, süs değil. */
.eyebrow {
  font-family: var(--f-govde);
  font-size: var(--yazi-xs);
  font-weight: 500;
  letter-spacing: var(--harf-ustluk);
  text-transform: uppercase;
  color: var(--metin-ikincil);
}

.prose > * + * { margin-top: var(--bosluk-4); }
.prose { max-width: 65ch; }
.text-muted { color: var(--metin-ikincil); }

/* --- Yerleşim ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--kenar);
}
.container--narrow { max-width: var(--container-dar); }
.container--wide { max-width: 1400px; }

/* Sabit oranlı görsel yuvası */
.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--odak, 50% 50%);
}
.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--oran, 3 / 2);
  background: var(--zemin-alt);
  border-radius: var(--r-md);
}

/* --- Erişilebilirlik ------------------------------------------ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--odak);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--bosluk-2);
  left: var(--bosluk-2);
  z-index: 100;
  padding: var(--bosluk-3) var(--bosluk-4);
  background: var(--zemin-koyu);
  color: var(--metin-ters);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Hover yalnızca gerçek hover cihazında ve yalnızca tıklanabilir öğede */
@media (hover: none) {
  .btn:hover, .card:hover, a:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-goster] { opacity: 1 !important; transform: none !important; }
}


.leaflet-control-attribution, .leaflet-control-attribution { display: none; }