/* =====================================================
   BASE.CSS – SAFE FOUNDATION (NON-INTERFERING)
   Purpose: Reset + Minimal Utilities Only
   This file MUST NOT control layout or spacing.
===================================================== */

/* ==============================
   1. RESET (SAFE)
============================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==============================
   2. MEDIA DEFAULTS
============================== */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ==============================
   3. LINK RESET
============================== */
a {
    text-decoration: none;
    color: inherit;
}

/* ==============================
   4. SAFE CONTAINER
   (Neutral – page CSS can override freely)
============================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==============================
   5. TYPOGRAPHY DEFAULTS (NO SIZES)
   Pages will control sizes.
============================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    line-height: 1.7;
}

/* ==============================
   6. LIST RESET
============================== */
ul,
ol {
    list-style: none;
}

/* ==============================
   7. BUTTON BASE (SAFE)
============================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

/* ==============================
   8. UTILITIES (OPTIONAL)
============================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ==============================
   END OF BASE
   No section padding.
   No heading font-size.
   No layout forcing.
============================== */






/* ===== Reading Progress Bar ===== */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
  z-index: 9999;
  transition: width 0.2s ease;
}