/* -------------------------
   Global base & typography
   ------------------------- */

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

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Headings: slightly larger and responsive, with consistent spacing */

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem 0;
  padding: 0;
  font-weight: 700;
  color: #333;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

h4 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.3;
}

p {
  margin: 0 0 1rem 0;
  padding: 0;
}

/* Preserve your first/second paragraph behaviour */

#Content > p {
  margin: 0;
}

#Content > p + p {
  text-indent: 30px;
}

li {
  margin: 0 0 0.75rem 0;
  padding: 0;
}

/* -------------------------
   Links & emphasis
   ------------------------- */

a {
  color: #0a84ff;
  text-decoration: none;
  font: inherit; /* inherit size & font-family for a cleaner look */
}

a:link {
  color: #0a84ff;
}

a:visited {
  color: #0060b3;
}

a:hover,
a:focus {
  text-decoration: underline;
  background-color: #f5f5f5;
}

b {
  color: inherit;
  font-weight: 600;
}

/* -------------------------
   Layout: Header & Content
   ------------------------- */

/* Minimal, soft header block */

#Header {
  margin: 3rem 0 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f5f5f5;
  border-radius: 12px;
  line-height: 1.4;
  height: auto; /* remove fixed-height constraints */
}

/* No special IE5 hack needed anymore */
body > #Header {
  height: auto;
}

/* Content centered with max-width */

#Content {
  max-width: 900px;
  margin: 1.5rem auto 3rem auto;
  padding: 0 1.5rem;
}

/* -------------------------
   Responsive adjustments
   ------------------------- */

/* Tablet and below */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  #Header {
    margin: 2rem 0 1rem 0;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
  }

  #Content {
    margin: 1.25rem auto 2rem auto;
    padding: 0 1.25rem;
  }

  li {
    margin-bottom: 0.6rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  #Header {
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  #Content {
    margin: 1rem auto 1.75rem auto;
    padding: 0 0.9rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  /* Reduce indent on small screens so the second paragraph doesn't feel "cramped" */
  #Content > p + p {
    text-indent: 1.5rem;
  }
}

