/*
Theme Name: Pets Passion
Theme URI: https://thepetspassion.com
Author: The Pets Passion Editorial Team
Author URI: https://thepetspassion.com
Description: Human-designed, editorial pet-care WordPress theme crafted for canine wellness, feline care, breed profiles, and interactive pet health calculators. AdSense policy-compliant architecture, zero page-builder bloat, sub-second Core Web Vitals, and WCAG 2.2 AA accessibility.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pets-passion
Tags: blog, news, pet-care, two-columns, custom-header, custom-menu, featured-images, flexible-header, translation-ready
*/

/* ==========================================================================
   GLOBAL DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
/* Font metric overrides match system fallbacks to web fonts to eliminate layout shift (CLS) */
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  src: local('Arial'), local('Segoe UI'), local('Helvetica Neue');
  ascent-override: 97%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 100%;
}
@font-face {
  font-family: 'Newsreader Fallback';
  src: local('Georgia'), local('Times New Roman');
  ascent-override: 86%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 106%;
}

:root {
  /* Typography */
  --tpp-font-sans: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tpp-font-serif: 'Newsreader', 'Newsreader Fallback', Georgia, 'Times New Roman', serif;
  
  /* Natural Editorial Color Palette (Restrained, Human-Designed) */
  --tpp-forest: #0D3B2E;
  --tpp-forest-dark: #08261E;
  --tpp-forest-light: #185E4B;
  --tpp-forest-soft: #EBF3F0;
  
  --tpp-cream: #FAF9F5;
  --tpp-surface: #FFFFFF;
  --tpp-surface-alt: #F4F1EB;
  
  --tpp-dark: #111827;
  --tpp-body: #374151;
  --tpp-muted: #6B7280;
  --tpp-border: #E5E2D9;
  --tpp-border-light: #F0EDE6;
  
  /* Restrained Category Badges */
  --badge-dog-bg: #FEF3C7;
  --badge-dog-color: #92400E;
  --badge-dog-border: #FDE68A;
  
  --badge-cat-bg: #E8F5E9;
  --badge-cat-color: #1E6B47;
  --badge-cat-border: #C8E6C9;
  
  --badge-health-bg: #F1F5F9;
  --badge-health-color: #334155;
  --badge-health-border: #CBD5E1;
  
  --badge-tool-bg: #EFF6FF;
  --badge-tool-color: #1E40AF;
  --badge-tool-border: #BFDBFE;

  --badge-emergency-bg: #FEF2F2;
  --badge-emergency-color: #991B1B;
  --badge-emergency-border: #FECACA;
  
  /* Restrained Border Radii (8-12px Standard) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-badge: 6px;
  
  /* Subtle, Natural Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 6px 16px -2px rgba(13, 59, 46, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  
  /* Layout Dimensions */
  --tpp-wrap-max: 1220px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--tpp-font-sans);
  background-color: var(--tpp-cream);
  color: var(--tpp-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--tpp-forest);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.tpp-wrap {
  max-width: var(--tpp-wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .tpp-wrap {
    padding: 0 16px;
  }
}

/* ==========================================================================
   PAGE HEADERS & TOOL PAGE ALIGNMENT
   ========================================================================== */
.tpp-page-header {
  max-width: 820px;
  margin: 36px auto 16px;
  padding: 0 16px;
  text-align: center;
}

.tpp-page-title {
  font-family: var(--tpp-font-serif, 'Newsreader', Georgia, serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--tpp-forest-dark, #0F382A);
  margin: 0 auto;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 768px) {
  .tpp-page-title {
    font-size: 28px;
  }
}

