*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
  font-weight: 500;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 12% -8%, var(--bg-glow) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-grad-a), var(--bg-grad-b));
  background-attachment: fixed;
  min-height: 100vh;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-ink); }

/* Odak: tasarımdaki gibi 2 px vurgu çizgisi, 3 px boşlukla (klavye kullanıcısı her yerde nerede olduğunu görür) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }

[hidden] { display: none !important; }

::selection { background: var(--accent-soft); color: var(--accent-ink); }
::placeholder { color: var(--ink-400); opacity: 1; }

* { scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

.tnum, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-500); }
.faint { color: var(--ink-400); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }

.icon { flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
