/* ===========================================================================
 * Temel katman — reset, tipografi, erisilebilirlik
 * ======================================================================== */

@layer reset {

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  -moz-tab-size: 4;
  tab-size: 4;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100svh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }

table { border-collapse: collapse; border-spacing: 0; }

:target { scroll-margin-top: calc(var(--header-h) + var(--s-8)); }

}


@layer base {

/* ---------------------------------------------------------------------------
 * Basliklar — Fraunces. Govde — Geist.
 * ------------------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); line-height: var(--lh-tight); letter-spacing: var(--tr-display); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl);  font-weight: 500; }
h4 { font-size: var(--t-lg);  font-weight: 500; }

h5, h6 {
  font-family: var(--font-body);
  font-size: var(--t-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-eyebrow);
  color: var(--text-faint);
}

p { text-wrap: pretty; }

/* ---------------------------------------------------------------------------
 * Baglantilar — govde metni icindeki baglanti alti cizili; navigasyon degil
 * ------------------------------------------------------------------------ */

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out),
              text-decoration-color var(--dur-fast) var(--ease-out);
}

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

/* ---------------------------------------------------------------------------
 * Odak — klavye kullanicisi icin daima gorunur, fare tiklamasinda degil
 * ------------------------------------------------------------------------ */

:focus { outline: none; }

:focus-visible {
  outline: var(--bw-mark) solid var(--sage-600);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* Koyu zeminlerde odak halkasi kum rengine doner */
.on-dark :focus-visible,
.footer :focus-visible,
.cta-band :focus-visible,
.panel-dark :focus-visible {
  outline-color: var(--sand-400);
}

/* ---------------------------------------------------------------------------
 * Metin secimi
 * ------------------------------------------------------------------------ */

::selection {
  background: var(--sage-200);
  color: var(--sage-950);
}

/* ---------------------------------------------------------------------------
 * Icerige atla baglantisi — sekme sirasindaki ilk oge
 * ------------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: var(--z-toast);
  transform: translateY(-120%);
  padding: var(--s-3) var(--s-5);
  background: var(--sage-900);
  color: var(--sand-200);
  font-size: var(--t-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
 * Ekran okuyucuya ozel
 * ------------------------------------------------------------------------ */

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

/* ---------------------------------------------------------------------------
 * Ikonlar — Phosphor Light sprite'i, currentColor ile renklenir
 * ------------------------------------------------------------------------ */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.22em;
}

.icon--sm { width: 1em;    height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--xl { width: 2rem;   height: 2rem; }

/* ---------------------------------------------------------------------------
 * Zengin metin (blog govdesi, hizmet detayi, hukuki sayfalar)
 * ------------------------------------------------------------------------ */

.prose {
  max-width: var(--measure);
  color: var(--text);
  font-size: var(--t-base);
  line-height: var(--lh-relaxed);
}

.prose > * + *      { margin-block-start: var(--s-5); }
.prose > * + h2     { margin-block-start: var(--s-12); }
.prose > * + h3     { margin-block-start: var(--s-10); }
.prose h2 + *       { margin-block-start: var(--s-4); }
.prose h3 + *       { margin-block-start: var(--s-3); }

.prose h2 {
  font-size: var(--t-xl);
  padding-block-end: var(--s-3);
  border-block-end: var(--border-hair);
}

.prose h3 { font-size: var(--t-lg); }

/* Ilk paragraf spot olarak buyur. ::first-letter KULLANILMAZ —
   fazla dekoratif; olcek farki yeterli. */
.prose > p:first-of-type {
  font-size: var(--t-md);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

.prose ul, .prose ol {
  padding-inline-start: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-inline-start: var(--s-6);
}

.prose li + li { margin-block-start: var(--s-2); }

.prose ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.65em;
  width: 6px; height: 1px;
  background: var(--sage-500);
}

.prose ol { counter-reset: prose-list; }

.prose ol > li {
  counter-increment: prose-list;
  padding-inline-start: var(--s-8);
}

.prose ol > li::before {
  content: counter(prose-list, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  font-family: var(--font-body);
  font-size: var(--t-2xs);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  color: var(--sage-400);
  line-height: 1.9;
}

.prose strong { font-weight: 600; color: var(--text-strong); }

.prose blockquote {
  padding-inline-start: var(--s-6);
  border-inline-start: var(--border-accent);
  font-family: var(--font-display);
  font-size: var(--t-md);
  font-style: italic;
  color: var(--text-muted);
}

.prose hr {
  height: 0;
  margin-block: var(--s-10);
  border: 0;
  border-block-start: var(--border-hair);
}

.prose img { margin-block: var(--s-8); border-radius: var(--r-1); }

.prose table { width: 100%; font-size: var(--t-sm); }
.prose th, .prose td {
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  text-align: start;
  border-block-end: var(--border-hair);
}
.prose th {
  font-size: var(--t-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  color: var(--text-faint);
}

/* Rakamlar hizali olsun — tarih, istatistik, tablo */
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------
 * Yazdirma
 * ------------------------------------------------------------------------ */

@media print {
  .site-header, .site-footer, .cta-band, .cookie-banner,
  .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

}
