/* =========================================
   FONT DISPLAY OPTIMIZATION
   ========================================= */

/* Font display swap for better loading performance */
@font-face {
    font-family: 'Inter';
    src: local('Inter');
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: local('Playfair Display');
    font-display: swap;
}

/* =========================================
   BASE STYLES & RESET
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-padding-top: var(--nav-scroll-offset);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: white;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: initial;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--sage-green);
    outline-offset: 3px;
}

p {
    margin: 0;
    color: var(--text-primary);
}

/* Accessibility utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--dew-white);
    color: var(--forest-dark);
    font-weight: 600;
    transform: translateY(-220%);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.skip-link:focus {
    transform: translateY(0);
    box-shadow: 0 12px 24px var(--shadow-dark-25);
}

.page {
    min-height: 100vh;
}

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--sky-blue);
    outline-offset: 3px;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--dark-blue) 50%, var(--moss-green) 100%);
    z-index: 1000;
    transition: width 50ms linear;
    box-shadow: 0 2px 8px rgba(18, 97, 140, 0.3);
}