/* Custom styles for Rainbow Lake Association */

/* Smooth font loading */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/cormorangaramond/v22/9BtAgTySlZiE4ig4ZUJ8ccQ.woff2') format('woff2');
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    color: #1a1a2e;
    background: #fefefe;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography scale */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    line-height: 1.1;
}

/* Selection color */
::selection {
    background: rgba(190, 24, 93, 0.15);
    color: #500724;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid #be185d;
    outline-offset: 4px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print styles */
@media print {
    nav, .mobile-menu, .hamburger { display: none; }
    .hero-bg { background: #500724 !important; }
    body { color: #000; background: #fff; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card { border-width: 2px; }
    .btn-primary { border-width: 2px; }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl { max-width: 80rem; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif-thin { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* Mobile adjustments */
@media (max-width: 360px) {
    .hero-bg { min-height: 100vh; }
    nav { padding: 0 1rem; }
}
