/*
Theme Name: Ibadan Climate Week
Theme URI: https://ibadanclimateweek.org
Author: Ibadan Climate Week
Author URI: https://ibadanclimateweek.org
Description: Official custom theme for Ibadan Climate Week 2027 — From Climate Ambition to Local Action — Financing a Resilient Oyo.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ibadan-climate-week
Tags: climate, institutional, nigeria, ibadan, conference, custom-header, full-site-editing
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM TOKENS)
   ========================================================================== */
:root {
  /* Color Palette */
  --icw-green: #0B3D2E;
  --icw-green-dark: #07271D;
  --icw-green-deep: #041812;
  --icw-green-light: #155541;
  --icw-green-soft: #E8F0EC;
  
  --icw-gold: #C9A227;
  --icw-gold-light: #E0B738;
  --icw-gold-pale: #F4EBCF;
  --icw-gold-dark: #9D7C17;
  
  --icw-cream: #F8F4EC;
  --icw-cream-light: #FDFBF7;
  --icw-cream-card: #FFFFFF;
  --icw-cream-dark: #ECE5D6;
  
  --icw-black: #111814;
  --icw-text-main: #1D2823;
  --icw-text-muted: #4F5E56;
  --icw-text-light: #7E8E86;
  
  --icw-red: #B84A39;
  --icw-red-soft: #F9EBEA;
  
  /* Borders & Dividers */
  --icw-border-light: rgba(11, 61, 46, 0.1);
  --icw-border-medium: rgba(11, 61, 46, 0.18);
  --icw-border-gold: rgba(201, 162, 39, 0.28);
  --icw-border-dark: rgba(255, 255, 255, 0.12);
  
  /* Shadows */
  --icw-shadow-sm: 0 2px 6px rgba(11, 61, 46, 0.05);
  --icw-shadow-md: 0 8px 24px rgba(11, 61, 46, 0.08);
  --icw-shadow-lg: 0 16px 40px rgba(11, 61, 46, 0.12);
  --icw-shadow-gold: 0 8px 25px rgba(201, 162, 39, 0.22);
  
  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout Spacing */
  --container-max: 1240px;
  --container-narrow: 920px;
  --header-height: 84px;
  --header-height-scrolled: 70px;
  
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & SYSTEM BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--icw-cream);
  color: var(--icw-text-main);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--icw-gold);
  color: var(--icw-black);
  padding: 12px 24px;
  font-weight: 600;
  z-index: 99999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  list-style: none;
}

/* Focus Ring for WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--icw-gold);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background-color: var(--icw-gold);
  color: var(--icw-green-deep);
}
