/* Temel kurallar, sıfırlama ve erişilebilirlik */

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink-primary);
  background: var(--bg-sun-warm);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  touch-action: manipulation;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--chalk-blue);
  outline-offset: 2px;
}

svg {
  display: block;
}

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

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.math-expr {
  font-family: var(--font-math);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.math-symbol-svg {
  display: inline-block;
  width: 0.92em;
  height: 0.98em;
  vertical-align: -0.12em;
  margin: 0 0.14em;
  flex-shrink: 0;
}

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

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