/* Tarayıcı farklarını sıfırlar ve temel yazı düzenini kurar. */

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

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

body {
  margin: 0;
  background: var(--renk-zemin);
  color: var(--renk-metin);
  font-family: var(--yazi-govde);
  font-size: var(--boyut-govde);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--yazi-baslik);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--renk-murekkep);
}

p,
blockquote,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

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

:focus-visible {
  outline: 2px solid var(--renk-orman);
  outline-offset: 3px;
  border-radius: 6px;
}

/* hidden özniteliği, bileşenlerdeki display kurallarına her zaman üstün gelir */
[hidden] {
  display: none !important;
}

.ekran-okuyucu {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
