/* ==========================================================================
   NOVA BALO & DAVET — Temel katman: sıfırlama, tipografi, erişilebilirlik
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;   /* iOS yatay çevirmede metni büyütmesin */
  scroll-behavior: smooth;
  /* Sabit başlık altında kalmasın diye çapa kaydırma boşluğu */
  scroll-padding-top: 6.5rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;          /* yatay kaydırma asla oluşmasın */
  min-height: 100dvh;
}

/* ---------- Medya ---------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Yer tutucu: görsel yüklenene kadar zemin rengi — CLS'i azaltır */
img {
  background-color: rgba(27, 61, 75, 0.06);
  color: transparent;          /* alt metni görsel alanında göstermesin */
}

/* ---------- Form öğeleri ---------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

/* ---------- Başlıklar ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  text-wrap: balance;          /* destekleyen tarayıcıda dengeli satır kırılımı */
  overflow-wrap: break-word;   /* uzun Türkçe sözcükler taşmasın */
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { overflow-wrap: break-word; }

p + p { margin-top: var(--space-4); }

/* ---------- Bağlantılar ---------- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-soft),
              opacity var(--dur-base) var(--ease-soft);
}

/* Gövde metni içindeki bağlantılar altı çizili kalsın (yalnız renkle ayırt etme) */
.prose a,
p > a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--accent-text);
}

ul, ol { padding-inline-start: 1.15rem; }

/* ---------- Odak halkası: her yerde görünür ---------- */
:focus-visible {
  outline: 2px solid var(--c-gold-deep);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Koyu zeminde odak halkası açık altın olsun */
.is-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-gold-soft);
}

/* Fare ile tıklamada halka çıkmasın, klavyede çıksın */
:focus:not(:focus-visible) { outline: none; }

/* ---------- Yalnızca ekran okuyucular için ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* İçeriğe atla bağlantısı — klavye kullanıcıları için */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-5);
  background: var(--c-deep);
  color: var(--c-gold-soft);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Ortak metin yardımcıları ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
  line-height: 1.5;
}

.is-dark .eyebrow { color: var(--c-gold-soft); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: var(--measure);
}

.is-dark .lead { color: var(--fg-on-dark-muted); }

/* İtalik vurgu — referanstaki "roman + italik" karışımı başlık üslubu */
.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/* Sayısal veriler (fiyat, kapasite) için tablo rakamları — hizalama kaymasın */
.tabular { font-variant-numeric: tabular-nums; }

/* Elle çizilmiş his veren alt vurgu — referanstaki altı çizili anahtar ifadeler */
.underline-mark {
  background-image: linear-gradient(
    to right,
    rgba(201, 169, 97, 0.85),
    rgba(201, 169, 97, 0.85));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 2px;
  padding-bottom: 0.06em;
}

.is-dark .underline-mark {
  background-image: linear-gradient(
    to right,
    rgba(224, 200, 142, 0.9),
    rgba(224, 200, 142, 0.9));
}

/* ---------- Seçim rengi ---------- */
::selection {
  background: var(--c-gold);
  color: var(--c-night);
}

/* ---------- Kaydırma çubuğu (destekleyen tarayıcılarda) ---------- */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--c-sea-soft) var(--c-mist);
    scrollbar-width: thin;
  }
}

/* ---------- Baskı ---------- */
@media print {
  .site-header,
  .site-footer nav,
  .to-top,
  .hero__scroll { display: none; }
  body { background: #fff; color: #000; }
}
