/* Global Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Root Variables for Theming */
:root {
  --primary-color: #2c3e50; /* Dark blue-gray for headings/accents */
  --text-color: #34495e;    /* Slightly lighter dark blue-gray for body text */
  --background-color: #ecf0f1; /* Light gray for overall page background */
  --container-bg-color: #ffffff; /* White for the main content container */

  --font-family-base: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-size-base: 16px;
  --line-height-base: 1.6;
}

/* Base HTML and Body Styles */
html {
  font-size: var(--font-size-base); /* Defines 1rem */
  background-color: var(--background-color); /* Overall page background */
  min-height: 100vh; /* Ensure html takes full viewport height for background */
}

body {
  font-family: var(--font-family-base);
  font-size: 1rem; /* Base font size for body content */
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--container-bg-color); /* White background for the content block */
  margin: 2.5rem auto; /* Center the content block with margin from top/bottom */
  padding: 2.5rem; /* Ample padding inside the content block */
  max-width: 800px; /* Max width for content */
  border-radius: 8px; /* Slightly rounded corners for a modern look */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
}

/* Typography */
h1 {
  color: var(--primary-color);
  font-size: 2.2rem; /* Larger font size for main heading */
  margin-top: 0;
  margin-bottom: 1.5rem; /* Consistent spacing */
  text-align: center; /* Center the main heading for visual hierarchy */
}

p {
  margin-bottom: 1rem; /* Consistent spacing for paragraphs */
}

/* Responsive Layout (Mobile-first approach) */
@media (max-width: 768px) {
  body {
    margin: 1.5rem auto; /* Smaller margin on tablets/smaller desktops */
    padding: 2rem; /* Slightly less padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Lighter shadow */
  }
  h1 {
    font-size: 2rem; /* Adjust heading size for medium screens */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px; /* Slightly smaller base font for very small devices */
  }
  body {
    margin: 0; /* Remove margin entirely on very small screens to fill width */
    padding: 1.5rem; /* Even less padding */
    border-radius: 0; /* No border-radius on very small screens */
    box-shadow: none; /* No shadow on very small screens */
  }
  h1 {
    font-size: 1.8rem; /* Adjust heading size for mobile */
    margin-bottom: 1rem;
  }
}