/* Base styles and custom properties */
:root {
    --burgundy-50: #fdf2f2;
    --burgundy-100: #fce7e7;
    --burgundy-200: #f9d0d0;
    --burgundy-300: #f2a8a8;
    --burgundy-400: #e87070;
    --burgundy-500: #c44040;
    --burgundy-600: #a82e2e;
    --burgundy-700: #8a2424;
    --burgundy-800: #6e1e1e;
    --burgundy-900: #5a1818;
    --burgundy-950: #300c0c;
    --blush-50: #fdf8f6;
    --blush-100: #fceee9;
    --blush-200: #f9d8ce;
    --blush-300: #f4b5a3;
    --blush-400: #ec8a72;
    --blush-500: #e0634a;
    --blush-600: #cc4833;
    --blush-700: #a83626;
    --blush-800: #872b21;
    --blush-900: #6e251e;
    --blush-950: #3c0f0c;
}

/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero animations - above the fold, always visible */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Scroll reveal animations - below the fold only, progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
}

/* Default state for reveal elements - always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Hide from JS-enhanced reveal when needed */
.reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: var(--burgundy-600);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--burgundy-950);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-600);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blush-400);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Print styles */
@media print {
    nav, #hero, .reveal {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
