:root {
    color-scheme: dark;

    --header-height: 72px;
    --section-height: 765px;

    --page-bg: #0b1015;

    --text-main: #e8edf2;
    --text-muted: #aeb8c1;
    --text-cold: #c8d8e8;
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;

    -webkit-text-size-adjust: none;
    text-size-adjust: none;

    overflow-x: auto;
}

body {
    margin: 0;
    padding: 0;

    overflow-x: auto;

    background: var(--page-bg);
    color: var(--text-main);

    font-family: Arial, sans-serif;
}

a {
    color: var(--text-cold);
    text-decoration: none;
}


/* =========================================================
   FIXED 1920px CANVAS
   560px text + 1360px artwork
   ========================================================= */

.site-canvas {
    width: 1920px;
    min-width: 1920px;

    margin-top: var(--header-height);

    zoom: 1;
}

main,
footer {
    width: 1920px;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 1920px;
    height: var(--header-height);

    z-index: 1000;

    padding: 0 115.2px;

    background: #0b1015;

    border-bottom:
        1px solid rgba(159, 179, 198, 0.18);
}

header nav {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    gap: 28px;
    flex-wrap: nowrap;
}

header nav a {
    font-size: 16px;
    white-space: nowrap;

    color: #b9c5cf;

    transition: color 0.2s ease;
}

header nav a:hover {
    color: #ffffff;
}

header nav a:first-child {
    margin-right: auto;
    margin-left: -67.55px;

    font-size: 20px;
    letter-spacing: 0.08em;

    color: #e5e8eb;
}


/* =========================================================
   UNIFIED SECTIONS
   ========================================================= */

main section {
    position: relative;

    scroll-margin-top: var(--header-height);
}

.site-section {
    width: 1920px;
    height: var(--section-height);
    min-height: var(--section-height);

    padding: 0;

    overflow: hidden;
    isolation: isolate;

    background: var(--page-bg);
}

.section__media {
    position: absolute;
    inset: 0 0 0 560px;

    z-index: 0;

    background-image: var(--section-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.site-section .section__content {
    position: relative;
    z-index: 2;

    width: 560px;
    max-width: none;
    height: var(--section-height);
    min-height: var(--section-height);

    padding:
        47.65px
        24px
        47.65px
        115.2px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background-image:
        url('/images/textures/fenris_wall_texture_1581x2160.webp');

    background-image:
        image-set(
            url('/images/textures/fenris_wall_texture_1581x2160.avif') type('image/avif'),
            url('/images/textures/fenris_wall_texture_1581x2160.webp') type('image/webp')
        );

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.section__title {
    margin:
        0
        0
        0
        -67.55px;

    font-size: 76.16px;
    line-height: 0.95;
    font-weight: 600;
}

.section__subtitle {
    margin:
        22px
        0
        0
        -67.55px;

    font-size: 27.6px;

    color: var(--text-cold);
}

.section__intro {
    max-width: 620px;

    margin:
        26px
        0
        0
        -67.55px;

    font-size: 14px;
    line-height: 1.6;

    color: var(--text-muted);
}

.section__link {
    display: inline-block;

    margin-top: auto;
    margin-left: -67.55px;

    padding: 14px 20px;

    font-size: 16px;

    border: 1px solid rgba(159, 179, 198, 0.38);
    background: rgba(7, 11, 15, 0.48);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.24);

    color: #dce6ee;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.section__link:hover {
    color: #ffffff;

    border-color: rgba(190, 210, 228, 0.58);
    background: rgba(10, 16, 22, 0.62);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 28px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   SECTION ARTWORK
   ========================================================= */

.hero {
    --section-image:
        url('/images/hero/leman-russ-hero-master-4k.webp');

    --section-image:
        image-set(
            url('/images/hero/leman-russ-hero-master-4k.avif') type('image/avif'),
            url('/images/hero/leman-russ-hero-master-4k.webp') type('image/webp')
        );
}

.hero .section__title {
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.hero .section__subtitle {
    margin-top: 28px;

    font-size: 25.2px;
}

.hero .section__intro {
    max-width: 600px;
}

.hero .section__link {
    color: var(--text-cold);
}

.fenris {
    --section-image:
        url('/images/fenris/fenris-ice-fire-asaheim-master-4k.webp');

    --section-image:
        image-set(
            url('/images/fenris/fenris-ice-fire-asaheim-master-4k.avif') type('image/avif'),
            url('/images/fenris/fenris-ice-fire-asaheim-master-4k.webp') type('image/webp')
        );
}

.fenris .section__intro {
    color: #bcc6ce;
}

.sons-of-russ {
    --section-image:
        url('/images/sons-of-russ/sons_of_russ_final_4k.webp');

    --section-image:
        image-set(
            url('/images/sons-of-russ/sons_of_russ_final_4k.avif') type('image/avif'),
            url('/images/sons-of-russ/sons_of_russ_final_4k.webp') type('image/webp')
        );
}

.sagas {
    --section-image:
        url('/images/sagas/sagas_4k.webp');

    --section-image:
        image-set(
            url('/images/sagas/sagas_4k.avif') type('image/avif'),
            url('/images/sagas/sagas_4k.webp') type('image/webp')
        );
}

.heroes {
    --section-image:
        url('/images/heroes/heroes_grimnar_bjorn_njal_4k.webp');

    --section-image:
        image-set(
            url('/images/heroes/heroes_grimnar_bjorn_njal_4k.avif') type('image/avif'),
            url('/images/heroes/heroes_grimnar_bjorn_njal_4k.webp') type('image/webp')
        );
}

.timeline {
    --section-image:
        url('/images/timeline/timeline_fire_and_ice_4k.webp');

    --section-image:
        image-set(
            url('/images/timeline/timeline_fire_and_ice_4k.avif') type('image/avif'),
            url('/images/timeline/timeline_fire_and_ice_4k.webp') type('image/webp')
        );
}

.gallery {
    --section-image:
        url('/images/gallery/gallery_archive_4k.webp');

    --section-image:
        image-set(
            url('/images/gallery/gallery_archive_4k.avif') type('image/avif'),
            url('/images/gallery/gallery_archive_4k.webp') type('image/webp')
        );
}

.about {
    --section-image:
        url('/images/about/about_fortress_wolf_4k.webp');

    --section-image:
        image-set(
            url('/images/about/about_fortress_wolf_4k.avif') type('image/avif'),
            url('/images/about/about_fortress_wolf_4k.webp') type('image/webp')
        );
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    min-height: var(--header-height);

    padding: 0 115.2px;

    display: flex;
    align-items: center;

    gap: 28px;

    background: #0b1015;

    border-top:
        1px solid rgba(159, 179, 198, 0.18);
}

.footer__top {
    flex: 0 0 auto;

    margin-left: -67.55px;

    font-size: 20px;
    letter-spacing: 0.08em;
    white-space: nowrap;

    color: #e5e8eb;
}

.footer__legal {
    margin: 0 0 0 auto;

    width: 560px;

    font-size: 11px;
    line-height: 1.45;
    text-align: left;

    color: #77838d;
}



.section__content > * {
    position: relative;
    z-index: 2;
}

.section__content::before {
    content: "";
    position: absolute;

    top: -70px;
    left: -90px;

    width: 690px;
    height: 400px;

    z-index: 1;
    pointer-events: none;

    /* Очень мягкое локальное затемнение только вокруг текста */
    background: radial-gradient(
        ellipse at 30% 48%,
        rgba(4, 7, 10, 0.76) 0%,
        rgba(4, 7, 10, 0.62) 25%,
        rgba(4, 7, 10, 0.42) 45%,
        rgba(4, 7, 10, 0.22) 62%,
        rgba(4, 7, 10, 0.08) 76%,
        rgba(4, 7, 10, 0.00) 92%
    );

    filter: blur(26px);
}

.section__content::after {
    content: "";
    position: absolute;

    top: 0;
    right: -90px;

    width: 180px;
    height: 100%;

    z-index: 1;
    pointer-events: none;

    /* Максимум затемнения точно на стыке X=560px */
    background: linear-gradient(
        90deg,
        rgba(5, 8, 11, 0.00) 0%,
        rgba(5, 8, 11, 0.20) 22%,
        rgba(5, 8, 11, 0.48) 40%,
        rgba(5, 8, 11, 0.72) 50%,
        rgba(5, 8, 11, 0.48) 60%,
        rgba(5, 8, 11, 0.20) 78%,
        rgba(5, 8, 11, 0.00) 100%
    );
}

/* =========================================================
   COMING SOON MODAL
   ========================================================= */

.coming-soon-trigger {
    appearance: none;

    font: inherit;
    font-size: 16px;

    background: transparent;
    color: var(--text-cold);

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.coming-soon-trigger:hover {
    color: #ffffff;

    border-color: #718496;

    background-color:
        rgba(200, 216, 232, 0.05);
}

.coming-soon-trigger:focus-visible {
    outline: 2px solid #9fb3c6;
    outline-offset: 4px;
}

html.modal-open,
body.modal-open {
    overflow: hidden;

    overscroll-behavior: none;
}

.coming-soon[hidden] {
    display: none;
}

.coming-soon {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}

.coming-soon__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(4, 7, 10, 0.82);

    backdrop-filter: blur(6px);
}

.coming-soon__dialog {
    position: relative;
    z-index: 1;

    width: min(720px, 100%);

    padding: 84px 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0b1015;

    border:
        1px solid rgba(159, 179, 198, 0.28);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55);
}

.coming-soon__close {
    position: absolute;
    top: 16px;
    right: 20px;

    padding: 4px 8px;

    border: 0;
    background: transparent;

    color: #aeb8c1;

    font: inherit;
    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease;
}

.coming-soon__close:hover {
    color: #ffffff;
}

.coming-soon__close:focus-visible {
    outline: 2px solid #9fb3c6;
    outline-offset: 4px;
}

.coming-soon__title {
    margin: 0;

    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    text-align: center;

    color: var(--text-main);
}


/* =========================================================
   DESKTOP CANVAS BEHAVIOR
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
    html {
        overflow-x: auto;
    }

    body {
        min-width: 1920px;

        overflow-x: visible;
    }
}



/* Art seam fade only */
.section__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 11, 0.62) 0px,
            rgba(5, 8, 11, 0.42) 18px,
            rgba(5, 8, 11, 0.22) 36px,
            rgba(5, 8, 11, 0.10) 54px,
            rgba(5, 8, 11, 0.00) 72px
        ),
        linear-gradient(
            to top,
            rgba(5, 8, 11, 0.62) 0px,
            rgba(5, 8, 11, 0.42) 18px,
            rgba(5, 8, 11, 0.22) 36px,
            rgba(5, 8, 11, 0.10) 54px,
            rgba(5, 8, 11, 0.00) 72px
        );
}
