/* ==========================================================================
   Stüdyo Harmoni — tema: token'lar, yazı tipleri, temel öğeler, tipografi.
   Yön: docs/design/tasarim-yonu.md ("galeri duvarı": beyaz duvar, siyah yazı, fotoğraf tek renk kaynağı, zeytin vurgu).
   Sayfa/bileşen dosyalarında ham hex/px yerine bu token'lar kullanılır.
   ========================================================================== */

/* ---------- Yazı tipleri (yerel, woff2, font-display: swap) ----------
   Kaynak: Google Fonts deposu (SIL OFL 1.1). fontTools ile Latin + Türkçe (ç ğ ı İ ö ş ü, ₺) alt kümesine indirildi:
   Newsreader düz → opsz ekseni açık (6–72), ağırlık 400 sabit; Newsreader italik → opsz 36, ağırlık 370 (yalnız başlık vurguları);
   Hanken Grotesk → ağırlık ekseni 400–700. Toplam ≈ 105 KB (önceki latin + latin-ext dosyaları ≈ 375 KB). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-tr-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/newsreader-tr-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-tr.woff2") format("woff2-variations"), url("/fonts/hanken-grotesk-tr.woff2") format("woff2");
}
/* Yedek yazı tiplerinin ölçüleri asıla yaklaştırılır → yazı tipi gelince satır kayması (CLS) olmaz. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Segoe UI"), local("Arial"); size-adjust: 97%; ascent-override: 100%; descent-override: 28%; line-gap-override: 0%; }

/* ---------- Token'lar ---------- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-soft: #F3F5EF;
  --color-ink: #15171A;
  --color-text: #3D4247;
  --color-muted: #636A72; /* #6F767E soft zeminde (#F3F5EF) 4,18:1 idi → AA için koyulaştırıldı (4,99:1) */
  --color-line: #E3E6DF;
  --color-accent: #5C6B3C;
  --color-accent-ink: #FFFFFF;
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 14%, #FFFFFF);
  --color-accent-strong: color-mix(in srgb, var(--color-accent) 82%, #000000);
  --color-dark: #101214;
  --color-dark-line: rgb(255 255 255 / 0.12);
  --color-dark-text: rgb(255 255 255 / 0.72);
  --color-scrim: rgb(16 18 20 / 0.62);
  --color-error: #A33A2B;
  --color-success: #3F6B3A;

  --font-display: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --font-body: "Hanken Grotesk", "Hanken Fallback", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --space-section: clamp(72px, 10vw, 150px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --display-s: clamp(1.45rem, 1.1rem + 1vw, 1.75rem);
  --display-m: clamp(1.95rem, 1.35rem + 2.2vw, 2.95rem);
  --display-l: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem);
  --display-xl: clamp(2.6rem, 1.3rem + 4.8vw, 5.1rem);

  --measure: 62ch;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 0.9s;
  --shadow-float: 0 18px 50px -24px rgb(21 23 26 / 0.35);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--color-ink); font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

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

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--color-ink); color: #fff; border-radius: var(--radius-pill); transition: top .2s; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--soft { background: var(--color-bg-soft); }
.section--tight { padding-block: calc(var(--space-section) * .6); }

/* ---------- Tipografi ---------- */
.display-xl { font-size: var(--display-xl); line-height: 1.02; letter-spacing: -0.025em; }
.display-l { font-size: var(--display-l); line-height: 1.05; letter-spacing: -0.02em; }
.display-m { font-size: var(--display-m); line-height: 1.1; }
.display-s { font-size: var(--display-s); line-height: 1.2; }
.display-xl em, .display-l em, .display-m em, .display-s em { font-weight: 360; letter-spacing: -0.01em; }

/* Bölüm etiketi: büyük harf + harf aralığı YOK → kısa çizgi + italik serif küçük yazı. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.3; color: var(--color-muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.lead { font-size: var(--text-lg); color: var(--color-text); max-width: var(--measure); }
.muted { color: var(--color-muted); }

/* Zengin metin (panelden gelen temizlenmiş HTML) */
.prose { max-width: 68ch; color: var(--color-text); font-size: var(--text-base); line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--display-s); margin-top: 2.1em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--color-accent); }
.prose strong { color: var(--color-ink); font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--color-accent); padding: .2em 0 .2em 1.2em; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--color-ink); }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose figure figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: .5em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--color-line); padding: .6em .4em; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--color-line); margin-block: 2em; }

/* ---------- Simge ---------- */
.icon { flex: none; }
