/* Fontlar: latin + latin-ext alt kümeleri (unicode-range). Türkçe ğ, ş, İ latin-ext'te; ı, ç, ö, ü latin'de. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-wght-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/jetbrains-mono-latin-500-normal.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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/jetbrains-mono-latin-ext-500-normal.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%; }
body { min-height: 100vh; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* Yüzeyler: renkler, odak ve buton değişkenleri yüzeye göre (R03 §1). Varsayılan açık. */
:root, .surface--light, .surface--ice {
  --surface-bg: var(--nx-white);
  --surface-text: var(--nx-slate-900);
  --surface-muted: var(--nx-slate-700);
  --surface-subtle: var(--nx-slate-500);
  --surface-line: var(--nx-slate-200);
  --surface-raised: var(--nx-white);
  --surface-accent: var(--nx-blue-600);
  --surface-danger: var(--nx-danger);
  --focus: var(--nx-blue-600);
  --btn-primary-bg: var(--nx-blue-600);
  --btn-primary-bg-hover: var(--nx-blue-700);
  --btn-primary-text: var(--nx-white);
}
.surface--ice { --surface-bg: var(--nx-ice-50); --surface-line: var(--nx-slate-300); }
.surface--dark {
  --surface-bg: var(--nx-navy-900);
  --surface-text: var(--nx-on-dark);
  --surface-muted: var(--nx-on-dark-2);
  --surface-subtle: var(--nx-on-dark-2);
  --surface-line: var(--nx-line-dark);
  --surface-raised: var(--nx-navy-800);
  --surface-accent: var(--nx-electric);
  --surface-danger: var(--nx-danger-on-dark);
  --focus: var(--nx-electric);
  --btn-primary-bg: var(--nx-electric);
  --btn-primary-bg-hover: var(--nx-cyan-300);
  --btn-primary-text: var(--nx-ink-950);
}
.surface--ink { --surface-bg: var(--nx-ink-950); }
.surface--light, .surface--ice, .surface--dark { background-color: var(--surface-bg); color: var(--surface-text); }

/* Tipografi */
body {
  font-family: var(--nx-font-sans);
  font-size: var(--nx-fs-body);
  font-weight: 400;
  background: var(--surface-bg);
  color: var(--surface-text);
}
h1, h2, h3, h4 { color: inherit; text-wrap: balance; }
h1, .h1 { font-size: var(--nx-fs-h1); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
h2, .h2 { font-size: var(--nx-fs-h2); line-height: 1.2; font-weight: 650; letter-spacing: -0.005em; }
h3, .h3 { font-size: var(--nx-fs-h3); line-height: 1.3; font-weight: 600; }
h4, .h4 { font-size: var(--nx-fs-body); line-height: 1.4; font-weight: 600; }
.display { font-size: var(--nx-fs-display); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: var(--nx-fs-lead); line-height: 1.6; color: var(--surface-muted); max-width: var(--nx-measure); }
.small, small { font-size: var(--nx-fs-small); line-height: 1.5; font-weight: 500; }
.eyebrow {
  font-family: var(--nx-font-mono);
  font-size: var(--nx-fs-eyebrow);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface-accent);
}
.mono { font-family: var(--nx-font-mono); font-weight: 500; }
p, li { text-wrap: pretty; }

.prose { max-width: var(--nx-measure); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-left: 3px solid var(--surface-accent); padding-left: var(--nx-space-4); color: var(--surface-muted); }
.prose code { font-family: var(--nx-font-mono); font-size: 0.9em; }

a { color: var(--surface-accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Odak halkası (R07 §8): yüzeye göre 3:1 üzeri. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* İçeriğe atla */
.skip-link {
  position: absolute;
  left: var(--nx-space-4);
  top: var(--nx-space-2);
  z-index: 1000;
  padding: var(--nx-space-3) var(--nx-space-4);
  background: var(--nx-navy-900);
  color: var(--nx-on-dark);
  border-radius: var(--nx-radius-control);
  transform: translateY(-200%);
  transition: transform var(--nx-dur-hover) var(--nx-ease);
  --focus: var(--nx-electric);
}
.skip-link:focus { transform: translateY(0); }

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

::selection { background: var(--nx-electric); color: var(--nx-ink-950); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
