/* Tum template'lerin paylastigi taban.
   Renk ve tipografi degiskenleri her sitede varyanttan enjekte edilir;
   burada yalnizca YAPISAL degerler var. design-dna/principles.md sartname. */

:root {
  /* Akiskan tipografi olcegi (320px -> 1600px) */
  --step--1: clamp(0.83rem, 0.80rem + 0.16vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.24vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.11rem + 0.44vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.29rem + 0.75vw, 2.00rem);
  --step-3:  clamp(1.73rem, 1.49rem + 1.20vw, 2.66rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.55rem);
  --step-5:  clamp(2.49rem, 1.93rem + 2.79vw, 4.73rem);
  --display: clamp(3.00rem, 1.20rem + 9.00vw, 11.00rem);
  --mega:    clamp(4.00rem, 0.50rem + 17.5vw, 22.00rem);

  /* Bosluk: tek deger degil, tipografik ritim */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 40px;  --sp-7: 64px;  --sp-8: 104px; --sp-9: 168px;

  --bolum-y: clamp(6rem, 12vw, 14rem);
  --kenar:   clamp(1.25rem, 5vw, 7.5rem);
  --olcu:    34rem;               /* govde satiri 62-72ch */
  --kap:     1520px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-govde);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; font-weight: inherit; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------ tipografi */

.display {
  font-family: var(--f-display);
  font-size: var(--display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
  max-width: 100%;
}

.baslik-2 {
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.baslik-3 {
  font-family: var(--f-display);
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.etiket {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
}

.govde { max-width: var(--olcu); color: var(--muted); }
.sayi  { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- duzen */

.kap {
  width: 100%;
  max-width: var(--kap);
  margin-inline: auto;
  padding-inline: var(--kenar);
}

.bolum { padding-block: var(--bolum-y); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ------------------------------------------------------------- yuzeyler */

.gorsel-sar { position: relative; overflow: hidden; background: var(--paper-2); }

.gorsel-sar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Farkli kaynaklardan gelen isletme fotograflarini tek dile sokar */
  filter: sepia(0.12) saturate(0.9) contrast(1.06);
}

/* Grain: en yuksek getirili tek katman. 0.03-0.06 arasi, fazlasi kirli gorunur. */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- baglanti */

a { color: inherit; text-decoration: none; }

.link-alti {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 400ms var(--ease-quart);
}

@media (hover: hover) and (pointer: fine) {
  .link-alti:hover { background-size: 100% 1px; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- butonlar */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-govde);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out);
}

.cta:active { transform: scale(0.97); }

.cta--cizgi { background: transparent; color: var(--ink); border-color: var(--rule); }

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
}

/* -------------------------------------------------------- mobil CTA bar */

.mobil-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: none;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
}

.mobil-bar a {
  flex: 1;
  padding: 15px 8px;
  text-align: center;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobil-bar a.vurgu { background: var(--ink); color: var(--paper); }

@media (max-width: 780px) {
  .mobil-bar { display: flex; }
  body { padding-bottom: 52px; }
}

/* ---------------------------------------------------------------- motion */

/* CLS koruması: reveal baslangici CSS'te, sadece JS varsa gizle */
html.js .reveal { opacity: 0; }
html.js .satir-ic { transform: translateY(110%); }

.satir { display: block; overflow: hidden; }
.satir-ic { display: block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .satir-ic { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
