/* ============================================================
   GoldSyntax temel CSS: fontlar, reset, tipografi, odak, tarayıcı yüzeyleri.
   Çalışma anında üçüncü taraf font isteği yok: hepsi self-host (assets/core/fonts).
   url() yolları bu dosyaya göredir; furkan alt alanı CORS ile aynı dosyaları çeker.
   ============================================================ */

/* ---- Fontlar (latin + latin-ext; Türkçe: ç ğ ı İ ö ş ü) ---- */
@font-face { font-family: "Clash Display"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/clash-display-500.woff2") format("woff2"); }
@font-face { font-family: "Clash Display"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/clash-display-600.woff2") format("woff2"); }

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/hanken-grotesk-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Spline Sans Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/spline-sans-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spline Sans Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/spline-sans-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spline Sans Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/spline-sans-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spline Sans Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/spline-sans-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 1rem);   /* sabit header odaklanan/çapa öğeyi örtmez (WCAG 2.4.11) */
  scrollbar-color: var(--line-strong) var(--bg);
  scrollbar-width: thin;
  accent-color: var(--accent);
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--accent);
}
main { position: relative; z-index: var(--z-content); display: block; }
main:focus { outline: none; }
img, picture, video { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; touch-action: manipulation; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* ---- Tipografi ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  overflow-wrap: anywhere;          /* 320px'te uzun kelime taşırmaz; kırpma yok (eski mobil hero hatası) */
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; overflow-wrap: break-word; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.accent { color: var(--accent); }
.num, .tabular { font-variant-numeric: tabular-nums lining-nums; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; font-variant-numeric: tabular-nums; }
::placeholder { color: var(--muted); opacity: 1; }

/* ---- Yerleşim ---- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- "İçeriğe geç" ---- */
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: calc(var(--z-dialog) + 10);
  min-height: var(--target); display: inline-flex; align-items: center; padding: 0 1.25rem;
  border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- Odak halkası: çift halka (spec §11.1) ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid transparent;                                      /* forced-colors'ta görünür kalır */
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);   /* halka, öğenin kendi border-radius'unu izler */
}
@media (forced-colors: active) { :focus-visible { outline-color: CanvasText; } }

/* ---- Tarayıcı yüzeyleri: seçim, kaydırma çubuğu ---- */
::selection { background: var(--accent); color: var(--on-accent); }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); border: 2px solid var(--bg); }
}

/* ---- Hareket: azaltılmış hareket ve hareket düğmesi (kapalı) ----
   Sürekli hareket durur, konum/ölçek geçişleri kalkar; renk ve opaklık geçişleri anlamı taşıdığı için kalır. */
@media (prefers-reduced-motion: reduce) {
  :root { --t-move: 0.01ms; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
html[data-motion="off"] { --t-move: 0.01ms; scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
}
