/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette - Warm Earthy Tones */
    --color-bg: #faf8f5;
    --color-surface: #ffffff;
    --color-surface-elevated: #f5f2ee;

    --color-primary: #8b6f47;
    --color-primary-hover: #6d5638;
    --color-primary-light: #a68a66;

    --color-accent: #c97d60;
    --color-accent-hover: #b36b51;

    --color-text-primary: #2d2a26;
    --color-text-secondary: #6b6560;
    --color-text-tertiary: #9c9490;

    --color-border: #e6e1db;
    --color-border-hover: #d4cec5;

    /* Status Colors */
    --color-success: #6a8e4e;
    --color-warning: #d08a3b;
    --color-caution: #c97d60;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;

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

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(45, 42, 38, 0.04), 0 1px 4px rgba(45, 42, 38, 0.04);
    --shadow-md: 0 2px 4px rgba(45, 42, 38, 0.06), 0 4px 8px rgba(45, 42, 38, 0.06);
    --shadow-lg: 0 4px 8px rgba(45, 42, 38, 0.08), 0 8px 16px rgba(45, 42, 38, 0.08);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

html {
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input:focus, button:focus, select:focus, textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Celebration Canvas */
#celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}
