/*
Theme Name: KP Theme
Theme URI: https://kharypenebaker.com
Description: Minimal blank theme for kharypenebaker.com. Replaces Kadence as the activation shell while all page rendering is handled by kp-template-router.php MU-plugin and Concept C templates.
Author: Khary Penebaker
Author URI: https://kharypenebaker.com
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: kp-theme
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 8.0
*/

/* ==========================================================================
   KP Design System — Core Variables
   ========================================================================== */

:root {
  /* Brand Colors */
  --cream: #FAF8F5;
  --ink: #0B0E1A;
  --body: #1A1F35;
  --amber: #D4812A;
  --amber-dark: #C07525;
  --amber-wcag: #B06E1F; /* WCAG AA compliant on cream */
  --amber-glow: rgba(212, 129, 42, 0.35);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 800px;
}

/* ==========================================================================
   Reset — Minimal, no Kadence artifacts
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--amber-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 2rem + 3vw, 5rem); }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip nav link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-nav:focus-visible {
  top: 0;
  color: var(--cream);
}

/* Global focus styles */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ==========================================================================
   Touch Targets — 44px minimum, 48px for primary CTAs
   ========================================================================== */

button, a, input, textarea, select {
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .nav, .social-float, .kp-scroll-progress, .kp-menu-overlay {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
