/* base.css — yazi tipi, degiskenler, sifirlama, tipografi */

/* ---------- Yazi tipi ----------
   Inter degisken surumu kendi sunucumuzda barindirilir; CDN cagrisi yoktur.
   Iki alt kume: latin (temel) ve latin-ext (ğ ı ş İ Ğ Ş gibi Turkce harfler).
   Toplam 58 KB, 400-800 arasi tum kalinliklari tasir.
   Lisans: SIL Open Font License 1.1 */

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- Renk ----------
     Lacivert ve mavi degerleri logodan gelir; ara tonlar derinlik icin eklendi.
     Camgobegi yalnizca gradyan ucu ve parilti olarak kullanilir, metinde degil. */

  --navy-950: #051624;
  --navy-900: #0A2540;
  --navy-800: #0E3152;
  --navy-700: #123A5C;
  --navy-600: #1A4A70;

  --blue-700: #12558A;
  --blue-600: #1B6CA8;
  --blue-500: #2E86C1;
  --blue-400: #4FA3D9;
  --blue-100: #D9E9F6;
  --blue-50:  #F0F6FB;

  --cyan-400: #2ED3E9;
  --cyan-300: #7BE7F4;

  --ink-900:  #0E1419;
  --ink-700:  #33404D;
  --ink-600:  #5A6673;
  --ink-400:  #8A96A3;
  --ink-200:  #E1E7ED;
  --ink-100:  #EFF3F7;
  --paper:    #FFFFFF;
  --paper-2:  #F8FAFC;

  --accent:   #E8A33D;
  --accent-d: #9A6A15;
  --ok:       #1E8E5A;
  --danger:   #B3261E;

  /* ---------- Gradyanlar ---------- */
  --grad-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--cyan-400) 100%);
  --grad-deep:  linear-gradient(165deg, #071D33 0%, #0A2540 40%, #123A5C 100%);
  --grad-line:  linear-gradient(90deg, transparent, var(--blue-400), var(--cyan-400), transparent);

  /* ---------- Tipografi ---------- */
  --font-sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* ---------- Olcu ---------- */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 104px;
  --measure: 68ch;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* ---------- Golge ----------
     Iki katmanli: yakin golge kenari tanimlar, uzak golge yuzeyi kaldirir. */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05), 0 1px 1px rgba(10, 37, 64, 0.04);
  --shadow:    0 2px 4px rgba(10, 37, 64, 0.04), 0 4px 14px rgba(10, 37, 64, 0.07);
  --shadow-lg: 0 4px 8px rgba(10, 37, 64, 0.04), 0 14px 36px rgba(10, 37, 64, 0.10);
  --shadow-xl: 0 8px 16px rgba(10, 37, 64, 0.05), 0 28px 64px rgba(10, 37, 64, 0.15);
  --shadow-brand: 0 6px 22px rgba(27, 108, 168, 0.30);

  /* ---------- Hareket ---------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.22s;
  --dur-slow: 0.55s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Yapiskan baslik, ic baglantiyla gelinen basligi ortmesin. */
  scroll-padding-top: 88px;
  /* Site yalnizca acik temada calisir; tarayici form ogelerini
     karanlik temaya cevirip okunmaz hale getirmesin. */
  color-scheme: light;
}

/* Hareketi azalt tercihi her seyi ezer. */
@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss03" 1;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.033em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  letter-spacing: -0.027em;
  font-weight: 750;
}
h3 { font-size: clamp(1.15rem, 2vw, 1.375rem); line-height: 1.32; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(27, 108, 168, 0.35);
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { color: var(--navy-900); text-decoration-color: currentColor; }

strong { font-weight: 700; color: var(--navy-900); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
li:last-child { margin-bottom: 0; }

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

hr {
  border: 0;
  height: 1px;
  background: var(--grad-line);
  opacity: 0.45;
  margin: 2.5rem 0;
}

small { font-size: 0.875rem; }

code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--blue-50);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

blockquote { margin: 0; }

address { font-style: normal; }

table { border-collapse: collapse; width: 100%; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }

button { font: inherit; color: inherit; }

/* Dokunmatikte cift dokunma yakinlastirmasini ve gri parlamayi kapatir;
   dokunma tepkisi hover/active kurallariyla verilir. */
a, button, summary, [role="button"], label, input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(27, 108, 168, 0.14);
}

::selection { background: rgba(46, 134, 193, 0.22); color: var(--navy-900); }

/* Odak halkasi */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Ekran okuyucu */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: -0.28em;
}

.icon--sm { width: 1.05rem; height: 1.05rem; stroke-width: 1.9; }

/* ---------- Kaydirinca beliren ogeler ----------
   JS kapaliysa .reveal hicbir sey yapmaz, icerik dogrudan gorunur.
   ui.js yalnizca <html> uzerine .js sinifini ekledikten sonra devreye girer. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: 60px; }
  body { font-size: 16px; }
}
