/* ==========================================================================
   Lumen Arts Co. — Base elements
   ========================================================================== */

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* Sayfa arka planında çok hafif, statik bir ışık dokusu.
   İki katman: renkli ışık meshi + sinematik film greni. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1300px 680px at 82% -12%, rgba(var(--accent-rgb), .08), transparent 60%),
    radial-gradient(1000px 620px at -6% 8%, rgba(200, 150, 80, .05), transparent 58%),
    radial-gradient(800px 800px at 50% 120%, rgba(var(--foreground-rgb), .025), transparent 60%);
}

/* Film greni — çok düşük opaklık, premium sinematik doku.
   SVG gürültüsü data-URI olarak gömülü; harici istek yok. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Headings --------------------------------------------------------
   Büyük ifadeler (h1/h2) yüksek kontrastlı serif; küçük başlıklar (h3–h6)
   temiz grotesk. Editoryal hiyerarşi: serifi büyük anlar için sakla. */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
}

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

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.01em;
}

h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Başlık etiketi olmayan ama serif display ile gösterilecek editoryal öğeler */
.stat__value,
.site-footer__slogan,
.error-page__code,
.next-project__title,
.cta-panel__title,
.featured-post__title,
.hero__title {
  font-family: var(--font-display);
}

p { max-width: var(--measure); }

strong, b { font-weight: 700; color: var(--foreground); }

small { font-size: var(--fs-small); }

/* --- Links ----------------------------------------------------------- */
a {
  color: inherit;
  transition: color var(--dur-micro) var(--ease-out);
}

a:hover { color: var(--accent); }

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent-line);
}

.text-link:hover { text-decoration-color: var(--accent); }

/* --- Lists ----------------------------------------------------------- */
ul, ol { padding-left: 1.15em; }
li { margin-bottom: var(--space-2); }

/* --- Focus ----------------------------------------------------------- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* --- Selection ------------------------------------------------------- */
::selection {
  background: var(--accent);
  color: var(--background);
}

/* --- Scrollbar ------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-pill);
  border: 3px solid var(--background);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* --- Utilities ------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur-micro) var(--ease-out);
}

.skip-link:focus-visible { top: var(--space-4); color: var(--background); }

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow--plain::before { display: none; }

/* Ölçüsü sabit medya kutusu — layout shift önler */
.ratio {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.ratio > img,
.ratio > video,
.ratio > iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-3x2  { aspect-ratio: 3 / 2; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-3x4  { aspect-ratio: 3 / 4; }

hr.rule {
  border-top: 1px solid var(--border);
  margin: var(--space-7) 0;
  opacity: 1;
}
