/* Okka Tedarik · temel stiller: sıfırlama, tipografi, yerleşim yardımcıları.
 * Ham renk/ölçü yok — her değer tokens.css'ten gelir. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-primary); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-hover); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
hr { border: 0; border-top: var(--rule); margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* Odak: anında görünür, animasyonsuz */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Başlıklar (her zaman dik/roman) ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: var(--leading-tight);
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h2, .h2 { font-size: var(--text-3xl); }
h3, .h3 { font-size: var(--text-2xl); font-weight: 600; line-height: var(--leading-snug); }
h4, .h4 { font-size: var(--text-xl); font-weight: 600; line-height: var(--leading-snug); }

.lead { font-size: var(--text-lg); color: var(--color-ink-2); max-width: var(--measure); }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2); }

/* ---------- Yerleşim ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tint { background: var(--color-paper-2); border-block: var(--rule); }
.section--tight { padding-block: var(--space-8); }
.stack > * + * { margin-top: var(--stack, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, var(--space-3)); align-items: center; }

/* Bölüm başlığı: başlık + sağda "tümü" bağlantısı; mobilde alt alta */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-bottom: var(--space-6);
}
.section-head > :first-child { min-width: 0; flex: 1 1 20rem; }
.section-head p { margin-top: var(--space-2); color: var(--color-muted); max-width: 52ch; }

.visually-hidden {
  position: absolute !important;
  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-2); top: -100px;
  z-index: 100;
  background: var(--color-ink); color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-2); color: var(--color-on-primary); }

.icon { width: 1.5rem; height: 1.5rem; }
.icon--sm { width: 1.25rem; height: 1.25rem; }
.icon--xs { width: 1rem; height: 1rem; }

/* Ekran okuyucu için canlı bölge (listeye eklendi vb.) */
.live { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
