html {
    background-color: #0a0c10;
}

:root {
    --bg-image: url("/bg1.webp");
}

body {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82)),
        var(--bg-image);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    overflow-x: hidden;
}

header {
    h1 {
        text-align: center;
        font-family: "Skranji", system-ui;
        font-size: clamp(4rem, 8vw, 6.2rem);
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0.08em;
        /* fallback */
        color: #d8b56a;
        background: linear-gradient(
            180deg,
            #f6e7b8 0%,
            #d9b76d 38%,
            #8f6a34 72%,
            #5e4421 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.01),
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 6px 14px rgba(0, 0, 0, 0.1),
            0 0 18px rgba(214, 170, 90, 0.02);
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
    }

    h1::after {
        content: "";
        display: block;
        width: 50%;
        height: 2px;
        margin: 18px auto 0 auto;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(205, 187, 138, 0.7),
            transparent
        );
        opacity: 0.6;
    }
}

main {
    display: flex;
    justify-content: center;
}

main > div {
    width: min(1280px, 85%);
    margin: 0 auto 0 auto;

    padding: 42px 52px;

    background: rgba(6, 8, 12, 0.58);

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

    border: 1px solid rgba(214, 185, 120, 0.3);
    border-radius: 18px;

    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.45),
        inset 0 0 30px rgba(255, 255, 255, 0.02);

    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1.38;
    font-weight: 500;

    color: #ece2cc;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);

    position: relative;
    overflow: hidden;
}

main > div::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0) 40%
    );

    pointer-events: none;
}

main strong {
    color: #e0c98f;
    font-weight: 600;
}

main em {
    font-style: italic;
    font-weight: 700;
}

main > div > p {
    margin: 0 0 1.8rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

main > div > p:last-child {
    margin-top: 4rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

footer {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    font-family: "EB Garamond", serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;

    letter-spacing: 0.08em;

    color: #cdbb8a;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(180, 140, 70, 0.15);

    opacity: 0.82;

    padding: 1rem;
}

footer::before {
    content: "";

    display: block;

    width: 180px;
    height: 1px;

    margin: 0 auto 14px auto;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(205, 187, 138, 0.7),
        transparent
    );
}

footer span {
    display: block;

    margin-top: 6px;

    font-size: 0.9rem;
    letter-spacing: 0.14em;

    opacity: 0.75;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main br {
        display: none;
    }

    main > div > p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    main > div > p:last-child {
        font-size: 1.3rem;
        margin-top: 2.5rem;
    }
}
