:root {
    --color-brand: #111827;
    --color-cta: #E84393;
    --text-muted: #777;
    --border: #e0e0e0;
    --bg-card: #fff;
    --bg-body: #f9f9f9;
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-body);
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-brand);
    text-decoration: none;
}

a:hover {
    color: var(--color-cta);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 20px;
    font-weight: 400;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    font-weight: 400;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.prose-section {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-brand);
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

.gallery-section {
    margin: 60px 0;
}

@media (max-width: 768px) {
    .article-container {
        padding: 30px 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .prose-section {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
