/* ==========================================================================
   dmwithme — blog stylesheet
   Shared by templates/blog/list.html, templates/blog/template.html and
   every article in templates/blog/articles/*.html

   Ports the app's furniture (static/style.css) to a document context:
   purple panels, awning-striped title bands, chunky 3D buttons, Lilita One.

   Deliberately NOT importing style.css — that file sets user-select:none
   globally and pointer-events:none on img, which breaks copy/paste and
   image context menus. Bad for a blog, fine for a game.
   ========================================================================== */

/* ── Display face ─────────────────────────────────────────────────────── */
/* NOTE: style.css has a typo in its @font-face (comma after the woff2
   format() instead of a semicolon), which kills the whole src line in some
   parsers. Fixed here. */
@font-face {
    font-family: 'Lilita One';
    src: url('/static/LilitaOne-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
    /* Ground */
    --ink:            #0c0710;
    --ink-deep:       #070409;

    /* Panels */
    --panel-top:      #45156a;
    --panel-mid:      #2f0c48;
    --panel-bot:      #230936;
    --panel-edge:     #7a3aab;
    --panel-under:    #1a0728;

    /* Awning stripes */
    --stripe-a:       #5c1d8a;
    --stripe-b:       #7a3aab;
    --stripe-under:   #4a1670;

    /* Gold — primary action */
    --gold:           #f5c000;
    --gold-lit:       #ffd020;
    --gold-edge:      #c99700;
    --gold-deep:      #9a7200;
    --gold-deeper:    #7a5800;
    --gold-pale:      #ffe9b0;

    /* Purple — secondary action */
    --grape:          #a855f7;
    --grape-lit:      #c084fc;
    --grape-edge:     #9333ea;
    --grape-deep:     #7e22ce;
    --grape-deeper:   #6b21a8;

    /* Accents */
    --pink:           #ff6b9d;
    --pink-hot:       #ff1ead;

    /* Type */
    --display: 'Lilita One', system-ui, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text:           rgba(255, 255, 255, 0.84);
    --text-muted:     rgba(255, 255, 255, 0.58);
    --text-dim:       rgba(255, 255, 255, 0.42);

    /* Hard 3D shadow used on every panel */
    --panel-lift:
        0 6px 0 0 var(--panel-under),
        0 14px 34px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    --wrap: 820px;
    --wrap-wide: 1060px;
}

/* ── Reset & base ─────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--body);
    background: var(--ink);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow behind everything — the app's landing-video haze, cheaply. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 600px at 15% -10%, rgba(122, 58, 171, 0.32), transparent 62%),
        radial-gradient(800px 520px at 88% 4%,  rgba(255, 30, 173, 0.16), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
    pointer-events: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: rgba(255, 107, 157, 0.35);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.container--wide {
    max-width: var(--wrap-wide);
}

/* ── Header ───────────────────────────────────────────────────────────── */
header {
    background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
    border-bottom: 3px solid var(--stripe-under);
    box-shadow: 0 4px 0 0 var(--panel-under), 0 10px 26px rgba(0, 0, 0, 0.5);
    padding: 0.9rem 0;
    margin-bottom: 2.25rem;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
}

.header-content {
    max-width: var(--wrap-wide);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: #fff;
    text-decoration: none;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.45), 1px -1px 0 rgba(0,0,0,0.45),
        -1px  1px 0 rgba(0,0,0,0.45), 1px  1px 0 rgba(0,0,0,0.45),
         0    3px 0 rgba(0,0,0,0.35);
}

.logo:hover {
    color: var(--gold-pale);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
    color: #fff;
    border-bottom-color: var(--pink);
}

/* ── Panel: the shared card shell ─────────────────────────────────────── */
.panel,
.page-hero,
.post-hero,
.post-body,
.article-card,
.faq-item {
    background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-mid) 55%, var(--panel-bot) 100%);
    border: 3px solid var(--panel-edge);
    border-radius: 18px;
    box-shadow: var(--panel-lift);
    position: relative;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

p {
    margin-bottom: 1.1rem;
    color: var(--text);
}

a {
    color: var(--pink);
}

/* ── Buttons: gold primary ────────────────────────────────────────────── */
.cta-button,
.load-more-btn {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #fff;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.55), 1px -1px 0 rgba(0,0,0,0.55),
        -1px  1px 0 rgba(0,0,0,0.55), 1px  1px 0 rgba(0,0,0,0.55),
         0    3px 0 rgba(0,0,0,0.35);
    background-color: var(--gold);
    border: 3px solid var(--gold-edge);
    border-bottom: 3px solid var(--gold-deep);
    border-radius: 12px;
    box-shadow: 0 5px 0 0 var(--gold-deep), 0 7px 0 0 var(--gold-deeper);
    padding: 12px 26px;
    cursor: pointer;
    outline: 0;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transform: translateY(0);
    transition: background-color 0.08s, transform 0.08s, box-shadow 0.08s;
    -webkit-appearance: none;
}

.cta-button:hover,
.load-more-btn:hover {
    background-color: var(--gold-lit);
    border-color: #d4a200;
    border-bottom-color: var(--gold-deep);
    color: #fff;
}

.cta-button:active,
.load-more-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 0 var(--gold-deep), 0 2px 0 0 var(--gold-deeper);
    background-color: #d4a400;
}

.load-more-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.load-more-btn:disabled:active {
    transform: translateY(0);
    box-shadow: 0 5px 0 0 var(--gold-deep), 0 7px 0 0 var(--gold-deeper);
}

/* ── Buttons: purple secondary ────────────────────────────────────────── */
.read-more {
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.45), 1px -1px 0 rgba(0,0,0,0.45),
        -1px  1px 0 rgba(0,0,0,0.45), 1px  1px 0 rgba(0,0,0,0.45),
         0    2px 0 rgba(0,0,0,0.25);
    background-color: var(--grape);
    border: 2px solid var(--grape-edge);
    border-bottom: 2px solid var(--grape-deep);
    border-radius: 9px;
    box-shadow: 0 3px 0 0 var(--grape-deep), 0 4px 0 0 var(--grape-deeper);
    padding: 6px 14px;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
    white-space: nowrap;
    transform: translateY(0);
    transition: background-color 0.08s, transform 0.08s, box-shadow 0.08s;
}

.read-more:hover {
    background-color: var(--grape-lit);
    border-color: var(--grape);
    border-bottom-color: var(--grape-deep);
    color: #fff;
}

.read-more:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 0 var(--grape-deep), 0 1px 0 0 var(--grape-deeper);
    background-color: var(--grape-edge);
}

.load-more {
    text-align: center;
    margin: 2.5rem 0 1rem;
}

/* ==========================================================================
   LIST PAGE  (blog/list.html)
   ========================================================================== */

.page-hero {
    padding: 2.5rem 1.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
    border-radius: 15px 15px 0 0;
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.4);
}

.page-hero h1 em {
    font-style: normal;
    color: var(--pink);
}

.page-hero p {
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 auto;
    font-size: 1.02rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 0 0 var(--panel-under),
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, var(--stripe-a), var(--panel-bot));
    border-bottom: 3px solid var(--stripe-under);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-image.has-image {
    background-image: var(--article-image);
    background-size: cover;
    background-position: center;
}

/* Purple wash so thumbnails sit in the same key as the panels */
.article-image.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(69, 21, 106, 0.15) 0%, rgba(35, 9, 54, 0.75) 100%);
}

.article-placeholder {
    font-size: 2.75rem;
    opacity: 0.65;
}

.article-content {
    padding: 1.4rem 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-title {
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    transition: color 0.15s ease;
}

.article-title:hover {
    color: var(--gold-pale);
}

.article-description {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

.article-author-date {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.article-author {
    color: var(--pink);
    font-weight: 600;
    font-size: 0.85rem;
}

.article-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Loading spinner (list.html "Load more") */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-left: 6px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   ARTICLE PAGE  (blog/template.html + articles/*.html)
   ========================================================================== */

.back-link {
    display: inline-block;
    margin-bottom: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--pink);
}

.post-hero {
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-image-container {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--stripe-under);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(35, 9, 54, 0.85) 100%);
}

.hero-content {
    padding: 2rem 1.75rem;
}

.post-hero h1 {
    font-size: clamp(1.6rem, 4.4vw, 2.4rem);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.4);
}

.post-hero > .hero-content > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.byline-author {
    color: var(--pink);
    font-weight: 600;
    font-size: 0.92rem;
}

.byline-author::after {
    content: "•";
    color: rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

.byline-date {
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ── Post body ────────────────────────────────────────────────────────── */
.post-body {
    padding: 0.5rem 1.75rem 2rem;
    overflow: hidden;
}

/* Articles ship with their own .hero / .content wrappers nested inside the
   post body. Neutralise them so they read as sections, not stacked cards. */
.post-body .hero,
.post-body .content {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.post-body .hero {
    padding-top: 1.5rem;
}

/* The article's own <h1> duplicates the hero title — demote it visually.
   (See notes: consider removing it from article files for SEO.) */
.post-body .hero h1 {
    font-size: 1.5rem;
    color: var(--gold-pale);
    margin-bottom: 0.8rem;
}

.post-body h2 {
    font-size: 1.35rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.25);
    background: repeating-linear-gradient(
        90deg,
        var(--stripe-a) 0 48px,
        var(--stripe-b) 48px 96px
    );
    border-bottom: 3px solid var(--stripe-under);
    margin: 2.5rem -1.75rem 1.5rem;
    padding: 14px 24px 13px;
    position: relative;
}

.post-body h2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.post-body h3 {
    font-size: 1.22rem;
    color: var(--gold-pale);
    margin: 2rem 0 0.7rem;
    letter-spacing: 0.02em;
}

.post-body h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}

.post-body p {
    font-size: 1.02rem;
}

.post-body strong {
    color: #f0d9ff;
    font-weight: 600;
}

.post-body a:not(.cta-button):not(.read-more) {
    color: var(--pink);
    text-decoration-color: rgba(255, 107, 157, 0.45);
    text-underline-offset: 3px;
}

.post-body a:not(.cta-button):not(.read-more):hover {
    color: var(--pink-hot);
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.2rem 1.3rem;
    color: var(--text);
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--pink);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-body img {
    border-radius: 12px;
    border: 2px solid var(--panel-edge);
    margin: 1.5rem auto;
}

/* Responsive video embeds — articles hardcode width/height on <iframe>. */
.post-body iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 1.75rem auto;
    border: 3px solid var(--panel-edge);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 5px 0 0 var(--panel-under);
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.post-body th,
.post-body td {
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
}

.post-body th {
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ── Feature tiles ────────────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    background: rgba(0, 0, 0, 0.28);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.35rem 1.1rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(180deg, var(--stripe-a) 0%, var(--panel-bot) 100%);
    border: 3px solid var(--panel-edge);
    border-radius: 18px;
    box-shadow: var(--panel-lift);
    padding: 2.25rem 1.5rem;
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Article image as a dimmed backdrop (set by the template's inline script) */
.cta-section.with-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--cta-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 1;
}

.cta-section.with-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(92, 29, 138, 0.55), rgba(35, 9, 54, 0.9));
    z-index: 2;
}

.cta-section > * {
    position: relative;
    z-index: 3;
}

/* Beat .post-body h2 — the CTA heading is not a striped band. */
.post-body .cta-section h2,
.cta-section h2 {
    background: none;
    border-bottom: 0;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: none;
    text-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.45);
}

.post-body .cta-section h2::before,
.cta-section h2::before {
    display: none;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
    margin: 1.5rem 0;
}

.faq-item {
    margin: 0.85rem 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 0 0 var(--panel-under);
    background: rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.faq-question {
    font-family: var(--display);
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(122, 58, 171, 0.35);
    padding: 1rem 2.75rem 1rem 1.1rem;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease;
}

.faq-question:hover {
    background: rgba(168, 85, 247, 0.4);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-question.is-open::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
    background: linear-gradient(180deg, var(--panel-mid) 0%, var(--ink-deep) 100%);
    border-top: 3px solid var(--stripe-under);
    padding: 2.25rem 20px;
    text-align: center;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--pink);
    text-decoration: underline;
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 14px 30px;
    }

    .header-content {
        flex-direction: column;
        gap: 0.85rem;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-container { height: 230px; }
    .hero-content         { padding: 1.5rem 1.25rem; }
    .page-hero            { padding: 2rem 1.25rem; }
    .post-body            { padding: 0.5rem 1.25rem 1.75rem; }

    .post-body h2 {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        font-size: 1.2rem;
        letter-spacing: 0.06em;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container { height: 180px; }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .article-byline {
        flex-direction: column;
        gap: 0.2rem;
    }

    .byline-author::after { display: none; }

    .cta-button,
    .load-more-btn {
        width: 100%;
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .hero-image-container { height: 400px; }
}

/* ── Accessibility ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .article-card:hover { transform: none; }
}

/* ── Print ────────────────────────────────────────────────────────────── */
@media print {
    body { background: #fff; color: #000; }
    body::before, header, footer, .cta-section, .load-more { display: none; }
    .post-hero, .post-body { background: none; border: 0; box-shadow: none; color: #000; }
    .post-body h2 { background: none; color: #000; border-bottom: 1px solid #000; }
    .post-body p, .post-body li { color: #000; }
    .faq-answer { display: block !important; }
}
