/* Explain: Base reset and typography defaults for the blog */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 28rem),
        radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.12), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(34, 197, 94, 0.32);
    color: var(--text-color);
}

.stack-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
}

.stack-kicker {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-body {
    color: #D7DEE8;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body h2,
.article-body h3 {
    color: var(--text-color);
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 2.4rem 0 0.9rem;
}

.article-body h2 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.article-body h3 {
    font-size: 1.25rem;
}

.article-body p {
    margin: 1rem 0;
}

.article-body pre {
    background: var(--code-bg);
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-green);
    color: #D1FAE5;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 1.4rem 0;
    overflow-x: auto;
    padding: 1.25rem;
}

.article-body code {
    color: #86EFAC;
    font-family: var(--font-heading);
}

.article-body p code,
.article-body li code {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.16);
    border-radius: 0.45rem;
    padding: 0.08rem 0.35rem;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin: 0.45rem 0;
}

.article-body .tip-box,
.article-body .diagram-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: var(--radius-md);
    margin: 1.55rem 0;
    padding: 1.15rem;
}

.article-body .diagram-box {
    color: #BAE6FD;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    white-space: pre-wrap;
}
