:root {
  --bg: #FBF7F0;
  --card: #FFFFFF;
  --text: #2b2b2b;
  --text-muted: #6b5b4a;
  --accent: #a0542b;
  --primary: #2b7a78;
  
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem;  /* 8px */
  --spacing-md: 1rem;    /* 16px */
  --spacing-lg: 2rem;    /* 32px */
  --spacing-xl: 4rem;    /* 64px */

  --radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.85); /* Slightly transparent for a modern feel */
  backdrop-filter: blur(8px); /* "Glassmorphism" effect */
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-container {
  width: 100%;
  max-width: 1000px;
  margin: var(--spacing-xl) auto; /* This centers the container and gives it space from the header */
  padding: var(--spacing-lg);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(43, 43, 43, 0.05);
}

h1, h2, h3, h4 {
  text-wrap: balance; /* Prevents awkward single-word lines on headings */
  line-height: 1.2;
}

h1 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-weight: 800; /* Bolder for more impact */
  font-size: clamp(2.25rem, 5vw, 3rem); /* 36px to 48px */
  letter-spacing: -0.02em;
}

h3.subtitle {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
  color: var(--text-muted);
  font-size: clamp(1rem, 3vw, 1.25rem); /* 16px to 20px */
}

h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: clamp(1.5rem, 4vw, 1.75rem); /* 24px to 28px */
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(43,43,43,0.1);
  padding-bottom: var(--spacing-sm);
}

p, ul, ol {
  max-width: 75ch; /* Improves readability by limiting line length */
  margin-bottom: var(--spacing-md);
  font-size: clamp(1rem, 2.5vw, 1.125rem); /* 16px to 18px */
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Use a class like .btn for button-like links */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-in-out;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  background: #349491; /* Slightly lighter on hover */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.featured-image {
  margin: var(--spacing-md) auto var(--spacing-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.image-gallery {
  display: flex;
  flex-wrap: wrap; /* Allows images to wrap on small screens */
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}
.image-gallery > * {
  flex: 1 1 200px; /* Flex-grow, flex-shrink, flex-basis */
}
.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the space without distortion */
}


.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
}
.brand:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--spacing-sm) 12px;
  border-radius: 8px;
  font-weight: 600;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(43, 122, 120, 0.08);
  color: var(--primary);
  outline: none;
  text-decoration: none;
}

.nav-toggle { display: none; background: transparent; border: 0; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { display: block; }

@media (max-width: 768px) {
  .header-inner { padding: var(--spacing-sm) var(--spacing-md); }
  .site-container { margin: var(--spacing-lg) auto; padding: var(--spacing-lg) var(--spacing-md); }
  .main-nav { display: none; position: absolute; top: calc(100% + 5px); right: 16px; background: var(--card); flex-direction: column; gap: 0; padding: 10px; border-radius: 8px; box-shadow: var(--shadow-md); min-width: 200px; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .main-nav { display: flex; }
}

.skip-link { position: absolute; left: 0; top: 0; transform: translateY(-120%); background: var(--primary); color: white; padding: 8px 12px; border-radius: 0 0 6px 0; z-index: 200; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #6b4fcf; outline-offset: 2px; }

.text-center { text-align: center; }