/* ═══════════════════════════════════════════════════
   ARTICLE STYLE — Clean dark reading layout
   ═══════════════════════════════════════════════════ */

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

:root {
    --c-bg:         #0c0c0f;
    --c-surface:    #141419;
    --c-text:       #c8c8d0;
    --c-text-muted: #8e8e9a;
    --c-white:      #f0f0f5;
    --c-heading:    #e8a838;
    --c-heading-h3: #d4943a;
    --c-accent:     #e8a838;
    --c-border:     rgba(255, 255, 255, 0.07);
    --c-link:       #e8a838;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 17px;
    line-height: 1.8;
}

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

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

a:hover {
    text-decoration: underline;
}


/* ── Container ── */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* ── Article ── */
#article {
    padding: 4rem 0 3rem;
}

#article h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-heading);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

#article h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-heading);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--c-accent);
    letter-spacing: -0.01em;
}

#article h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--c-heading-h3);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

#article p {
    margin-bottom: 1.5rem;
    color: var(--c-text);
}

#article img {
    margin: 2rem 0;
    border-radius: 10px;
    border: 1px solid var(--c-border);
}


/* ── Table ── */
#article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
}

#article thead {
    background: rgba(232, 168, 56, 0.08);
}

#article th {
    padding: 0.85rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--c-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--c-border);
}

#article td {
    padding: 0.75rem 1.25rem;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
}

#article tbody tr:last-child td {
    border-bottom: none;
}

#article tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}


/* ── List ── */
#article ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

#article li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--c-text);
    font-size: 0.95rem;
}

#article li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-weight: 700;
    font-size: 1.2em;
}


/* ── Figures ── */
figure {
    margin: 0;
}

.hero-img,
.post-img {
    margin: 2rem 0;
}

.hero-img img,
.post-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    display: block;
}


/* ── Sections (resources, faq) ── */
#resources,
#faq {
    padding: 2.5rem 0;
    border-top: 1px solid var(--c-border);
}

#resources h2,
#faq h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-heading);
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--c-accent);
    letter-spacing: -0.01em;
}

#resources h3,
#faq h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--c-heading-h3);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

#resources p,
#faq p {
    margin-bottom: 1.25rem;
    color: var(--c-text);
    line-height: 1.8;
}

#resources a {
    color: var(--c-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 168, 56, 0.3);
    transition: border-color 0.2s;
}

#resources a:hover {
    border-color: var(--c-accent);
}


/* ── Footer ── */
footer {
    border-top: 1px solid var(--c-border);
    padding: 2rem 0;
}

footer p {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    text-align: center;
}


/* ── Responsive ── */
@media (max-width: 600px) {
    #article {
        padding: 2.5rem 0 2rem;
    }

    #article h2 {
        margin-top: 2.5rem;
    }

    .hero-img,
    .post-img {
        margin: 1.5rem 0;
    }

    .hero-img img,
    .post-img img {
        border-radius: 6px;
    }

    #article table {
        font-size: 0.8rem;
    }

    #article th,
    #article td {
        padding: 0.6rem 0.75rem;
    }

    #resources,
    #faq {
        padding: 2rem 0;
    }
}
