*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Mobile typography lock: keep the theme's CSS type scale deterministic
     across phones and disable browser text-inflation heuristics. */
  font-size: 16px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body {
  margin: 0;
  color: var(--kg-color-text);
  background: var(--kg-color-surface);
  font-family: var(--kg-font-sans);
  font-size: 16px;
  line-height: var(--kg-leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.kg-overlay-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
input, select, textarea { color: var(--kg-color-text); }
::selection { background: var(--kg-color-ink); color: var(--kg-color-inverse); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--kg-font-display); }

:focus-visible {
  outline: 2px solid var(--kg-color-ink);
  outline-offset: 3px;
}

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

.kg-skip-link {
  position: fixed;
  left: 16px; top: 16px;
  z-index: 10000;
  transform: translateY(-140%);
  background: var(--kg-color-ink);
  color: var(--kg-color-inverse);
  padding: 10px 14px;
}
.kg-skip-link:focus { transform: none; }

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

/* ======================================================================
   0.5.9 — Kılınç global heading language
   Live-site parity: all H1 headings use the brand's italic voice.
   ====================================================================== */
body h1 {
  font-style: italic !important;
}

/* Native touch highlight; keyboard focus and pressed states remain intact. */
html, body, body * { -webkit-tap-highlight-color: transparent !important; }
