/* ==========================================================================
   Base — reset, tipografi temeli, erişilebilirlik
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; }

/* Sıkı harf aralığı Latin harfler içindir; Devanagari, Çince ve Japoncada harfler birbirine girer */
:lang(hi) :is(h1, h2, h3, h4), :lang(zh) :is(h1, h2, h3, h4), :lang(ja) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.25; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* Tema: bağlantılar metin rengindedir; gövde metninde altı çizilir,
   menü/düğme gibi bileşenler çizgiyi kendi kurallarıyla kaldırır. */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: opacity var(--duration-fast) var(--ease);
}
a:hover { opacity: 0.7; }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

code, pre { font-family: var(--font-mono); font-size: 0.9em; }

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

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Yardımcı sınıflar / Utilities ------------------------------------------ */
.u-muted     { color: var(--color-text-muted); }
.u-center    { text-align: center; }
.u-mt-0      { margin-top: 0; }
.u-mb-0      { margin-bottom: 0; }
.u-mt-3      { margin-top: var(--space-3); }
.u-mt-5      { margin-top: var(--space-5); }
.u-mt-6      { margin-top: var(--space-6); }
.u-text-sm   { font-size: var(--text-sm); }
.u-lead      { font-size: var(--text-lg); color: var(--color-text-muted); }
.u-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-overlay);
  background: var(--color-primary);
  color: var(--color-text-on-brand);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: top var(--duration-base) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
