/* =====================================================
   BASE.CSS (FOUNDATION / GLOBAL DEFAULTS)
   ---------------------aa--------------------------------
   PURPOSE:
   - Global reset + baseline styling
   - Typography system
   - Design tokens (CSS variables)
   - Default element behavior
   -----------------------------------------------------
   RULES:
   - No layout systems (grid/flex containers)
   - No components (buttons/cards/nav)
   - No page-specific styling
===================================================== */

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6,
p,
ul, ol {
  margin: 0;
}

/* HEADINGS */
h1 {
  font-size: clamp(1.5rem, 1.4vw, 1.9rem);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.3rem, 1.3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.2rem, 1.2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h5 {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* PARAGRAPHS */
p {
  margin-bottom: var(--space-2);
  font-size: 16px;
  line-height: 1.6;
}

/* LISTS */
ul {
  margin-top: var(--space-2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}
/* IMAGES */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* LINKS (neutral behavior only) */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*--------------------------------------------------------
 Restrict scroll speed for a smooth glide
--------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

/* NO max-width, ever */
/* TEXT BLOCK - associated with an image, text, or section */
 /*a very solid readability pattern*/
.text-container {
  max-width: 700px;
  margin: 0 auto 2rem;
}
 /*Adds a small gap under a heading/title*/
.text-title {
  margin-bottom: 0.5rem;
}
 /*a secondary text color ( less emphasis) */
.text-description {
  color: var(--text-secondary);   /* was #555 */ 
  font-size: 1.05rem;
}

/* OPTIONAL LINE - a narrative or transitional line */
.text-transition {
  margin-top: 1.5rem;
  font-style: italic;
  color: #777;
}