:root {
    --primary-background: #FAF9F6;
    --primary-text: #222222;
    --accent-color: #FF4D8D;
    --secondary-text: #555555;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: transform 0.2s ease, background-color 0.3s ease, opacity 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: inherit;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.5rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    body {
        font-size: 0.95rem;
    }

    .mobile-break-word {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== header ===== */
#main-header {
    font-family: var(--font-family);
}

.js-mobile-menu:not(.hidden) {
    display: block;
}

/* ===== hero_section ===== */
section#hero {
    background-color: var(--primary-background);
}

.text-accent-custom {
    color: var(--accent-color);
}

/* ===== about_rosalia ===== */
#about {
    scroll-margin-top: 2rem;
    font-family: var(--font-family);
}

#about img {
    transition: transform 0.5s ease-in-out;
}

#about img:hover {
    transform: scale(1.02);
}

/* ===== path_to_success ===== */
#biography {
    position: relative;
    overflow: hidden;
}

/* ===== discography_cards ===== */
#albums {
    font-family: var(--font-family);
}

.js-album-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.js-album-card:hover {
    transform: translateY(-8px);
}

/* ===== unique_sound ===== */
#sound {
    background-color: var(--primary-background);
    font-family: var(--font-family);
}

.text-primary-custom {
    color: var(--primary-text);
}

.text-secondary-custom {
    color: var(--secondary-text);
}

.text-accent-custom {
    color: var(--accent-color);
}

.border-accent-custom {
    border-color: var(--accent-color);
}

/* ===== popular_songs ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== awards_section ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* ===== cultural_impact ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== faq_accordion ===== */
.collapse-title::after {
    color: var(--accent-color) !important;
}

.collapse-plus input[type="radio"]:checked~.collapse-title {
    color: var(--accent-color) !important;
}

.collapse {
    transition: all 0.3s ease;
}

.collapse:hover {
    border-color: var(--accent-color) !important;
}

/* ===== visual_style ===== */
#gallery .js-gallery-item {
    transform: translateZ(0);
}

/* ===== footer ===== */
#main-footer {
    position: relative;
    width: 100%;
}