/* ===================================================================
   CSS Custom Properties (Variables)
   Sequoia and Kings Canyon National Parks - Ranger Resources
   =================================================================== */

:root {
  /* ===================================================================
     MODERN HERITAGE COLOR PALETTE
     Earth tones inspired by Sequoia & Kings Canyon landscapes
     =================================================================== */

  /* Primary Brand Colors */
  --color-deep-forest: #2C4C3B; /* SEKI Green - primary backgrounds, headers */
  --color-sequoia-red: #C27A58; /* Sequoia bark - highlights, links */
  --color-sage-mist: #9DAF9D; /* Soft green - accents */
  --color-warm-clay: #B8876B; /* Secondary accent */

  /* Neutral Palette */
  --color-bone: #F9F8F2; /* Main page background (reduces eye strain) */
  --color-cream: #FAF9F6; /* Card backgrounds */
  --color-granite: #E5E5E5; /* Borders, dividers */
  --color-slate-stone: #6B7280; /* Secondary text */
  --color-charcoal: #1a1a1a; /* Body text (never pure black) */

  /* Semantic/Status Colors */
  --color-safety-orange: #D35400; /* Alerts, warnings, road closures */
  --color-status-blue: #2980B9; /* Information, cold weather */
  --color-moss-green: #6B8E23; /* Open/Clear status */
  --color-mustard-yellow: #F1C40F; /* Caution status */
  --color-safety-red: #C0392B; /* Closed/Danger status */

  /* Gradient Definitions (Earth Gradients) */
  --gradient-dawn: linear-gradient(135deg, #F2D0A9 0%, #C27A58 100%);
  --gradient-canopy: linear-gradient(135deg, #9DAF9D 0%, #2C4C3B 100%);
  --gradient-dusk: linear-gradient(135deg, #C27A58 0%, #2C4C3B 100%);

  /* Text Colors - Semantic */
  --color-text-primary: var(--color-charcoal);
  --color-text-secondary: var(--color-slate-stone);
  --color-text-inverse: #ffffff;
  --color-text-muted: #9CA3AF;

  /* Link Colors */
  --color-link: var(--color-sequoia-red);
  --color-link-hover: var(--color-deep-forest);
  --color-link-visited: #A5694D;
  --color-link-active: var(--color-deep-forest);

  /* Background Colors */
  --color-bg-primary: var(--color-bone);
  --color-bg-card: var(--color-cream);
  --color-bg-elevated: #ffffff;
  --color-bg-overlay: rgba(249, 248, 242, 0.95);
  --color-bg-white: #fff;
  --color-bg-light: #F1F4F9;
  --color-bg-alt: #D3DEED;

  /* Border Colors */
  --color-border-light: rgba(44, 76, 59, 0.1);
  --color-border-medium: rgba(44, 76, 59, 0.2);
  --color-border-strong: rgba(44, 76, 59, 0.4);

  /* Shadow Definitions - Ambient (use theme colors, not black) */
  --shadow-sm: 0 2px 4px rgba(44, 76, 59, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 76, 59, 0.12);
  --shadow-lg: 0 20px 40px -10px rgba(44, 76, 59, 0.15);
  --shadow-xl: 0 30px 60px -15px rgba(44, 76, 59, 0.2);

  /* Grain overlay for depth (applied to dark sections) */
  --overlay-grain: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDIiLz48L3N2Zz4=');

  /* ===================================================================
     TYPOGRAPHY SYSTEM
     Modern Heritage - Playfair Display, Inter, Roboto Mono
     =================================================================== */

  /* Font Families */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Playfair Display', Georgia, serif;
  --font-family-mono: 'Roboto Mono', 'Courier New', monospace;
  --font-family-brand: 'Playfair Display', Georgia, serif;
  --font-family-serif: Georgia, 'Times New Roman', Times, serif;

  /* Font Sizes - Modern Scale (1.25 ratio) */
  --font-size-base: 16px; /* UP from 0.75em */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.563rem; /* 25px */
  --font-size-3xl: 1.953rem; /* 31px */
  --font-size-4xl: 2.441rem; /* 39px */

  /* Heading Scale */
  --font-size-h1: 2.5rem; /* 40px */
  --font-size-h2: 2rem; /* 32px */
  --font-size-h3: 1.5rem; /* 24px */

  /* Legacy sizes (for compatibility) */
  --font-size-small: 10px;
  --font-size-heading-base: 9px;
  --font-size-heading-1: 2em;
  --font-size-heading-2: 1.5em;
  --font-size-heading-3: 0.75em;
  --font-size-brand: 24px;
  --font-size-brand-desc: 20px;
  --font-size-nav: 14px;
  --font-size-sidebar-heading: 1.5em;
  --font-size-blockquote: 1.2em;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-base: 1.6; /* High readability */
  --line-height-relaxed: 1.75;
  --line-height-content: 18px;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* ===================================================================
     8-POINT GRID SYSTEM
     All spacing in multiples of 8px for visual rhythm
     =================================================================== */

  /* Base spacing scale (8-point grid) */
  --spacing-0: 0;
  --spacing-1: 0.5rem; /* 8px */
  --spacing-2: 1rem; /* 16px */
  --spacing-3: 1.5rem; /* 24px */
  --spacing-4: 2rem; /* 32px */
  --spacing-5: 2.5rem; /* 40px */
  --spacing-6: 3rem; /* 48px */
  --spacing-8: 4rem; /* 64px */
  --spacing-12: 6rem; /* 96px */

  /* Semantic Spacing */
  --spacing-section: var(--spacing-8); /* 64px between major sections */
  --spacing-card: var(--spacing-3); /* 24px internal card padding */
  --spacing-element: var(--spacing-2); /* 16px between elements */

  /* Legacy spacing (for compatibility) */
  --spacing-xs: 3px;
  --spacing-sm: 5px;
  --spacing-md: 10px;
  --spacing-lg: 15px;
  --spacing-xl: 25px;
  --spacing-post-margin: 15px;
  --spacing-content-padding: 10px;
  --spacing-sidebar-padding: 8px;

  /* Border Radius (Organic but Professional) */
  --radius-sm: 4px; /* Buttons */
  --radius-md: 8px; /* Cards */
  --radius-lg: 12px; /* Large containers */
  --radius-pill: 100px; /* Status badges */

  /* === LAYOUT DIMENSIONS === */

  /* Container widths */
  --width-site-container: 973px;
  --width-content-main: 650px;
  --width-content-offset: 658px;
  --width-post: 641px;
  --width-footer: 937px;
  --width-topnav: 916px;
  --width-searchbar: 431px;
  --width-searchbox: 298px;
  --width-lavalamp: 809px;
  --width-blockquote-side: 300px;
  --width-list-item: 550px;

  /* Heights */
  --height-topbar: 59px;
  --height-header: 169px;
  --height-header-content: 120px;
  --height-topnav: 29px;
  --height-footer: 44px;
  --height-topbg: 14px;
  --height-btmbg: 13px;
  --height-searchbar: 34px;
  --height-searchbox: 22px;
  --height-post-header: 27px;
  --height-post-bottom: 64px;
  --height-cat-item: 26px;
  --height-cat-item-link: 20px;
  --height-lavalamp: 26px;
  --height-lavalamp-back: 23px;
  --height-lavalamp-link: 20px;
  --height-postmeta-item: 15px;

  /* === BACKGROUND IMAGES === */

  /* Page structure backgrounds */
  --bg-body: url(../images/bg.jpg);
  --bg-wrap2: url(../images/pagebg.png);
  --bg-topbar: url(../images/topbar.jpg);
  --bg-topbg: url(../images/topbg.png);
  --bg-btmbg: url(../images/btmbg.png);
  --bg-header: url(../images/header.jpg);
  --bg-footer: url(../images/footer.jpg);
  --bg-content: url(../images/contengbg.jpg);
  --bg-menubar: url(../images/menubar.png);
  --bg-searchbar: url(../images/searchbar2.png);

  /* Post backgrounds */
  --bg-post-header: url(../images/postheader.jpg);
  --bg-post-content: url(../images/postbg.jpg);
  --bg-post-bottom: url(../images/postbottom.jpg);

  /* Navigation backgrounds */
  --bg-sidemenu-normal: url(../images/sidemenunrml.jpg);
  --bg-sidemenu-hover: url(../images/sidemenuhover.jpg);
  --bg-sidemenu-hover-alt: url(../images/sidemenuhover2.jpg);
  --bg-lavamenu-left: url(../images/lavamenu1.png);
  --bg-lavamenu-right: url(../images/lavamenu2.png);

  /* Icons */
  --bg-icon-bullet: url(../images/bullet.png);
  --bg-icon-date: url(../images/icodate.jpg);
  --bg-icon-permalink: url(../images/ico_permalink.jpg);
  --bg-icon-category: url(../images/ico_category.jpg);
  --bg-icon-comments: url(../images/ico_comments.jpg);

  /* === RESPONSIVE BREAKPOINTS === */

  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 973px;
  --breakpoint-wide: 1200px;

  /* === Z-INDEX SCALE === */

  --z-index-base: 1;
  --z-index-lavalamp-back: 8;
  --z-index-lavalamp-link: 10;
  --z-index-dropdown: 100;
  --z-index-modal: 1000;
}
