:root {
    --bg-color: #FFFFFF; /* Pure white for seamless blending */
    --text-main: #1A1A1A; /* Near black for crisp contrast */
    --accent-color: #4A2866; /* Deep Purple */
    --gold-color: #C5A059; /* Gold */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-serif);
    line-height: 1.6;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* TOP HEADER */
.header-top {
    margin-bottom: 2.5rem;
}
.brand-name {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.sub-brand {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: #666;
    text-transform: uppercase;
}

/* TITLE BLOCK */
.title-block {
    margin-bottom: 2.5rem;
    width: 100%;
}
h1 {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
h2 {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    color: #444;
}

/* DIVIDER */
.divider {
    width: 80px;
    height: 2px;
    background-color: var(--gold-color);
    margin: 0 auto 3rem auto;
}

/* SCORE SNIPPET */
.score-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}
.score-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 1rem;
    box-shadow: none;
}
.score-caption {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #888;
    text-transform: uppercase;
}

/* HERO LYRIC */
.hero-lyric {
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding: 0 1rem;
}

.dot-divider {
    color: var(--gold-color);
    font-size: 1.5rem;
    line-height: 0;
    margin-bottom: 3rem;
}

/* CREDITS & DEDICATION */
.credits-block {
    margin-bottom: 4rem;
}
.credits-top {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.credits-mid {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 2rem;
}
.dedication {
    font-size: 1.2rem;
    color: #444;
    max-width: 80%;
    margin: 0 auto;
}

/* Audio Player */
.player-section {
    margin: 0 0 4rem 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.play-btn, .action-btn {
    display: inline-block;
    border: 1px solid var(--accent-color);
    padding: 0.8rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.4s ease;
    background: transparent;
}

.play-btn:hover, .action-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.hidden { display: none !important; }

.custom-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 1px solid rgba(74, 40, 102, 0.1);
}

.controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

#toggle-play {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.timeline {
    width: 100%;
    height: 2px;
    -webkit-appearance: none;
    background: #e0e0e0;
    outline: none;
    margin-bottom: 0.5rem;
}

.timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #888;
}

.score-link-wrapper {
    margin: 4rem 0;
}

/* Misc */
h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--accent-color);
}
.placeholder-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wedding-day {
    margin: 6rem 0;
    padding-top: 4rem;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
}

footer {
    padding: 3rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .hero-lyric { font-size: 1.8rem; }
    .dedication { max-width: 100%; }
}
