/* ==========================================================================
   Desa Demir — Temel: reset, tipografi, yardımcı sınıflar
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

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

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

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

hr {
  border: 0;
  border-top: var(--border-w) solid var(--border);
  margin: 0;
}

::selection {
  background: var(--accent-hi);
  color: var(--on-accent);
}

/* --- Odak: klavye kullanıcısı her zaman nerede olduğunu görür --- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Tipografi rolleri
   -------------------------------------------------------------------------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text-strong);
}

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}

.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: var(--ls-heading);
  font-weight: 700;
}

/* Alt başlık: gövde yazı tipi, başlıkla yarışmaz */
.h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-strong);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.prose p + p {
  margin-top: var(--sp-4);
}
.prose p {
  max-width: 68ch;
  text-wrap: pretty;
}

/* Teknik veri sesi — ölçüler, kalınlıklar, kodlar */
.data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'zero' 1;
  letter-spacing: -0.01em;
}

/* Bölüm etiketi. Sadece bölümün ne olduğunu söyler, süs değildir. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-data);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Lazer kesim, malzemeye önce bir "pierce" (delme) noktasıyla girer, sonra
   lead-in çizgisiyle kontura ulaşır. Bu motif sitenin işaret dili. */
.eyebrow::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 0.4375rem;
  background:
    radial-gradient(circle at 0.21875rem 50%, var(--accent-hi) 0.1875rem, transparent 0.1875rem),
    linear-gradient(to right, var(--accent-hi) 0 100%) no-repeat 0.4375rem 50% / 1.3125rem 1px;
}

.muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Yardımcılar
   -------------------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 999;
  transform: translateY(-120%);
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Hareket: kullanıcı azaltılmış hareket istediyse her şey anında son haline gelir
   -------------------------------------------------------------------------- */
@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;
  }
}

/* --------------------------------------------------------------------------
   Baskı
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .theme-toggle,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
