:root {
    --bg: #FFFFFF;
    --surface: #F8F5F4;
    --surface-alt: #F1DCD9;
    --text: #211412;
    --text-muted: #725C5A;
    --border: #E4D9D8;
    --primary: #E32A10;
    --primary-hover: #C2240E;
    --accent: #AFE6FA;
    --dark-band: #AA1F0C;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    padding: 80px 0 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 0.95rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.05rem;
    }

    h5 {
        font-size: 0.95rem;
    }

    a,
    span,
    p {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ===== header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.js-nav-link:focus-visible {
    outline: 2px solid #E32A10;
    outline-offset: 2px;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero a.js-hero-anchor {
    text-decoration: none;
    display: inline-flex;
}

#hero h1 {
    hyphens: auto;
    line-height: 1.2;
}

/* ===== latest_news_section ===== */
#news {
    overflow: hidden;
}

.js-news-card {
    hyphens: auto;
}

/* ===== exclusive_gallery ===== */
.js-gallery-zoom {
    cursor: zoom-in;
}

.js-gallery-zoom:focus-visible {
    outline: 3px solid #E32A10;
    outline-offset: -3px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 12, 10, 0.92);
    backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__figure {
    width: min(1100px, 100%);
    max-height: calc(100vh - 48px);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__caption {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
}

.gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #211412;
    font-size: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ===== event_overview_section ===== */
#overview {
    color: #211412;
}

#overview h2 {
    color: #211412;
}

#overview p {
    color: #725C5A;
}

/* ===== teams_and_stars_section ===== */
#teams-stars {
    overflow: hidden;
}

/* ===== basketball_in_numbers ===== */
#stats {
    overflow: hidden;
}

#stats .js-stat-card {
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
}

#stats .js-stat-card:hover {
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.35);
}

/* ===== history_timeline_section ===== */
#history {
    overflow: hidden;
}

#history .js-history-modal:not(.hidden) {
    display: flex;
}

#history .js-history-modal.hidden {
    display: none;
}

/* ===== paris_streetball_culture ===== */
#paris-culture {
    overflow: hidden;
}

#paris-culture .paris-card {
    height: 100%;
}

#paris-culture h2,
#paris-culture h3 {
    hyphens: auto;
}

@media (max-width:767px) {
    #paris-culture h2 {
        line-height: 1.2;
        font-size: 16px;
    }

    #paris-culture h3 {
        line-height: 1.2;
        font-size: 14px;
    }
}

/* ===== analytics_breakdowns_section ===== */
#analytics {
    overflow: hidden;
}

#analytics h2,
#analytics h3 {
    hyphens: auto;
}

/* ===== visual_gallery_section ===== */
#gallery {
    overflow: hidden
}

#gallery h2,
#gallery h3 {
    hyphens: auto
}

#gallery .js-gallery-card {
    box-shadow: 0 12px 28px -6px rgba(33, 20, 18, 0.08)
}

#gallery .js-gallery-card:hover {
    box-shadow: 0 22px 38px -6px rgba(227, 42, 16, 0.18)
}

/* ===== faq_section ===== */
#faq .faq-item {
    box-shadow: 0 10px 25px -5px rgba(33, 20, 18, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

#faq .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -4px rgba(227, 42, 16, 0.1);
}

#faq .js-faq-panel {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* ===== contact_editorial_section ===== */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #725C5A;
    opacity: 0.75;
}

#contact input:focus,
#contact textarea:focus {
    box-shadow: 0 0 0 3px rgba(227, 42, 16, 0.15);
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    transition: color 0.2s ease-in-out;
}

#footer a:focus-visible {
    outline: 2px solid #AFE6FA;
    outline-offset: 2px;
}
