/* ==========================================================================
   Base - Reset, Typography, Foundation
   ========================================================================== */

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

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

body {
    font-family: var(--mm-font-body);
    font-size: var(--mm-text-base);
    font-weight: var(--mm-weight-regular);
    line-height: var(--mm-leading-normal);
    color: var(--mm-white);
    background-color: var(--mm-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mm-font-heading);
    font-weight: var(--mm-weight-semibold);
    line-height: var(--mm-leading-tight);
    color: var(--mm-white);
    letter-spacing: 0.01em;
}

h1 { font-size: var(--mm-text-3xl); font-weight: var(--mm-weight-bold); }
h2 { font-size: var(--mm-text-2xl); font-weight: var(--mm-weight-bold); }
h3 { font-size: var(--mm-text-xl); }
h4 { font-size: var(--mm-text-lg); }
h5 { font-size: var(--mm-text-md); }
h6 { font-size: var(--mm-text-base); }

p {
    margin-bottom: var(--mm-space-sm);
    color: var(--mm-soft-gray);
}

/* Ensure pure white on key elements */
.mm-hero__title,
.mm-page-hero__title,
.mm-section-header__title,
.mm-card__title,
.mm-card__title a,
.mm-testimonial__author,
.mm-stat__number,
.mm-artist-card__name a,
.mm-timeline-event__title a {
    color: #ffffff;
}

a {
    color: var(--mm-gold);
    text-decoration: none;
    transition: color var(--mm-transition);
}

a:hover,
a:focus {
    color: var(--mm-gold-light);
}

strong, b {
    font-weight: var(--mm-weight-semibold);
}

em, i {
    font-style: italic;
}

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

ul, ol {
    list-style: none;
}

blockquote {
    font-family: var(--mm-font-accent);
    font-size: var(--mm-text-xl);
    font-style: italic;
    color: var(--mm-champagne);
    border-left: 3px solid var(--mm-gold);
    padding-left: var(--mm-space-md);
    margin: var(--mm-space-lg) 0;
}

hr {
    border: none;
    height: 1px;
    background: var(--mm-dark-gray);
    margin: var(--mm-space-lg) 0;
}

/* Selection */
::selection {
    background-color: var(--mm-gold);
    color: var(--mm-black);
}

::-moz-selection {
    background-color: var(--mm-gold);
    color: var(--mm-black);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--mm-gold);
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: var(--mm-charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--mm-medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mm-gold);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--mm-gold);
    color: var(--mm-black);
    padding: var(--mm-space-xs) var(--mm-space-sm);
    z-index: 9999;
    font-weight: var(--mm-weight-semibold);
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Label / Tag styles */
.mm-label {
    font-family: var(--mm-font-body);
    font-size: var(--mm-text-xs);
    font-weight: var(--mm-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--mm-tracking-widest);
    color: var(--mm-gold);
    display: inline-block;
    margin-bottom: var(--mm-space-sm);
}

/* Gold decorative line */
.mm-gold-line {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--mm-gradient-gold);
    margin-top: var(--mm-space-md);
}

.mm-gold-line--center {
    margin-left: auto;
    margin-right: auto;
}

/* Text utilities */
.text-gold { color: var(--mm-gold); }
.text-white { color: var(--mm-white); }
.text-gray { color: var(--mm-soft-gray); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.text-accent { font-family: var(--mm-font-accent); }
