/* typography.css — GRS Kumaşçılık × Newsprint */

/* Fonts are loaded once from each page head to avoid late duplicate requests. */

/* ── Temel Metin ── */
body {
  font-family: var(--font-body);
  font-size: var(--body-lg);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%230E1A1C' fill-opacity='0.035' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

/* ── Display / Hero ── */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-title);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
}

/* ── Section Başlıkları ── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--hero-title);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--h4);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
}

/* ── Editöryal Tipler ── */
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
}

/* Bölüm etiketleri — gazeteci üst satır stili */
.overline {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.caption {
  font-family: var(--font-mono);
  font-size: var(--label);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ── Body Metin ── */
p {
  font-family: var(--font-body);
  font-size: var(--body-lg);
  line-height: 1.7;
  color: var(--ink-mid);
}

p + p {
  margin-top: 1em;
}

/* ── Linkler ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: var(--body-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: gap var(--t-base) var(--ease-out-expo),
              color var(--t-base) ease;
}

.link-arrow::after {
  content: '→';
  transition: transform var(--t-base) var(--ease-out-expo);
}

.link-arrow:hover {
  color: var(--accent);
  gap: 0.75em;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ── Renk Yardımcıları ── */
.text-accent    { color: var(--accent); }
.text-accent-b  { color: var(--accent-bright); }
.text-warm      { color: var(--accent-warm); }
.text-muted     { color: var(--ink-muted); }
.text-secondary { color: var(--ink-mid); }

/* Ters çevrilmiş bölümler için açık metin */
.inverted .text-muted    { color: rgba(249, 249, 247, 0.55); }
.inverted .text-secondary { color: rgba(249, 249, 247, 0.75); }

/* ── Sayı Display (istatistik paneller) ── */
.counter-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3rem, 5vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: inline-block;
  max-width: 100%;
}

/* İnverted bölümde sayı rengi */
.inverted .counter-number {
  color: var(--paper);
}

/* ── Gazete Masthead Meta ── */
.edition-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── Büyük Harf Etiketler (üst çubuk) ── */
.label-upper {
  font-family: var(--font-sans);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Monospace veri metin ── */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

@media (max-width: 1279px) {
  .counter-number { font-size: clamp(3rem, 7vw, 5.5rem); }
}

@media (max-width: 767px) {
  .counter-number { font-size: clamp(2.75rem, 10vw, 4.5rem); }
}
