/* ===============================
   BASE STYLES

   Common base styles shared across all pages.
   Includes: CSS reset, fonts, body styles, heading styles.
   
   Note: CSS Variables are defined in variables.css
   and should be loaded before this file.
================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Base Styles */
/* Default to nature theme colors - JavaScript will override if needed */
body,
body.custom-background,
body.custom-background-image,
body.wp-custom-logo {
  font-family: var(--font-primary);
  background: #f9f6d0 !important; /* Nature theme yellow - force with !important */
  background-image: none !important;
  color: #00400e !important; /* Nature theme green - force with !important */
  line-height: 1.7;
  overflow-x: hidden;
}

html,
html.custom-background {
  background: #f9f6d0 !important; /* Ensure html also has yellow background */
  background-image: none !important;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ===============================
   RESPONSIVE TYPOGRAPHY
================================ */

/* Base font size - never below 16px for accessibility */
body {
  font-size: clamp(16px, 2vw, 18px);
}

@media (max-width: 500px) {
  body {
    font-size: 16px; /* Minimum readable size */
  }
}

/* Responsive heading sizes */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

