/* --- Reset + kök ayarlar --- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.has-lenis { scroll-behavior: auto; }
html.has-lenis body { overscroll-behavior-y: none; }

:target { scroll-margin-top: 4rem; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Yatay taşma sigortası */
body { overflow-x: hidden; }

[hidden] { display: none !important; }

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

svg { fill: currentColor; }

img,
video { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: inherit; }

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
.hero :focus-visible,
.header:not(.is-stuck) :focus-visible,
.block :focus-visible,
.bento :focus-visible,
.on-dark :focus-visible {
  outline-color: var(--c-sand);
  box-shadow: 0 0 0 3px rgba(var(--c-ink-rgb), 0.7);
}

/* --- Ekran okuyucu --- */
.visually-hidden,
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- İçeriğe atla --- */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--gutter);
  z-index: calc(var(--z-menu) + 10);
  transform: translateY(-120%);
  padding: var(--s-3) var(--s-5);
  background: var(--c-navy);
  color: var(--c-paper);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }
.skip-link:focus { transform: translateY(0); }

/* --- Seçim --- */
::selection {
  background: var(--c-navy);
  color: var(--c-paper);
}

/* --- Azaltılmış hareket --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
