/* =========================================
   TYPOGRAPHY STYLES
   ========================================= */

/* Font loading */
@font-face {
  font-display: swap;
}

/* Root variables */
:root {
    --font-body: "Open Sans", Arial, sans-serif;
    --font-heading: "Oswald", sans-serif;
    --font-subheading: "Montserrat", sans-serif;
  }

  /* =========================================
   QUICK REFERENCE
   -----------------------------------------
   em  = relative to the font-size of the element’s parent
         Example: if parent = 20px, then 1.5em = 30px
   rem = relative to the root (html) font-size (default 16px,
         or whatever you set in html { font-size })
========================================= */



  
  /* Set base font-size = 18px */
  html {
    font-size: 18px; /* 1rem = 18px */
  }
  
  /* ==============================
     BODY TYPOGRAPHY
     ============================== */
  body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;        /* 18px */
    line-height: 1.8;       /* scalable unitless */
    color: var(--color-text);
    background-color: var(--color-bg);
  }
  
  p {
    margin-bottom: 1.5em;
  }
  
  ul, ol {
    margin: 0 0 1.5em 1.5em;
    line-height: 1.6;
  }
  
  li > ul, li > ol {
    margin-top: 0.5em;
  }
  
  strong, b { font-weight: 600; }
  em, i     { font-style: italic; }
  
  small {
    font-size: 0.85em;
    line-height: 1.4;
  }
  
  /* ==============================
     HEADINGS TYPOGRAPHY
     ============================== */
  h1, h2, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
  }
  
  h3, h4 {
    font-family: var(--font-subheading);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5em;
  }
  
  /* Desktop sizes (root = 18px) */
  h1 { font-size: 2.22rem; } /* 40px */
  h2 { font-size: 1.78rem; } /* 32px */
  h3 { font-size: 1.33rem; } /* 24px */
  h4 { font-size: 1.11rem; } /* 20px */
  h5 { font-size: 1rem;   }  /* 18px */
  h6 { font-size: 0.89rem; } /* 16px */
  
  /* ==============================
     RESPONSIVE TYPOGRAPHY
     ============================== */
  
  /* Tablet (≤ 1024px) 
     Recalculated in rem: divide px by 18 */
  @media (max-width: 1024px) {
    h1 { font-size: 2rem;   } /* 36px */
    h2 { font-size: 1.56rem;} /* 28px */
    h3 { font-size: 1.22rem;} /* 22px */
    h4 { font-size: 1.11rem;} /* 20px */
    h5 { font-size: 0.94rem;} /* 17px */
    h6 { font-size: 0.83rem;} /* 15px */
  }
  
  /* Mobile (≤ 768px) */
  @media (max-width: 768px) {
    h1 { font-size: 1.78rem; } /* 32px */
    h2 { font-size: 1.44rem; } /* 26px */
    h3 { font-size: 1.22rem; } /* 22px */
    h4 { font-size: 1.11rem; } /* 20px */
    h5 { font-size: 0.89rem; } /* 16px */
    h6 { font-size: 0.78rem; } /* 14px */
  }
  