:root {
    --fea-navy: #0B2340;
    --fea-gold: #C9A14B;
    --fea-ivory: #F4EFE6;
    --fea-text: #333333;
    --fea-white: #ffffff;
    --fea-urgent: #8b1e1e;
}

html {
    box-sizing: border-box;
    font-size: 18px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--fea-navy);
    background: var(--fea-white);
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.fea-skip-link {
    position: fixed;
    z-index: 12000;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--fea-white);
    background: var(--fea-navy);
    border: 2px solid var(--fea-gold);
    border-radius: 4px;
    font: 700 0.85rem/1.2 "Lato", sans-serif;
    letter-spacing: 0.04em;
    text-decoration: none;
    transform: translateY(calc(-100% - 24px));
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.fea-skip-link:focus {
    transform: translateY(0);
}

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--fea-gold);
    outline-offset: 4px;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    line-height: 1;
}

p {
    margin-top: 0;
    margin-bottom: 1.75em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.fea-page-main {
    margin-top: 20px;
}

.fea-header-shell {
    position: absolute;
    z-index: 9999;
    top: 10px;
    right: 10px;
    left: 10px;
    height: 0;
}

.fea-source-section {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.fea-source-section[id] {
    scroll-margin-top: 24px;
}

.fea-source-inner {
    position: relative;
    width: 100%;
}

.fea-source-section--hero {
    z-index: 2;
    min-height: 950px;
    margin-top: -27px;
    justify-content: center;
    padding: 0 10px;
    background-color: var(--fea-navy);
    background-image: url("https://fea-sztuka.pl/wp-content/uploads/2026/01/fea.png");
    background-position: center center;
    background-size: cover;
}

.fea-source-section--hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: linear-gradient(180deg, #162D4A 0%, #000F20 100%);
    content: "";
    opacity: 0.75;
    pointer-events: none;
}

.fea-source-section--hero > .fea-source-inner {
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
}

.fea-source-section--news,
.fea-source-section--upcoming-summary,
.fea-source-section--gallery,
.fea-source-section--listen {
    background: var(--fea-white);
}

.fea-source-section--about {
    padding-bottom: 64px;
}

.fea-source-section--upcoming-summary,
.fea-source-section--competition,
.fea-source-section--support {
    padding: 10px;
}

.fea-source-section--upcoming-summary > .fea-source-inner,
.fea-source-section--listen > .fea-source-inner,
.fea-source-section--support > .fea-source-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.fea-source-section--gallery {
    padding-bottom: 100px;
}

.fea-source-section--gallery > .fea-source-inner {
    display: flex;
    max-width: 1344px;
    margin: 0 auto;
    flex-direction: column;
    gap: 20px;
}

.fea-gallery-cta-module {
    display: flow-root;
    margin-top: -15px;
}

.fea-footer-title {
    line-height: 1.2;
}

.fea-source-section--competition {
    align-items: center;
}

.fea-source-section--competition > .fea-source-inner {
    max-width: 1245px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    html,
    body {
        font-size: 16.416px;
    }

    .fea-source-section--hero {
        min-height: 742px;
        padding: 0;
    }

    .fea-source-section--hero > .fea-source-inner {
        padding-top: 60px;
    }

    .fea-source-section--about > .fea-source-inner {
        margin-top: 0;
    }

    .fea-source-section--editions {
        margin-top: -40px;
    }

    .fea-source-section--gallery {
        padding-bottom: 32px;
    }

    .fea-gallery-module {
        padding: 0 6px;
    }

    .fea-gallery-cta-module {
        position: relative;
        z-index: 12;
        margin-top: -25px;
        padding-bottom: 13.234px;
    }

    .fea-hamburger {
        font-size: 18.24px;
    }

    .fea-source-section--competition,
    .fea-source-section--support {
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
