/* ═══════════════════════════════════════════════════
   base.css — Reset · Variables · Typography
   Shahnaz Kulsoom Blog
   ═══════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --primary:        #0ea5e9;
  --primary-light:  #e0f2fe;
  --primary-dark:   #0369a1;
  --accent:         #06b6d4;
  --accent2:        #818cf8;

  /* Surface */
  --bg:             #f8fafc;
  --bg-card:        #ffffff;
  --bg-dark:        #0f172a;
  --bg-dark-raised: #1e293b;

  /* Text */
  --text:           #0f172a;
  --text-muted:     #475569;
  --text-subtle:    #94a3b8;

  /* Border */
  --border:         #e2e8f0;
  --border-dark:    #1e293b;

  /* Semantic */
  --success-bg:     #f0fdf4;
  --success-border: #bbf7d0;
  --success-text:   #14532d;
  --warn-bg:        #fffbeb;
  --warn-border:    #fde68a;
  --warn-text:      #92400e;
  --info-bg:        #eff6ff;
  --info-border:    #bfdbfe;
  --info-text:      #1e40af;

  /* Elevation */
  --shadow-card:    0 4px 24px rgba(14,165,233,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover:   0 12px 40px rgba(14,165,233,0.15), 0 2px 8px rgba(0,0,0,0.06);

  /* Layout */
  --nav-height:     68px;
  --content-width:  720px;
  --max-width:      1100px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-pill:100px;

  /* Transition */
  --transition: 0.2s ease;
}

/* ── BODY ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

/* ── UTILITIES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .container, .container--narrow { padding: 0 1.25rem; }
}
