/*
Theme Name: massajio
Theme URI: https://massajio.com
Author: massajio team
Author URI: https://massajio.com
Description: Evidence-based massage resource site — responsive, mobile-first WordPress theme with dark mode support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: massajio
Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   Design Tokens — CSS Custom Properties (light + dark modes)
   Source: docs/design/tokens.md
   ========================================================================== */

:root {
  /* Background & Surface */
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-surface-raised: #f5f5f0;
  --color-surface-hover: #f0f0eb;

  /* Border */
  --color-border: #e4e4e0;
  --color-border-strong: #d4d4cf;
  --color-border-focus: #5f8a6e;

  /* Text */
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-muted: #a8a29e;
  --color-text-inverse: #fafaf8;
  --color-text-link: #5f8a6e;
  --color-text-link-hover: #4a7258;

  /* Accent — Sage Green (Primary) */
  --color-accent: #5f8a6e;
  --color-accent-hover: #4a7258;
  --color-accent-light: #e8f0eb;

  /* Accent — Terracotta (Warm) */
  --color-warm: #c27856;
  --color-warm-light: #fdf0ea;

  /* Accent — Slate Blue (Cool) */
  --color-cool: #5b7fa5;
  --color-cool-light: #e8eef5;

  /* Status */
  --color-success: #3d8b5e;
  --color-warning: #c27856;
  --color-error: #c44e4e;
  --color-info: #5b7fa5;

  /* Typography */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Lora', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-h1: 2rem;
  --text-h2: 1.5rem;
  --text-h3: 1.25rem;
  --text-h4: 1.125rem;
  --text-body-lg: 1.0625rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;
  --text-badge: 0.75rem;

  /* Content Width */
  --width-content: 48rem;
  --width-wide: 64rem;
  --width-full: 80rem;

  /* Spacing Scale (base: 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-Index */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;
}

.dark {
  /* Background & Surface */
  --color-bg: #18181b;
  --color-surface: #232326;
  --color-surface-raised: #2a2a2e;
  --color-surface-hover: #2e2e32;

  /* Border */
  --color-border: #3a3a3f;
  --color-border-strong: #4a4a4f;
  --color-border-focus: #6dbd8a;

  /* Text */
  --color-text: #f5f5f4;
  --color-text-secondary: #a8a29e;
  --color-text-muted: #78716c;
  --color-text-inverse: #1c1917;
  --color-text-link: #6dbd8a;
  --color-text-link-hover: #5f8a6e;

  /* Accent — Sage Green */
  --color-accent: #6dbd8a;
  --color-accent-hover: #5f8a6e;
  --color-accent-light: #1e2e23;

  /* Accent — Terracotta */
  --color-warm: #e09070;
  --color-warm-light: #2e1e16;

  /* Accent — Slate Blue */
  --color-cool: #7fa3c4;
  --color-cool-light: #1e2430;

  /* Status */
  --color-success: #6dbd8a;
  --color-warning: #e09070;
  --color-error: #e07070;
  --color-info: #7fa3c4;

  /* Shadows */
  --shadow-sm: none;
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

/* Respect OS preference by default */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --color-bg: #18181b;
    --color-surface: #232326;
    --color-surface-raised: #2a2a2e;
    --color-surface-hover: #2e2e32;
    --color-border: #3a3a3f;
    --color-border-strong: #4a4a4f;
    --color-border-focus: #6dbd8a;
    --color-text: #f5f5f4;
    --color-text-secondary: #a8a29e;
    --color-text-muted: #78716c;
    --color-text-inverse: #1c1917;
    --color-text-link: #6dbd8a;
    --color-text-link-hover: #5f8a6e;
    --color-accent: #6dbd8a;
    --color-accent-hover: #5f8a6e;
    --color-accent-light: #1e2e23;
    --color-warm: #e09070;
    --color-warm-light: #2e1e16;
    --color-cool: #7fa3c4;
    --color-cool-light: #1e2430;
    --color-success: #6dbd8a;
    --color-warning: #e09070;
    --color-error: #e07070;
    --color-info: #7fa3c4;
    --shadow-sm: none;
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  }
}
