/* ==========================================================
   DK Books
   Home — Warrior Angel Studio
========================================================== */

:root {
    --bg: #080503;
    --panel: rgba(18, 11, 7, 0.86);
    --panel-hover: rgba(28, 18, 11, 0.94);

    --gold: #c99452;
    --gold-light: #f0d39a;

    --text: #f3eadc;
    --text-muted: #d8c8b3;

    --border: rgba(214, 167, 94, 0.34);
    --shadow: rgba(0, 0, 0, 0.52);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;

    background:
        linear-gradient(
            180deg,
            rgba(5, 3, 2, 0.34),
            rgba(5, 3, 2, 0.66)
        ),
        url("dkbooks.jpg") center center / cover no-repeat fixed;

    background-color: var(--bg);
}

/* ==========================================================
   Header
========================================================== */

.page-header {
    max-width: 1180px;
    margin: 0 auto;

    padding: 70px 24px 36px;

    text-align: center;
}

.eyebrow {
    margin-bottom: 12px;

    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.page-header h1 {
    color: var(--gold-light);

    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 1.05;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.8),
        0 0 28px rgba(201, 148, 82, 0.2);
}

.intro {
    max-width: 760px;
    margin: 22px auto 0;

    color: var(--text-muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.8;

    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.78);
}

/* ==========================================================
   Main
========================================================== */

main {
    max-width: 1240px;
    margin: 0 auto;

    padding: 28px 24px 80px;
}

.worlds {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}

/* ==========================================================
   Cards
========================================================== */

.world-card {
    display: block;
    min-height: 240px;

    padding: 34px 32px;

    color: inherit;
    text-decoration: none;

    background:
        linear-gradient(
            180deg,
            rgba(31, 20, 12, 0.9),
            var(--panel)
        );

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow:
        0 18px 42px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.world-card:hover,
.world-card:focus-visible {
    transform: translateY(-5px);

    background:
        linear-gradient(
            180deg,
            rgba(42, 27, 16, 0.96),
            var(--panel-hover)
        );

    border-color: var(--gold);

    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.62),
        0 0 26px rgba(201, 148, 82, 0.14);

    outline: none;
}

.world-card h2 {
    position: relative;

    margin-bottom: 20px;
    padding-bottom: 16px;

    color: var(--gold-light);

    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.world-card h2::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 120px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}

.world-card p {
    color: var(--text-muted);

    font-size: 1.02rem;
    line-height: 1.8;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 860px) {
    body {
        background-attachment: scroll;
        background-position: center top;
    }

    .page-header {
        padding-top: 52px;
    }

    .worlds {
        grid-template-columns: 1fr;
    }

    .world-card {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .page-header {
        padding: 40px 16px 24px;
    }

    main {
        padding: 20px 14px 56px;
    }

    .worlds {
        gap: 18px;
    }

    .world-card {
        padding: 26px 22px;
        border-radius: 13px;
    }

    .world-card h2 {
        font-size: 1.35rem;
    }

    .world-card p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

/* ==========================================================
   Accessibility
========================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .world-card {
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .world-card {
        background: rgba(18, 11, 7, 0.97);

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}