/* Modern CSS Reset with Professional Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main#main {
    position: relative;
    z-index: 1;
    
}
/* Professional Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h5 { 
    font-size: 1.25rem;
}

h6 { 
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Professional Media Elements */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Professional Form Elements */
input, button, textarea, select {
    font: inherit;
    border: none;
    background: none;
    border-radius: var(--radius-md);
}

button {
    cursor: pointer;
    background: none;
    transition: all var(--transition-fast);
}

/* Professional Links */
a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--apple-green);
}

/* Professional Lists */
ul, ol {
    list-style: none;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--apple-green);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Professional Selection */
::selection {
    background-color: var(--apple-green-bright);
    color: var(--primary-blue);
}

::-moz-selection {
    background-color: var(--apple-green-bright);
    color: var(--primary-blue);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}