/* base.css — Reset ve tipografi */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent-strong);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

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

/* Klavye kullanıcıları için "içeriğe geç" linki */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 200;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--color-on-primary);
}

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

/* Kaydırdıkça belirme (js/reveal.js ekler; JS yoksa veya hareket azaltılmışsa hiçbir şey gizlenmez) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s,
    border-color 0.2s;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Yan yana kartlar sırayla gelsin */
.js-reveal .grid > [data-reveal]:nth-child(3n + 2),
.js-reveal .steps > [data-reveal]:nth-child(4n + 2),
.js-reveal .legacy > [data-reveal]:nth-child(2) { transition-delay: 0.06s; }

.js-reveal .grid > [data-reveal]:nth-child(3n + 3),
.js-reveal .steps > [data-reveal]:nth-child(4n + 3),
.js-reveal .legacy > [data-reveal]:nth-child(3) { transition-delay: 0.12s; }

.js-reveal .steps > [data-reveal]:nth-child(4n + 4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
