:root {
    --article-bg: url('../materials/history_of_tcg_preview.png');
    --article-accent: #a14503;
    --article-accent-soft: rgba(161, 69, 3, 0.12);
    --article-paper: rgba(255, 238, 207, 0.94);
    --article-ink: #301807;
    --article-muted: #6b4328;
    --article-line: rgba(161, 69, 3, 0.24);
}

body {
    background:
        linear-gradient(rgba(42, 23, 8, 0.58), rgba(42, 23, 8, 0.72)),
        var(--article-bg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.article-nav {
    width: 100%;
    max-width: 920px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.article-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgb(161, 69, 3);
    color: rgba(255, 229, 182, 0.95);
    text-decoration: none;
    font-family: 'Cormorant Unicase', serif;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.article-nav-link:hover {
    transform: translateY(-2px);
    background: rgba(252, 229, 187, 0.95);
    color: rgb(161, 69, 3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.article-page {
    width: 100%;
    max-width: 920px;
    margin: 18px auto 44px;
}

.article-card {
    background: var(--article-paper);
    border-radius: 18px;
    padding: 34px 42px 44px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.article-header {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--article-line);
}

.article-title {
    font-size: 2.25rem;
    line-height: 1.12;
    color: var(--article-ink);
    margin-bottom: 0;
}

.article-block {
    margin-top: 28px;
}

.article-block p {
    font-family: Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.72;
    margin-bottom: 1em;
    color: var(--article-ink);
    text-align: left;
}

.article-header + .article-block p:first-child {
    font-size: 1.08rem;
    line-height: 1.7;
}

.article-subtitle {
    font-size: 1.55rem;
    color: var(--article-accent);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--article-line);
    padding-bottom: 6px;
}

.article-subtitle:empty {
    display: none;
}

.article-list {
    margin: 0.6em 0 1.2em;
    padding: 18px 22px 14px 38px;
    background: var(--article-accent-soft);
    border: 1px solid var(--article-line);
    border-radius: 14px;
}

.article-list li {
    margin-bottom: 0.65em;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.58;
    color: var(--article-ink);
}

.article-ending {
    font-style: italic;
    color: var(--article-muted);
}

.article-image {
    margin: 22px 0 26px;
    text-align: center;
}

.article-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.article-image figcaption {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--article-muted);
}

.article-image figcaption:empty {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 14px;
    }

    .article-nav {
        margin-top: 0;
    }

    .article-card {
        padding: 26px 22px 32px;
    }

    .article-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        padding: 10px;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav-link {
        width: 100%;
    }

    .article-card {
        padding: 22px 16px 28px;
        border-radius: 14px;
    }

    .article-title {
        font-size: 1.45rem;
    }

    .article-subtitle {
        font-size: 1.2rem;
    }

    .article-block p,
    .article-list li {
        font-size: 0.96rem;
        line-height: 1.62;
    }
}
