/* Tasarım belirteçleri — DESIGN.md ile birebir. Değer değiştirirken önce DESIGN.md'yi güncelle. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Renk */
  --kagit: #F4EFE4;
  --kagit-2: #EAE3D3;
  --kobalt: #2433D6;
  --murekkep: #0F1B4D;
  --kobalt-acik: #AEB6F2;
  --kivilcim: #E8442E;
  --cam: rgba(244, 239, 228, 0.62);

  /* Yazı aileleri */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Newsreader", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* Kenar ve aralık */
  --page-margin: clamp(1rem, 3.33vw, 3rem);
  --gutter: clamp(1rem, 1.67vw, 1.5rem);
  --max: 1440px;

  /* Yazı ölçeği (akışkan; üst sınırlar DESIGN.md YAML'ındaki değerler) */
  --t-display-xl: clamp(4.25rem, calc((100vw - 2 * var(--page-margin)) / 6.95), 12.0625rem);
  --t-display-l: clamp(3.5rem, 9vw, 8.5rem);
  --t-numeral: clamp(5rem, 14vw, 12rem);
  --t-heading: clamp(1.875rem, 2.6vw, 2.5rem);
  --t-lede: clamp(1.625rem, 3vw, 2.75rem);
  --t-stat: clamp(2.75rem, 5vw, 4.5rem);
  --t-body: 1.125rem;
  --t-body-s: 1rem;
  --t-mono-label: 0.75rem;
  --t-mono-text: 0.8125rem;

  /* Boşluk */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 192px;

  /* Şekil */
  --notch: 6px;
  --rounded-pill: 999px;

  /* Hareket */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 600ms;
  --dur-5: 900ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
    --dur-5: 0ms;
  }
}
