:root {
    --story-black: #030304;
    --story-panel: rgba(12, 5, 7, .9);
    --story-red: #e3313f;
    --story-line: rgba(227, 49, 63, .34);
}

.antagonist-story-page {
    --global-nav-background: #080305;
    --global-footer-background: #180509;
    --global-footer-color: #f8e9eb;
    min-width: 320px;
    padding-bottom: var(--global-footer-height);
    color: #f1e9ea;
    background: radial-gradient(circle at 50% 18%, rgba(139, 12, 24, .28), transparent 38rem), var(--story-black);
    font-family: Georgia, "Times New Roman", serif;
}

.antagonist-story-page .navbar {
    border-bottom: 1px solid var(--story-line);
    background: rgba(2, 2, 3, .96);
}

.antagonist-story-page .site-footer {
    border-top: 1px solid var(--story-line);
    color: var(--global-footer-color);
    background: linear-gradient(90deg, #0c0305, #24070d 50%, #0c0305);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .36);
}

.antagonist-story-page .nav-links a:hover,
.antagonist-story-page .nav-links a:focus-visible,
.antagonist-story-page .nav-links a.active {
    color: #ff5360;
}

.story-main {
    width: min(100% - (2 * var(--global-page-gutter)), 1180px);
    max-width: 100vw;
    min-width: 0;
    margin-inline: auto;
    padding-block: calc(var(--global-header-height) + clamp(1.5rem, 4vw, 3.5rem)) clamp(3rem, 7vw, 6rem);
}

.story-article {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--story-line);
    background: linear-gradient(145deg, var(--story-panel), rgba(2, 2, 3, .98));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .62);
}

.story-hero {
    position: relative;
    min-height: clamp(320px, 56vw, 660px);
}

.story-hero img {
    display: block;
    width: 100%;
    height: clamp(320px, 56vw, 660px);
    object-fit: cover;
    filter: saturate(.86) contrast(1.08) brightness(.72);
}

.story-dossier .story-hero img {
    object-position: 54% center;
}

.story-workshop .story-hero img {
    object-position: center 42%;
}

.story-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #050304 0, rgba(5, 3, 4, .16) 58%, rgba(0, 0, 0, .2));
    pointer-events: none;
}

.story-heading {
    position: absolute;
    z-index: 1;
    inset: auto clamp(1.25rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 760px;
}

.story-kicker {
    margin-bottom: .7rem;
    color: #ff5360;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.story-heading h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5.6rem);
    font-weight: 400;
    line-height: .98;
    text-transform: uppercase;
}

.story-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 1.25rem;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.story-lead {
    margin: 0;
    color: #ff6570;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.55;
}

.story-body p:not(.story-lead) {
    margin: 0;
    color: #d0c5c7;
    line-height: 1.75;
}

.story-body p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: .8rem;
}

.story-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .75rem 1.15rem;
    border: 1px solid var(--story-red);
    color: #fff;
    background: rgba(227, 49, 63, .08);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.story-link:hover,
.story-link:focus-visible {
    background: rgba(227, 49, 63, .22);
    box-shadow: 0 0 22px rgba(227, 49, 63, .25);
}

.story-error {
    padding: 4rem 1.5rem;
    color: #ff6570;
    text-align: center;
}

@media (max-width: 900px) {
    .story-hero,
    .story-hero img {
        min-height: 360px;
        height: 58vw;
        max-height: 520px;
    }

    .story-dossier .story-hero img {
        object-position: 60% center;
    }

    .story-heading h1 {
        font-size: clamp(2.25rem, 8vw, 4.5rem);
    }
}

@media (max-width: 620px) {
    .story-main {
        width: 100%;
        max-width: 100vw;
        padding-top: var(--global-header-height);
        overflow-x: hidden;
    }

    .story-article {
        border-inline: 0;
    }

    .story-hero {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        max-height: none;
        flex-direction: column;
        background: #080305;
    }

    .story-hero img,
    .story-dossier .story-hero img,
    .story-workshop .story-hero img {
        display: none;
    }

    .story-hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2;
        background-color: #080305;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        filter: saturate(.92) contrast(1.06) brightness(.82);
    }

    .story-dossier .story-hero::before {
        background-image: url("../../assets/antagonists/behind_story.jpeg");
    }

    .story-workshop .story-hero::before {
        background-image: url("../../assets/antagonists/workspace.jpeg");
    }

    .story-hero::after {
        display: none;
    }

    .story-heading {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 1.35rem 1.25rem 1.6rem;
        border-top: 1px solid var(--story-line);
        background: linear-gradient(135deg, rgba(35, 8, 14, .96), #080305);
    }

    .story-heading h1 {
        max-width: 100%;
        font-size: clamp(1.85rem, 7.8vw, 2.65rem);
        line-height: 1.02;
        text-wrap: wrap;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .story-body {
        padding: 1.5rem 1.25rem 2.25rem;
    }

    .story-actions,
    .story-link {
        width: 100%;
    }

    .story-link {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-link {
        transition: none;
    }
}
