/* ==========================================================================
   POLİMAN YALITIM — FLUID TYPOGRAPHY SYSTEM
   Modern Kurumsal Tipografi ve Ölçekleme Motoru
   ========================================================================== */

/* Font Family Declaration & Fallbacks */
:root {
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Document Typography */
html {
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--background);
}

/* Headings Fluid Typography Scale (using clamp) */
h1, .h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark);
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--dark);
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-bottom: 0.85rem;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--dark);
  word-break: keep-all;
  overflow-wrap: break-word;
  margin-bottom: 0.75rem;
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

h5, .h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
}

/* Paragraphs & Text Elements */
p {
  margin-bottom: 1.2rem;
  color: var(--text);
  line-height: 1.68;
}

p.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.text-small {
  font-size: 0.88rem;
  line-height: 1.5;
}

.text-tiny {
  font-size: 0.75rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* Text Colors */
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-white { color: #FFFFFF; }
