/* Temel sıfırlama, tipografi ve paylaşılan yardımcılar. Her etkileşim hedefi en az 44px. */

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

html {
  min-width: 320px;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

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

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Fraunces büyük puntolarda harfleri açıyor; ana başlıklarda hafif negatif
   izleme Türkçe karakterlerle birlikte dergi mizanpajına yaklaştırır. */
h1 {
  letter-spacing: -0.025em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--bg-surface-soft);
  font-family: var(--font-mono);
  font-size: 0.72em;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  background: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Erişilebilirlik tercihleri ---- */

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

@media (forced-colors: active) {
  .nav-tab[aria-pressed="true"],
  .choice-btn.selected,
  .choice-btn:has(input:checked),
  .choice-button.is-correct,
  .choice-button.is-wrong {
    border: 3px solid CanvasText;
  }
}
