/* ==========================================================================
   Delta Motor — Temel: sifirlama, tipografi, paylasilan primitifler
   Ozgullugu dusuk tut. Bosluk kurallari burada element seciciye yazilmaz;
   bolum bosluklari layout.css icindeki sinif seciciler ile verilir.
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--c-blue);
  color: var(--c-on-brand);
}

/* --- Baslik olcegi ------------------------------------------------------ */

.d1, .d2, .d3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' var(--wdth-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  text-wrap: balance;
  /* Tek basina bir satira sigmayan uzun kelime (Turkce'de sik: "RANDEVUNUZDAN",
     "DEGERLENDIRILMESI") 390px'te kapsayicidan tasar ve SAYFANIN TAMAMINI
     yatay kaydirir. Olculdu: 382px kelime / 350px kapsayici = 11px tasma.
     `text-wrap: balance` bunu engellemez, yalnizca satirlari esitler. */
  overflow-wrap: break-word;
}

.d1 { font-size: var(--t-4xl); }
.d2 { font-size: var(--t-3xl); }
.d3 { font-size: var(--t-2xl); }

.h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' var(--wdth-tight);
  font-size: var(--t-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
}

.h5 {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' var(--wdth-tight);
  font-size: var(--t-lg);
  line-height: var(--lh-snug);
}

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

.lead {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--c-ink-mute);
  text-wrap: pretty;
}

.body {
  color: var(--c-ink-mute);
  text-wrap: pretty;
}

.body-tight { line-height: 1.5; }

/* Mono etiket — bolum basliklarinin ustunde, sirt cizgisiyle */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--c-red);
  flex: none;
}

.label--plain::before { display: none; }
.label--blue::before { background: var(--c-blue); }

/* Sayilar her yerde mono ve tabular — km, saat, lift no */
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.ink-blue { color: var(--c-blue); }
.ink-red  { color: var(--c-red); }

/* Dikey yigin — etiket + baslik + metin gruplari icin tek bosluk kurali */
.stack {
  display: grid;
  align-content: start;
  gap: var(--s-4);
}

.stack--sm { gap: var(--s-3); }
.stack--lg { gap: var(--s-5); }

/* --- Baglanti ----------------------------------------------------------- */

.link {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--d-fast) var(--e-out);
}

.link:hover { color: var(--c-blue-deep); }

/* Ok baglantisi — bolum sonu yonlendirmeleri */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--c-line-strong);
  transition: color var(--d-fast) var(--e-out),
              border-color var(--d-fast) var(--e-out);
}

.arrow-link::after {
  content: '\2192';
  transition: transform var(--d-base) var(--e-out);
}

.arrow-link:hover {
  color: var(--c-blue);
  border-color: var(--c-blue);
}

.arrow-link:hover::after { transform: translateX(0.35rem); }

/* --- Erisilebilirlik ---------------------------------------------------- */

.sr-only {
  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;
  top: var(--s-3);
  left: var(--s-3);
  z-index: var(--z-overlay);
  padding: var(--s-3) var(--s-5);
  background: var(--c-invert-bg);
  color: var(--c-invert-fg);
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform var(--d-base) var(--e-out);
}

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