/* ==========================================================================
   Madrasah Jamia Rabiatul Lil Banat — Green Theme
   Source palette (opaque equivalents of the supplied 8-digit tokens):
     --dark-spruce: #004b23 | --green: #006400 | --green-2: #007200
     --green-3: #008000 | --bright-fern: #38b000 | --radioactive-grass: #70e000
     --slime-lime: #9ef01a | --chartreuse: #ccff33
   Merriweather Serif + Inter (inherited type pairing)
   ========================================================================== */
/* --------------------------------------------------------------------------
   1. Color System
   -------------------------------------------------------------------------- */
:root {
  /* Primary — Institutional Green */
  --color-primary: #006400;
  --color-primary-dark: #004b23;
  --color-primary-light: #008000;

  /* Secondary — Bright Fern */
  --color-secondary: #38b000;
  --color-secondary-dark: #007200;

  /* Accent */
  --color-accent: #006400;

  /* Neutrals (faint green-tinted surfaces) */
  --color-bg: #f3f9f1;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;

  /* Semantic */
  --color-focus: #007200;
  --color-danger: #B3261E;

  /* ------------------------------------------------------------------ */
  /* 2. Typography                                                       */
  /* ------------------------------------------------------------------ */
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: 48px;
  --fs-display: 38px;
  --fs-title: 32px;
  --fs-section: 28px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 13px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  /* ------------------------------------------------------------------ */
  /* 3. Layout                                                           */
  /* ------------------------------------------------------------------ */
  --container: 1200px;
  --gutter: 24px;

  --section-pad: clamp(60px, 8vw, 100px);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ------------------------------------------------------------------ */
  /* 4. Shadows & Borders                                                */
  /* ------------------------------------------------------------------ */
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, 0.08);
  --shadow: 0 6px 20px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 41, 55, 0.12);
  --border: 1px solid var(--color-border);

  /* ------------------------------------------------------------------ */
  /* 5. Motion                                                           */
  /* ------------------------------------------------------------------ */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 150ms;
  --dur: 280ms;
  --dur-slow: 450ms;

  /* ------------------------------------------------------------------ */
  /* 6. Z-index scale                                                    */
  /* ------------------------------------------------------------------ */
  --z-header: 100;
  --z-drawer: 200;
  --z-overlay: 190;
  --z-top: 300;
}

/* ==========================================================================
   7. Minimal CSS Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: #9ef01a;
  color: #004b23;
}

/* ==========================================================================
   8. Base helpers & utility tokens
   ========================================================================== */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: var(--z-top);
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 12px;
}