/**
 * PK TimberCraft - Design Tokens & Custom Properties
 *
 * @package pk
 * @version 1.0.0
 */

:root {
  /* Brand Typography */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Source Sans 3', sans-serif;

  /* Color Palette */
  --color-timber-dark: #2a1c12;        /* Main dark brand wood */
  --color-timber-deep: #3d2a14;        /* Rich walnut */
  --color-timber-brown-accent: #4b2b16; /* Brand brown accent colour */
  --color-timber-light-brown: #f0e2cd; /* Light brown tone */
  --color-timber-sand: #d4c4a8;        /* Light warm timber / sand CTA */
  --color-timber-sand-hover: #e0d2ba;  /* Hover state for sand */
  --color-timber-accent: #c4a574;      /* Gold timber accent */
  --color-timber-cream: #f9f7f4;       /* Subtle off-white page background */
  --color-timber-surface: #ffffff;     /* White card / surface */
  --color-timber-border: rgba(61, 42, 20, 0.14); /* Subtle organic border */
  --color-timber-border-light: rgba(61, 42, 20, 0.08);
  --color-timber-muted: #6b584b;       /* Muted body / captions */
  --color-timber-text: #2a1c12;        /* Primary reading text */

  /* Layout Constraints (1440px content container matching header) */
  --container-max: 1440px;
  --container-wide: 1440px;
  --content-max: 1440px;
  --content-narrow: 840px;
  --container-gutter: clamp(1rem, 2.5vw, 2.5rem);

  /* Fluid Typography Scale (using clamp for smooth scaling 340px -> 1920px) */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);   /* 12px - 13px */
  --font-size-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.875rem); /* 13px - 14px */
  --font-size-base: clamp(0.9375rem, 0.88rem + 0.3vw, 1rem);   /* 15px - 16px */
  --font-size-md: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);/* 17px - 19px */
  --font-size-lg: clamp(1.2rem, 1.05rem + 0.7vw, 1.375rem);    /* 19px - 22px */
  --font-size-h3: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);      /* 21px - 28px */
  --font-size-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.4rem);     /* 28px - 38px */
  --font-size-h1: clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem);       /* 35px - 54px */
  --font-size-hero: clamp(2.1rem, 1.6rem + 2.8vw, 4rem);       /* 33px - 64px */

  /* Fluid Spacing Scale */
  --space-xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);   /* 4px - 8px */
  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.875rem);  /* 8px - 14px */
  --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);        /* 16px - 24px */
  --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);    /* 24px - 40px */
  --space-xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);        /* 40px - 64px */
  --space-2xl: clamp(3.5rem, 2.8rem + 3.5vw, 6rem);     /* 56px - 96px */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-input: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 28, 18, 0.06);
  --shadow-md: 0 4px 14px rgba(42, 28, 18, 0.08);
  --shadow-lg: 0 12px 32px rgba(42, 28, 18, 0.12);
  --shadow-hover: 0 16px 40px rgba(42, 28, 18, 0.16);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Touch Ergonomics Minimum */
  --touch-target-min: 44px;
  --input-height: 48px;
}
