/* ═══════════════════════════════════════════════════════════
   Artigos — Gabriel Henrique
   Tipografia de leitura sobre os tokens de ../style.css
   ═══════════════════════════════════════════════════════════ */

.a-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.a-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.a-nav__logo {
    font-family: var(--mono);
    font-weight: 500;
    color: var(--text);
}

.a-nav__links {
    display: flex;
    gap: 18px;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.a-nav__links a:hover { color: var(--accent); }

.a-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.a-crumbs {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.a-crumbs a { color: var(--text-dim); }
.a-crumbs a:hover { color: var(--accent); }

.a-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 18px;
}

.a-title {
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.a-lead {
    font-size: 1.12rem;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.a-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.a-byline img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.a-body h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 44px 0 14px;
}

.a-body h3 {
    font-size: 1.1rem;
    margin: 28px 0 10px;
    color: var(--warm);
}

.a-body p,
.a-body li {
    color: #d6d2cb;
    font-size: 1.02rem;
}

.a-body p { margin-bottom: 16px; }

.a-body ul,
.a-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.a-body li { margin-bottom: 8px; }

.a-body strong { color: var(--text); }

.a-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.a-body code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
}

.a-body pre {
    font-family: var(--mono);
    font-size: 0.86rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow-x: auto;
    margin-bottom: 18px;
    color: var(--text);
}

.a-body pre code {
    background: none;
    border: 0;
    padding: 0;
}

.a-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.a-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.a-author h2 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.a-author p {
    font-size: 0.92rem;
    color: var(--text-dim);
}

.a-author a { color: var(--accent); }

.a-related {
    margin-top: 40px;
}

.a-related h2 {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.a-list {
    display: grid;
    gap: 14px;
}

.a-card {
    display: block;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.a-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.a-card__tag {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.a-card h3 {
    font-size: 1.08rem;
    margin: 6px 0;
    color: var(--text);
}

.a-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.a-footer {
    border-top: 1px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.a-footer a { color: var(--text-dim); margin: 0 8px; }
.a-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
    .a-nav__links { gap: 12px; }
    .a-author { flex-direction: column; }
}
