/* assets/css/theme.css - Theme variables */
:root {
    /* Brand colors - forest steel, ivory, and champagne */
    --color-primary: #174a3a;
    --color-primary-dark: #102f27;
    --color-primary-light: #e5eee8;
    --color-primary-soft: #f0f5f1;
    --color-secondary: #2f6a53;
    --color-accent: #ad8242;
    --color-accent-soft: #d5b579;
    --color-copper: #8f6b36;

    /* Surfaces */
    --color-white: #ffffff;
    --color-bg: #fbfaf6;
    --color-off-white: #f4f2ea;
    --color-cream: #ebe9df;
    --color-light-gray: #dde4df;
    --color-border: #cfdbd2;
    --color-text: #183129;
    --color-medium-gray: #64746b;
    --color-dark-gray: #43554c;
    --color-charcoal: #183129;
    --color-navy: #102f27;

    /* Metallic / silver tones */
    --color-silver: #aab7b1;
    --color-silver-light: #e7ece8;
    --color-silver-dark: #74837c;

    /* Status Colors */
    --color-success: #16a34a;
    --color-error: #dc2626;
    --color-warning: #d97706;
    --color-info: #2563eb;
    --color-muted: #6b7280;

    /* Typography - Premium Luxury Serif for Headings, Clean Sans for Body */
    --font-family-base: 'Plus Jakarta Sans', 'Inter', 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: 'Playfair Display', 'Cormorant Garamond', 'Georgia', 'Cambria', 'Times New Roman', serif;

    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.15;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;

    /* Design-token Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Section Spacing Scale */
    --section-y: clamp(2.5rem, 5vw, 4rem);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.125rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(16, 47, 39, 0.08);
    --shadow-md: 0 8px 22px -10px rgba(16, 47, 39, 0.16), 0 2px 6px -3px rgba(16, 47, 39, 0.08);
    --shadow-lg: 0 22px 48px -20px rgba(16, 47, 39, 0.25), 0 8px 16px -10px rgba(16, 47, 39, 0.12);
    --shadow-xl: 0 32px 72px -26px rgba(16, 47, 39, 0.32), 0 12px 26px -16px rgba(16, 47, 39, 0.14);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms cubic-bezier(0.25, 0.6, 0.3, 1);
    --transition-slow: 500ms cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Layout */
    --header-height: 78px;
    --max-width: 1280px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ------------------------------------------------------------------
   Touch / small-screen form-control floor
   ------------------------------------------------------------------
   Mobile Safari (and some Android browsers) zoom the whole viewport
   when a focused control's computed font-size is below 16px. Several
   per-page stylesheets render their inputs at 14px / 0.95rem
   (the footer newsletter field, the premium auth inputs, the shop
   search field and the sort <select>), so tapping them rescaled the
   page and pushed the field partly off-screen.

   This lifts every text-like control to the accessible 16px baseline
   on phones, tablets and any coarse-pointer device. It is scoped so
   desktop sizing is unchanged, and deliberately uses !important
   because the per-page rules it must beat are more specific
   (e.g. `.newsletter-form input`). A control's font-size is never
   toggled by script, so this cannot fight a CSSOM write.
   ------------------------------------------------------------------ */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}
