/* Çankaya Hareketi: onaylı kimlik renkleri ve temel reset */
*,
*:before,
*:after {
  box-sizing: border-box;
}

:root {
  --ch-red: #870E1F;
  --ch-navy: #0F2D4A;
  --ch-white: #F8F6F2;
  --ch-gray: #6B7C93;
  --ch-paper: #FBFAF8;
  --ch-ink: #12202D;

  /* Referans mockup'tan ölçülen metin ve çizgi tonları */
  --ch-text: #2B2F36;        /* nav, slogan, gövde */
  --ch-text-soft: #4A4F57;   /* hero açıklaması */
  --ch-desc: #5A5F66;        /* kart açıklamaları */
  --ch-muted: #66717A;       /* "Tümü →" bağlantıları */
  --ch-meta: #8A8D92;        /* yazar · tarih, PDF · boyut */
  --ch-line: #D5D4D1;        /* bölüm başlığı çizgisi */
  --ch-line-soft: #E1E0DE;   /* liste ayraçları, header alt çizgisi */
  --ch-chip: #EDEDEB;

  --ch-font-body: 'Montserrat', Arial, sans-serif;
  --ch-font-heading: 'Source Serif 4', Georgia, serif;

  --ch-gutter: 48px;
}

html {
  -moz-tab-size: 4;
  tab-size: 4;
  word-break: break-word;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box; /* header payı (padding-top) yüksekliğe dahil: kısa sayfalarda gereksiz kaydırma olmaz */
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  background-color: var(--ch-paper);
  color: var(--ch-ink);
  font-family: var(--ch-font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  border-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--ch-font-heading);
  font-weight: 700;
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-wrapper {
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  width: 100%;
  max-width: 1800px;
}

@media (min-width: 37.5rem) {
  .l-wrapper {
    padding: 0 var(--ch-gutter);
  }
}

.main-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.m-footer {
  margin-top: auto;
}

/* WP yönetici çubuğu açıkken sabit header'ı onun altına al */
.admin-bar .m-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .m-header {
    top: 46px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  :root {
    --ch-gutter: 20px;
  }
}

/* Erişilebilirlik */
.ch-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--ch-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 3px;
  font-family: var(--ch-font-body);
  font-weight: 600;
  transition: top 0.15s ease;
}

.ch-skip:focus {
  top: 16px;
  outline: 0;
}

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

.m-nav__left a:focus-visible,
.ch-chip:focus-visible,
.ch-cta-link:focus-visible,
.ch-katil-button:focus-visible {
  outline-offset: 4px;
}

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

html {
  scroll-behavior: smooth;
}
