@font-face {
    font-family: "Cinzel";
    src: url("assets/fonts/Cinzel.ttf") format("truetype");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink:          #2a170c;
    --ink-soft:     #4a2e1b;
    --blood:        #8e2528;
    --blood-deep:   #5a0d0d;
    --ember:        #ff8a3d;
    --ember-hot:    #ffd9a0;
    --bone:         #efe6d6;
    --bone-dim:     #b9ad9a;
    --steel:        #c9c9c9;
    --panel:        #1b1b1b;

    --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
    --body:  Georgia, "Iowan Old Style", "Palatino Linotype", serif;

    --max:   1080px;
    --gutter: 16px;

    color-scheme: dark;
}

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

html {
    background: #0d0907;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--bone);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #d9cbb2 url("assets/img/background.jpg") center / cover no-repeat;
}

#embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.page {
    position: relative;
    z-index: 1;
}

a {
    color: var(--ember);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ember-hot);
}

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

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px var(--gutter) 96px;
    text-align: center;
    position: relative;
}

.hero-logo {
    margin: 0;
    width: min(880px, 100%);
    line-height: 0;
    animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both;
    filter: drop-shadow(0 18px 24px rgba(20, 5, 0, .45));
}

.hero-logo img {
    display: block;
    width: 100%;
}

.plaque {
    margin-top: clamp(4px, 1.5vw, 14px);
    width: min(640px, 96%);
    aspect-ratio: 2300 / 477;
    background: url("assets/img/plaque.png") center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 9%;
    white-space: nowrap;
    animation: rise 1.1s .15s cubic-bezier(.2, .7, .2, 1) both;
    filter: drop-shadow(0 8px 12px rgba(20, 5, 0, .35));
}

.plaque span {
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(12px, 3.3vw, 24px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #120606;
    line-height: 1.1;
}

.hero-lead {
    max-width: 38em;
    margin: 26px auto 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(16px, 2.1vw, 21px);
    line-height: 1.55;
    color: var(--ink);
    text-shadow: 0 0 14px rgba(245, 235, 215, .9), 0 0 3px rgba(245, 235, 215, .9);
    animation: rise 1.1s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    justify-content: center;
    margin-top: 34px;
    animation: rise 1.1s .45s cubic-bezier(.2, .7, .2, 1) both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 250px;
    min-height: 64px;
    padding: 0 22px;
    border-style: solid;
    border-width: 22px 16px 21px 16px;
    border-image: url("assets/img/button.png") 22 16 21 16 fill stretch;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff4e6;
    text-shadow: 0 2px 0 #2a0404, 0 0 10px rgba(0, 0, 0, .6);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
    transition: transform .18s ease, filter .18s ease;
}

.btn img {
    width: 26px;
    height: 26px;
}

.btn:hover,
.btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.18) drop-shadow(0 0 16px rgba(255, 110, 40, .55)) drop-shadow(0 8px 12px rgba(0, 0, 0, .5));
}

.btn:active {
    transform: translateY(1px);
    filter: brightness(.95) drop-shadow(0 3px 5px rgba(0, 0, 0, .5));
}

.btn:focus-visible {
    outline: 2px solid var(--ember-hot);
    outline-offset: 6px;
}

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    width: 30px;
    height: 48px;
    margin-left: -15px;
    border: 2px solid rgba(42, 23, 12, .7);
    border-radius: 16px;
    opacity: .8;
    animation: rise 1.1s .8s both;
}

.scroll-hint span {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 4px;
    height: 9px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ink);
    animation: nudge 1.8s ease-in-out infinite;
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    gap: 56px;
}

.window {
    position: relative;
    border-style: solid;
    border-width: 70px 33px 28px 29px;
    border-image: url("assets/img/window.png") 100 47 40 42 fill stretch;
    padding: 30px clamp(8px, 3vw, 34px) 26px;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55));
    scroll-margin-top: 24px;
}

.window-title {
    position: absolute;
    top: -70px;
    left: -29px;
    right: -33px;
    height: 64px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: clamp(18px, 3vw, 27px);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff1df;
    text-shadow: 0 2px 0 #2a0404, 0 0 14px rgba(0, 0, 0, .7);
    white-space: nowrap;
}

.window-title::before,
.window-title::after {
    content: "";
    width: 34px;
    height: 1px;
    margin: 0 16px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 190, .7), transparent);
}

.intro {
    max-width: 44em;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--bone);
}

.intro em {
    font-style: normal;
    color: var(--ember-hot);
}

.center {
    text-align: center;
}


#trailer {
    padding-top: 22px;
}

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 40px rgba(255, 90, 20, .12);
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.features li {
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(142, 37, 40, .22), rgba(142, 37, 40, .04));
    border-top: 2px solid var(--blood);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.features h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    line-height: 1.3;
    color: var(--ember-hot);
}

.features p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--bone-dim);
}

.steam-widget {
    display: flex;
    justify-content: center;
}

.steam-widget iframe {
    width: 100%;
    max-width: 646px;
    height: 190px;
    border: 0;
}

#wishlist .cta {
    margin-top: 24px;
    animation: none;
}
.footer {
    margin-top: 80px;
    padding: 34px var(--gutter) 40px;
    text-align: center;
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--bone-dim);
    background: linear-gradient(180deg, transparent, rgba(8, 4, 2, .75) 45%);
}

.footer p {
    margin: 8px 0 0;
}

.footer a {
    color: var(--bone);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 138, 61, .5);
}

.footer a:hover {
    color: var(--ember-hot);
    border-bottom-color: var(--ember-hot);
}

.footer .footer-logo {
    display: inline-block;
    border: 0;
    transition: transform .25s ease, filter .25s ease;
}

.footer-logo img {
    display: block;
    width: 84px;
    height: 84px;
}

.footer .footer-logo:hover {
    transform: rotate(-4deg) scale(1.06);
    filter: drop-shadow(0 0 12px rgba(190, 120, 255, .45));
}


@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes nudge {
    0%, 100% { transform: translateY(0);   opacity: 1; }
    60%      { transform: translateY(12px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}


@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    main {
        gap: 44px;
    }

    .window {
        border-width: 52px 22px 20px 21px;
        padding: 20px 6px 16px;
    }

    .window-title {
        top: -52px;
        left: -21px;
        right: -22px;
        height: 47px;
        padding: 0 18px;
        letter-spacing: .08em;
    }

    .window-title::before,
    .window-title::after {
        display: none;
    }

    .intro {
        font-size: 16.5px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .btn {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    .steam-widget iframe {
        height: 190px;
    }
}
