/* css/base.css - Reset & Global Typography */

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    font-size: var(--font-size-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Selection Coloring (Luxury Brand) */
::selection {
    background-color: var(--soft-gold);
    color: var(--deep-espresso);
}

/* Elegant Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-text-secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 400;
    color: inherit;
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-h3);
    line-height: 1.2;
}

h4 {
    font-size: var(--font-size-h4);
    line-height: 1.3;
}

p {
    max-width: var(--text-measure-ch);
    margin-bottom: 1.5rem;
}

p.lead {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) var(--ease-spring),
                border-color var(--transition-speed) var(--ease-spring);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--soft-gold);
    outline-offset: 3px;
}

/* Common Eyebrow Style */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--font-size-eyebrow);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

/* Scroll Reveal Initial States (Managed via IntersectionObserver in animations.js) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-spring), 
                transform 1.2s var(--ease-spring);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}
