:root {
    /* Colors */
    --color-primary: #EECE18;
    --color-secondary: #333333;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-cream: #F4F3EB;
    --color-light-beige: #F3F1E6;
    --color-light-gray: #D0D0D0;
    --color-muted-gray: #9D9D9D;

    /* Background Colors */
    --bg-primary: var(--color-cream);
    --bg-secondary: var(--color-light-beige);
    --bg-white: var(--color-white);
    --bg-accent: var(--color-primary);

    /* Text Colors */
    --text-primary: var(--color-secondary);
    --text-secondary: var(--color-white);
    --text-accent: var(--color-black);
    --text-muted: var(--color-muted-gray);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Grape Nuts', cursive;

    /* Font Sizes - Desktop */
    --text-xs: 10px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    --text-3xl: 48px;
    --text-4xl: 64px;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-bold: 700;

    /* Line Heights */
    --leading-tight: 1.21;
    --leading-normal: 1.225;

    /* Spacing - Desktop */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;

    /* Container Padding - Desktop */
    --container-padding: 2.75rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 5px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 11px;
    --radius-3xl: 16px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 6px 8px 4px 0px rgba(0, 0, 0, 0.1);
    --shadow-md: 9px 11px 4px 0px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0px 11px 12.7px 26px rgba(238, 206, 24, 0.1);

    /* Container Widths */
    --container-sm: 768px;
    --container-md: 1024px;
    --container-lg: 1280px;
    --container-xl: 1366px;

    /* Overlays */
    --overlay-light: rgba(255, 255, 255, 0.22);
    --overlay-dark: rgba(108, 94, 17, 0.31);

    /* Stroke Widths */
    --stroke-thin: 1px;
    --stroke-medium: 4px;
    --stroke-thick: 5px;
    --stroke-heavy: 13px;

    /* Grid & Layout */
    --grid-gap: var(--space-lg);
    --card-padding: var(--space-lg);
    --section-padding: var(--space-4xl);
}

/* Mobile Responsive Variables */
@media (max-width: 768px) {
    :root {
        /* Font Sizes - Mobile */
        --text-xs: 9px;
        --text-sm: 12px;
        --text-base: 14px;
        --text-lg: 16px;
        --text-xl: 18px;
        --text-2xl: 24px;
        --text-3xl: 32px;
        --text-4xl: 40px;

        /* Spacing - Mobile */
        --space-xs: 4px;
        --space-sm: 8px;
        --space-md: 12px;
        --space-lg: 16px;
        --space-xl: 20px;
        --space-2xl: 24px;
        --space-3xl: 32px;
        --space-4xl: 40px;

        /* Container Padding - Mobile */
        --container-padding: 0.75rem;

        /* Grid & Layout - Mobile */
        --grid-gap: var(--space-md);
        --card-padding: var(--space-md);
        --section-padding: var(--space-2xl);

        /* Shadows - Mobile (reduced) */
        --shadow-sm: 3px 4px 2px 0px rgba(0, 0, 0, 0.1);
        --shadow-md: 4px 6px 3px 0px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet Responsive Variables */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        /* Font Sizes - Tablet */
        --text-4xl: 52px;
        --text-3xl: 40px;
        --text-2xl: 28px;

        /* Spacing - Tablet */
        --space-3xl: 40px;
        --space-4xl: 52px;
        --section-padding: var(--space-3xl);

        /* Container Padding - Tablet */
        --container-padding: 1.5rem;
    }
}

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

body {
    background: #F4F3EB;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-md);
    font-weight: var(--font-medium);
    font-family: var(--font-primary);
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
}

h3 {
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
}

h4 {
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
}

h5 {
    font-size: var(--text-lg);
    line-height: var(--leading-tight);
}

h6 {
    font-size: var(--text-base);
    line-height: var(--leading-tight);
}

p {
    margin-bottom: var(--space-lg);
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-primary);
}

a:hover {
    text-decoration: underline;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--text-accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
    /* Touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: color-mix(in srgb, var(--color-primary) 85%, black);
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-accent);
    border: var(--stroke-thin) solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--text-accent);
}

/* Form elements */
input,
textarea,
select {
    width: 100%;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border: var(--stroke-thin) solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: var(--text-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(238, 206, 24, 0.2);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Background utilities */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-accent {
    background-color: var(--bg-accent);
}

/* Text color utilities */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--text-accent);
}

.text-muted {
    color: var(--text-muted);
}

/* Font weight utilities */
.font-normal {
    font-weight: var(--font-normal);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

/* Border radius utilities */
.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-block {
        display: block !important;
    }

    .mobile-flex {
        display: flex !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-text-left {
        text-align: left !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-padding {
        padding: var(--space-md) !important;
    }

    .mobile-margin-bottom {
        margin-bottom: var(--space-lg) !important;
    }
}



/* Card Components */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--card-padding);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Section Spacing */
.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-sm {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

/* Responsive Typography */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.3;
    }

    .mobile-text-sm {
        font-size: var(--text-sm) !important;
    }

    .mobile-text-base {
        font-size: var(--text-base) !important;
    }

    .mobile-text-lg {
        font-size: var(--text-lg) !important;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        background: var(--color-primary);
    }

    .btn:active {
        background: color-mix(in srgb, var(--color-primary) 85%, black);
        transform: scale(0.98);
    }

    .card:hover {
        transform: none;
    }

    .card:active {
        transform: scale(0.98);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --text-muted: var(--color-secondary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
