/* Mikrokom önizleme sayfaları: ortak temel. Yaklaşıma özgü stiller her sayfanın kendi <style> bloğunda. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSansVF.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSansItalicVF.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerifItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMonoVF.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Logodan türetilen palet. Lacivert ve bordo marka renkleridir; diğerleri onların tonları. */
  --lacivert: #211c8e;        /* Ana marka rengi (mevcut sitenin düğme rengi). Beyaz üstünde metin olabilir (12,9:1). */
  --lacivert-logo: #2c307b;   /* Logodaki lacivert */
  --lacivert-orta: #4b4fa8;   /* Vurgu, ince çizgi, ikon. Beyaz üstünde metin olabilir (7:1). */
  --lacivert-acik: #c9cbee;   /* Koyu zeminde ikincil metin ve çizgi */
  --lacivert-sis: #eceaf6;    /* Açık yüzey */
  --gece: #0b0a2a;            /* En koyu yüzey (neredeyse siyah lacivert) */
  --gece-2: #15134a;          /* Koyu yüzeyde ikinci katman */

  --bordo: #710f11;           /* Logodaki bordo. Beyaz üstünde metin olabilir (11,8:1). */
  --kirmizi: #c8262b;         /* Canlı vurgu (nokta, çizgi, küçük işaret). Beyaz üstünde metin olabilir (5,6:1); beyaz metin zemini olarak da (5,6:1). */
  --kirmizi-isik: #ef5a4c;    /* Koyu zeminde vurgu */
  --pembe: #e6cbbf;           /* Yelken ışığı; yüzey olarak kullanılır, üstünde metin koyu */
  --pembe-sis: #f6ece6;

  --kagit: #f6f4ef;           /* Sıcak kırık beyaz zemin */
  --beyaz: #ffffff;
  --murekkep: #14132b;        /* Ana metin rengi */
  --gri: #5d5c72;             /* İkincil metin, beyaz ve kağıt üstünde (6,5:1 ve 5,9:1) */
  --cizgi: #e3e2ea;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --odak: 0 0 0 3px var(--beyaz), 0 0 0 6px var(--lacivert-orta);
  --sure-hizli: 160ms;
  --sure: 260ms;
  --egri: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beyaz);
  color: var(--murekkep);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--odak); border-radius: 6px; }

.atla {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--murekkep); color: var(--beyaz); padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.atla:focus { top: 16px; }

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

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

/* Kabuğun bütün sayfalarda ortak küçük kuralları (yazı tipleri, renkler, .gizli, .atla: base.css).
   Sayfa türlerinin dili sayfanın içine eklenir: ortak-ana.css, ortak-ic.css, ortak-fiyat.css. */

/* Çerez bandı ve tercih penceresi (bolumler/_cerez.njk, kabuk/cerez.js): bütün sayfalarda, sayfa türünden bağımsız */
.cerez-bant { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 72rem; margin: 0 auto; padding: 16px 20px; border-radius: 16px; background: var(--gece); color: var(--lacivert-acik); font-size: 13px; line-height: 1.5; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.6); }
.cerez-bant[hidden] { display: none; }
.cerez-bant p { flex: 1 1 32rem; margin: 0; }
.cerez-bant a, .cerez-panel a { color: inherit; text-decoration: underline; }
.cerez-dugmeler { display: flex; flex-wrap: wrap; gap: 8px; }
.cerez-d { min-height: 40px; padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.cerez-d--dolu { border-color: var(--beyaz); background: var(--beyaz); color: var(--lacivert); }
.cerez-d:focus-visible, .cerez-kapat:focus-visible, .cerez-anahtar:focus-visible, .cerez-ac:focus-visible { outline: 2px solid var(--kirmizi-isik); outline-offset: 2px; }
.cerez-panel { width: min(40rem, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 20px 24px 24px; border: 0; border-radius: 18px; background: var(--beyaz); color: var(--murekkep); font-size: 14px; line-height: 1.5; }
.cerez-panel::backdrop { background: rgb(11 10 42 / 0.6); }
.cerez-panel-ust { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cerez-panel h2 { margin: 0; font-size: 20px; }
.cerez-kapat { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lacivert-sis); color: var(--murekkep); font-size: 22px; line-height: 1; cursor: pointer; }
.cerez-kat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid rgb(20 19 43 / 0.1); }
.cerez-kat summary { font-weight: 600; cursor: pointer; }
.cerez-kat details p { margin: 8px 0 0; color: var(--gri); font-size: 13px; }
.cerez-her { font-size: 12px; font-weight: 600; color: var(--lacivert-orta); }
.cerez-anahtar { appearance: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: 999px; background: rgb(20 19 43 / 0.25); cursor: pointer; transition: background 0.15s; }
.cerez-anahtar::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--beyaz); transition: transform 0.15s; }
.cerez-anahtar:checked { background: var(--lacivert); }
.cerez-anahtar:checked::after { transform: translateX(20px); }
.cerez-bag { margin: 4px 0 16px; padding-top: 12px; border-top: 1px solid rgb(20 19 43 / 0.1); }
.cerez-panel .cerez-d { border-color: var(--lacivert); color: var(--lacivert); }
.cerez-panel .cerez-d--dolu { background: var(--lacivert); color: var(--beyaz); }
.cerez-ac { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .cerez-anahtar, .cerez-anahtar::after { transition: none; } }

