/* ============================================================
   BASE — reset, temel tipografi, semantic öğe stilleri
   ============================================================ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  line-height: var(--leading-tight);
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-lg);
}

p {
  margin: 0;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  padding-left: var(--space-5);
}

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

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

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--bg-active);
  color: var(--text-heading);
}

/* İnce, zarif kaydırma çubukları (sidebar ve toc için) */
.scroll-slim {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.scroll-slim::-webkit-scrollbar {
  width: 6px;
}

.scroll-slim::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: var(--radius-pill);
}

.scroll-slim::-webkit-scrollbar-track {
  background: transparent;
}

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