/* =========================================================================
   epokta — tarih, grafiklerle
   Tek tema: koyu, editoryal. Grafik yüzeyi #14120f üzerinde doğrulanmıştır.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* yüzeyler */
  --page: #0f0e0c;
  --surface: #14120f;
  --surface-2: #1a1713;
  --surface-3: #221e18;

  /* mürekkep */
  --ink: #f4efe4;
  --ink-2: #b8b1a2;
  --muted: #8a8478;

  /* vurgu (yalnızca arayüz: çizgiler, numaralar, bağlantılar) */
  --gold: #d9a441;
  --gold-dim: #8a6a2c;

  /* grafik kroması */
  --grid: #262320;
  --baseline: #38332c;
  --rule: #2a2620;
  --ring: rgba(244, 239, 228, 0.10);

  /* seri renkleri — doğrulanmış sıra (koyu zemin) */
  --series-1: #d95926;
  --series-2: #3987e5;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-off: #57524a;

  /* tipografi */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ölçü */
  --w: 1120px;
  --w-wide: 1320px;
  --r: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: #eab95c; }

::selection { background: var(--gold-dim); color: #fff; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- üst bar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(15, 14, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

/* uzun menü (İngilizce başlıklar daha geniş) dil düğmesini taşırmasın */
.topbar__inner > nav {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
}

.navlist {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.navlist::-webkit-scrollbar { display: none; }

.navlist a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r);
}
.navlist a:hover { color: var(--ink); background: var(--surface-2); }
.navlist a[aria-current="true"] { color: var(--gold); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--gold);
}

/* dil değiştirici */

.langswitch {
  display: flex;
  flex: none;
  gap: 1px;
  margin-left: 18px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.langswitch button {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border: none;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.langswitch button:hover { color: var(--ink); background: var(--surface-2); }
.langswitch button[aria-pressed="true"] { color: var(--page); background: var(--gold); }

/* ------------------------------------------------------------ mobil menü */

/* Düğme core.js’te üretilir; geniş ekranda gizlidir. Üç çizgi tek bir
   span’den gelir: gövde ortadaki çizgi, ::before ve ::after diğer ikisi. */

.menubtn {
  display: none;
  flex: none;
  width: 38px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.menubtn:hover { color: var(--ink); background: var(--surface-2); }

.menubtn__cizgi {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
}
.menubtn__cizgi::before,
.menubtn__cizgi::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 0.18s ease;
}
.menubtn__cizgi::before { top: -5px; }
.menubtn__cizgi::after { top: 5px; }

/* açıkken çarpıya döner */
.topbar[data-menu="acik"] .menubtn { color: var(--ink); }
.topbar[data-menu="acik"] .menubtn__cizgi { background: transparent; }
.topbar[data-menu="acik"] .menubtn__cizgi::before { transform: translateY(5px) rotate(45deg); }
.topbar[data-menu="acik"] .menubtn__cizgi::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menubtn { display: block; }

  /* liste, üst barın altına açılan panele dönüşür */
  .topbar__inner > nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    /* panel opak: altındaki metin okunurluğu bozuyordu */
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transition: max-height 0.22s ease, visibility 0.22s;
  }
  .topbar[data-menu="acik"] .topbar__inner > nav {
    max-height: min(70vh, 460px);
    visibility: visible;
    overflow-y: auto;
  }

  .topbar__inner { gap: 12px; }
  .langswitch { margin-left: auto; }

  .navlist {
    flex-direction: column;
    gap: 0;
    padding: 4px 24px 14px;
    overflow: visible;
  }
  .navlist li + li { border-top: 1px solid var(--rule); }
  .navlist a { padding: 13px 4px; font-size: 14px; }
  .navlist a:hover { background: transparent; }
}

/* ---------------------------------------------------------------- kabuk */

main { padding-top: 53px; }

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--wide { max-width: var(--w-wide); }

section[id] { scroll-margin-top: 70px; }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(60px, 12vh, 130px) 0 70px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 320px;
  background: radial-gradient(58% 100% at 50% 100%, rgba(217, 89, 38, 0.13), transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.hero__dates {
  font-family: var(--sans);
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 0.34em;
  color: var(--ink-2);
  margin: 0 0 30px;
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 25px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 44px;
}

.hero__ribbon { margin-top: 8px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.hero__meta b {
  display: block;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------- bölümler */

.section { padding: 90px 0; border-bottom: 1px solid var(--rule); }
.section--tight { padding: 64px 0; }

.section__head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 26px;
  margin-bottom: 52px;
}

.section__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.14em;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  padding-top: 8px;
}

.section__lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 66ch;
  margin: 0;
}

.section__years {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .section__head { grid-template-columns: 1fr; gap: 14px; }
  .section__num { border-top: none; padding-top: 0; }
}

/* ---------------------------------------------------------------- ızgara */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--sidebar { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- panel */

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px 24px 20px;
}
.panel--flush { padding-bottom: 12px; }

.panel__title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--ink);
}

.panel__sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 70ch;
}

.panel__note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ------------------------------------------------------------ istatistik */

.stats { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stats--6 { grid-template-columns: repeat(6, 1fr); }

.stat { background: var(--surface); padding: 22px 20px; }

.stat__label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  /* iki satıra taşan etiketler değerleri kaydırmasın */
  min-height: 2.8em;
}

.stat__value {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.stat__value small {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  margin-left: 6px;
  letter-spacing: 0;
}

.stat__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 1000px) { .stats--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .stats--3, .stats--4, .stats--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .stats--3, .stats--4, .stats--6 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- kahraman sayı */

.hero-figure {
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.hero-figure em {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}

/* --------------------------------------------------------------- grafik */

.figure { margin: 0; }

.figure__chart { width: 100%; }
.figure__chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.figure__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

figcaption {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1 1 260px;
}

.tablebtn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 6px 12px;
  cursor: pointer;
}
.tablebtn:hover { color: var(--ink); border-color: var(--baseline); background: var(--surface-2); }

.datatable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.datatable[hidden] { display: none; }
.datatable caption { text-align: left; color: var(--muted); font-size: 12.5px; padding-bottom: 8px; }
.datatable th,
.datatable td { text-align: left; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); }
.datatable thead th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.datatable tbody th { color: var(--ink); font-weight: 500; font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.datatable td { color: var(--ink-2); }
.datatable .num { text-align: right; }

/* efsane */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: none;
}

/* grafik içi metin sınıfları (SVG) */

.ax-label { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.ax-label--strong { fill: var(--ink-2); }
.mark-label { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.mark-label--lead { fill: var(--ink); font-weight: 600; }
.gridline { stroke: var(--grid); stroke-width: 1; }
.baseline { stroke: var(--baseline); stroke-width: 1; }

.hit { fill: transparent; cursor: default; }

/* ----------------------------------------------------------------- şerit */

.ribbon { width: 100%; }
.ribbon svg { display: block; width: 100%; height: auto; overflow: visible; }

/* -------------------------------------------------------- zaman çizgisi */

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }

.timeline::before {
  content: "";
  position: absolute;
  left: 139px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--rule);
}

.tl {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0 40px;
  padding: 0 0 34px;
}

.tl__date {
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.tl__body { position: relative; }

/* nokta, dikey cetvelin (139,5px) tam üstüne oturur */
.tl__body::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--series-off);
  box-shadow: 0 0 0 3px var(--page);
}

.tl--key .tl__body::before {
  background: var(--series-1);
  width: 11px;
  height: 11px;
  left: -26px;
  top: 6px;
}

.tl__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}
.tl--key .tl__title { color: var(--ink); }

.tl__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 62ch;
}

.tl__era {
  grid-column: 1 / -1;
  margin: 26px 0 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.timeline > .era-head:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.era-head__name {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.era-head__span {
  font-family: var(--serif);
  font-size: 27px;
  margin: 0 0 6px;
  color: var(--ink);
}
.era-head__note { font-size: 14.5px; color: var(--muted); margin: 0; max-width: 60ch; }

@media (max-width: 720px) {
  .timeline::before { left: 3px; }
  .tl { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .tl__date { text-align: left; }
  .tl__body::before { left: -26px; top: 6px; }
  .tl--key .tl__body::before { left: -28px; top: 4px; }
  .tl__era { padding-left: 0; }
}

/* ----------------------------------------------------------------- alıntı */

.quote {
  margin: 0;
  padding: 30px 0 0;
  border-top: 2px solid var(--gold);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 30ch;
}
.quote footer { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------- listeler */

.plainlist { margin: 0; padding: 0; list-style: none; }
.plainlist li {
  display: flex;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--ink-2);
}
.plainlist li:last-child { border-bottom: none; }
.plainlist b {
  flex: none;
  width: 122px;
  color: var(--gold);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.plainlist--year b { width: 60px; font-size: 14.5px; }
.plainlist span:last-child { color: var(--ink); }

.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.prose p b, .prose p strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------- kapanış */

.closing {
  padding: clamp(80px, 16vh, 150px) 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.closing__time {
  font-size: clamp(60px, 13vw, 150px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 20px;
  color: var(--ink);
}
.closing__date {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  color: var(--ink-2);
  margin: 0 0 30px;
}
.closing__text { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 56ch; margin: 0 auto; }

/* ------------------------------------------------------------ dipnotlar */

.sources { padding: 70px 0 90px; }
.sources h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 20px;
}
.sources ul { margin: 0; padding-left: 20px; }
.sources li { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 8px; }

.footer {
  border-top: 1px solid var(--rule);
  padding: 30px 0 60px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* telif satırı: satırın sonunda, rengi altbilgiden devralır */
.footer__telif {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ======================================================== anasayfa =======
   Yalnızca index.html’in kullandığı bileşenler.
   ========================================================================= */

.hero--home { padding-bottom: 96px; }
.hero--home::after {
  background: radial-gradient(52% 100% at 22% 100%, rgba(217, 89, 38, 0.16), transparent 72%);
}

.home-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 40px;
  max-width: 15ch;
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.btn {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--page);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: 12px 22px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #eab95c; border-color: #eab95c; color: var(--page); }

.btn--ghost {
  color: var(--ink-2);
  background: transparent;
  border-color: var(--baseline);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }

/* -------------------------------------------------------- bölüm kartları */

.chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter { display: flex; }

.chapter__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chapter--live .chapter__link:hover {
  border-color: var(--gold-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.chapter--live .chapter__link:hover .chapter__go { color: var(--gold); }

.chapter--soon .chapter__link { opacity: 0.6; }

.chapter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.chapter__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.chapter__badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--baseline);
  border-radius: 100px;
  padding: 3px 10px;
}
.chapter__badge--soon { color: var(--muted); border-color: var(--rule); }

.chapter__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.chapter__years {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}

.chapter__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 46ch;
}

.chapter__viz { margin-top: auto; }
.chapter__viz svg { display: block; width: 100%; height: auto; overflow: visible; }

.chapter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.chapter__go { color: var(--ink-2); transition: color 0.18s ease; }

@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; }
}

/* “tümünü gör” satırı */

/* kart ızgarasının altında, tam genişlikte ve ortalanmış */
.chapters__more { margin: 22px 0 0; }

.chapters__more .btn {
  display: block;
  width: 100%;
  padding: 18px 22px;
  text-align: center;
}

/* ------------------------------------------------- kategori liste sayfası */

.liste-hero {
  padding: clamp(48px, 9vh, 92px) 0 44px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.liste-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: radial-gradient(52% 100% at 26% 100%, rgba(217, 89, 38, 0.12), transparent 72%);
  pointer-events: none;
}
.liste-hero .wrap { position: relative; z-index: 1; }

.liste-hero__head .section__title {
  font-size: clamp(38px, 6.4vw, 72px);
  margin-bottom: 20px;
}
.liste-hero__head .section__lede { max-width: 62ch; }

.liste__sayi {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.liste-diger__baslik {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ------------------------------------------------------------- kural no */

.rule-num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

/* geri bağlantısı */
.navlist__back { color: var(--ink-2) !important; }
.navlist__back::before { content: "← "; }

/* --------------------------------------------------------------- tooltip */

.tip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.09s linear;
  background: var(--surface-3);
  border: 1px solid var(--baseline);
  border-radius: var(--r);
  padding: 9px 12px;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tip[data-show="1"] { opacity: 1; }
.tip__t { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tip__v { font-size: 13px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.tip__n { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ================================================================= arama ==
   Komut paleti: üst bardaki düğme, ⌘K / Ctrl+K ve `/` açar.
   Bütün işaretleme arama.js tarafından üretilir.
   ========================================================================= */

/* üst bardaki düğme */

.aramabtn {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  margin-left: 18px;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.aramabtn:hover { color: var(--ink); border-color: var(--baseline); }
.aramabtn svg { width: 15px; height: 15px; flex: none; }

.aramabtn__kisayol {
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.aramabtn:hover .aramabtn__kisayol { color: var(--ink-2); }

/* dar ekranda kısayol ipucu anlamsız: yalnızca simge kalır */
@media (max-width: 860px) {
  .aramabtn { margin-left: 0; padding: 6px 8px; }
  .aramabtn__kisayol { display: none; }
}

/* palet */

.arama {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(12px, 9vh, 96px) 16px 16px;
}
.arama[hidden] { display: none; }

.arama__perde {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.72);
}

/* palet açıkken arkadaki sayfa kaymasın */
.arama-acik { overflow: hidden; }

.arama__pencere {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--baseline);
  border-radius: 5px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.arama__ust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.arama__ikon { width: 18px; height: 18px; flex: none; color: var(--muted); }

.arama__giris {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 2px 0;
}
.arama__giris:focus { outline: none; }
.arama__giris::placeholder { color: var(--muted); }

.arama__kapat {
  flex: none;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 3px 8px;
  cursor: pointer;
}
.arama__kapat:hover { color: var(--ink); border-color: var(--baseline); }

.arama__liste {
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  flex: 1 1 auto;
}

.arama__satir a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-areas:
    "tur bas"
    "tur alt";
  gap: 2px 12px;
  padding: 9px 10px;
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
}
.arama__satir.is-etkin a { background: var(--surface-2); }

.arama__tur {
  grid-area: tur;
  align-self: start;
  padding-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.arama__satir.is-etkin .arama__tur { color: var(--gold); }

.arama__bas {
  grid-area: bas;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.arama__bas mark {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
}

/* konu adı ve tarih aynı alt satırı paylaşır */
.arama__yan,
.arama__alt {
  grid-area: alt;
  font-size: 12.5px;
  color: var(--muted);
}
.arama__yan { justify-self: start; }
.arama__alt { justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }

.arama__dip {
  flex: none;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 520px) {
  .arama__satir a { grid-template-columns: 1fr; grid-template-areas: "bas" "alt"; }
  .arama__tur { display: none; }
}

/* --------------------------------------------- aranan satıra gelindiğinde */

/* Arama sonucundan bir olaya gelinince o satır kısa süre işaretlenir. */
.tl,
.tl__era { scroll-margin-top: 96px; }

/* Yalnızca renk değişir: zaman çizgisinin dikey cetveli ve noktaları
   konuma duyarlı olduğu için kutu/çerçeve eklemek düzeni kaydırıyor. */
.tl:target .tl__title,
.tl__era:target .era-head__span { color: var(--gold); }
.tl:target .tl__date { color: var(--gold-dim); }

/* --------------------------------------------------------------- galeri */

/* Şerit `scroll-snap` ile çalışır: JavaScript kapalıysa da yatay kaydırılır.
   Oklar mutlak konumda ve şeridin üstünde durur. */

.galeri__vitrin {
  position: relative;
}

.galeri__serit {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding: 4px 4px 14px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--baseline) transparent;
}
.galeri__serit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--r);
}
.galeri__serit::-webkit-scrollbar { height: 8px; }
.galeri__serit::-webkit-scrollbar-track { background: transparent; }
.galeri__serit::-webkit-scrollbar-thumb {
  background: var(--baseline);
  border-radius: 4px;
}

.galeri__kare {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.galeri__kare figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

/* Görseli saran düğme: tıklanınca büyütme penceresini açar. */
.galeri__ac {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.galeri__ac:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.galeri__ac img { transition: opacity 0.2s ease; }
.galeri__ac:hover img { opacity: 0.82; }

/* `contain`: tarihî fotoğraflar kırpılmaz. Dikey ve yatay kareler aynı
   yükseklikte, kendi oranlarını koruyarak durur. */
.galeri__kare img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--page);
  display: block;
}

.galeri__kare figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.galeri__kare figcaption b {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}
.galeri__yil {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.galeri__not {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
a.galeri__kaynak {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0;
}
a.galeri__kaynak:hover { color: var(--gold); }

.galeri__ok {
  position: absolute;
  top: 115px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.galeri__ok:hover { background: var(--surface-3); color: var(--gold); }
.galeri__ok:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.galeri__ok--sol { left: -8px; }
.galeri__ok--sag { right: -8px; }

.galeri__dipnot {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 640px) {
  .galeri__kare { flex-basis: 240px; }
  .galeri__kare img { height: 180px; }
  .galeri__ok { top: 90px; }
  .galeri__ok--sol { left: -4px; }
  .galeri__ok--sag { right: -4px; }
}

/* ---------------------------------------------------- büyütme penceresi */

/* Yerli <dialog>: odak tuzağı, Esc ile kapanma ve karartma tarayıcıdan
   gelir. Burada yalnızca yerleşim ve renk var. */

.buyuk {
  width: min(1180px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  overflow: visible;
}
.buyuk::backdrop {
  background: rgba(8, 7, 6, 0.86);
  backdrop-filter: blur(2px);
}

.buyuk__ic {
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.buyuk__gorsel {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--page);
  border-radius: var(--r) var(--r) 0 0;
}

.buyuk__alt {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--rule);
}
.buyuk__alt b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.buyuk__yil {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.buyuk__not {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
}
.buyuk__dip {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 12.5px;
}
a.buyuk__kaynak {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0;
}
a.buyuk__kaynak:hover { color: var(--gold); }
.buyuk__sayac {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.buyuk__kapat,
.buyuk__ok {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.buyuk__kapat:hover,
.buyuk__ok:hover { background: var(--surface-3); color: var(--gold); }
.buyuk__kapat:focus-visible,
.buyuk__ok:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.buyuk__kapat {
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
}

.buyuk__ok {
  top: 36vh;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
}
.buyuk__ok--sol { left: -23px; }
.buyuk__ok--sag { right: -23px; }

@media (max-width: 720px) {
  .buyuk { width: 96vw; }
  .buyuk__gorsel { max-height: 56vh; }
  .buyuk__alt { padding: 14px 16px 16px; }
  .buyuk__alt b { font-size: 16px; }
  .buyuk__kapat { top: -16px; right: -10px; width: 36px; height: 36px; }
  .buyuk__ok { top: auto; bottom: -22px; width: 40px; height: 40px; font-size: 24px; }
  .buyuk__ok--sol { left: 12px; }
  .buyuk__ok--sag { right: 12px; }
}

/* -------------------------------------------------------- görünüme giriş */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- baskı */

@media print {
  .topbar, .tablebtn { display: none; }
  body { background: #fff; color: #000; }
}
