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

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #4ade80;
  --secondary: #6b7280;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Segoe UI Emoji", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;

  /* Make layout fill the viewport and push footer to bottom when pages are short */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Let the main page content (everything except header/footer/scripts) grow */
body>*:not(#header):not(#footer):not(script) {
  flex: 1 0 auto;
}

/* Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Spacing */
.py-4 {
  padding: 2rem 0;
}

.py-6 {
  padding: 3rem 0;
}

.py-8 {
  padding: 4rem 0;
}

.py-12 {
  padding: 6rem 0;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-6 {
  margin-bottom: 2.5rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .py-12 {
    padding: 3rem 0;
  }

  .mb-8 {
    margin-bottom: 2rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.emoji {
  display: inline-block;
  width: 1.2em;
  text-align: center;
  margin-right: 0.5rem;
}