/* =========================================================
   CONFIGURAÇÕES
========================================================= */

:root {
    --primary: #d7a832;
    --primary-dark: #ad811c;
    --primary-soft: #f1dfaa;

    --background: #f6f4ef;
    --surface: #ffffff;
    --surface-soft: #ece9e1;

    --text: #171717;
    --text-soft: #676767;
    --border: #ddd9cf;

    --dark: #111111;
    --white: #ffffff;

    --font-primary: "DM Sans", sans-serif;
    --font-secondary: "Playfair Display", serif;

    --container: 1180px;
    --header-height: 84px;

    --radius-small: 5px;
    --radius-medium: 10px;
    --radius-large: 18px;

    --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.09);

    --transition: 0.3s ease;
}

body.dark-theme {
    --background: #111111;
    --surface: #191919;
    --surface-soft: #232323;

    --text: #f5f3ed;
    --text-soft: #b6b6b6;
    --border: #343434;

    --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 25px);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-primary);
    line-height: 1.6;
    transition:
        background-color var(--transition),
        color var(--transition);
}

body.menu-open,
body.search-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

textarea {
    resize: vertical;
}

::selection {
    background: var(--primary);
    color: #111111;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.section {
    padding: 105px 0;
}

.section-heading {
    max-width: 730px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2 {
    margin: 10px 0 15px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 1.04rem;
}

.section-eyebrow,
.sidebar-label {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform var(--transition),
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--primary);
    color: #111111;
}

.button-primary:hover {
    background: #e6b93f;
}

.button-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.button-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.24);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

/* =========================================================
   ANIMAÇÕES
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   CABEÇALHO
========================================================= */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    color: var(--white);
    background: rgba(10, 10, 10, 0.18);
    border-bottom: 1px solid transparent;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.header.scrolled,
.article-header {
    background: rgba(15, 15, 15, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(18px);
}

.header-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.logo-subtitle {
    margin-top: 5px;
    font-size: 0.51rem;
    letter-spacing: 0.27em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.desktop-nav a {
    position: relative;
    padding: 11px 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-button,
.menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: transparent;
    color: inherit;
    border: 0;
    cursor: pointer;
    transition:
        color var(--transition),
        background-color var(--transition);
}

.icon-button:hover,
.menu-button:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.menu-button {
    display: none;
}

.menu-button span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-button span + span {
    margin-top: 5px;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 780px;
    display: flex;
    align-items: center;
    color: var(--white);
    background:
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2000&q=90")
        center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 4, 4, 0.97) 0%,
            rgba(4, 4, 4, 0.78) 43%,
            rgba(4, 4, 4, 0.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    width: 31px;
    height: 2px;
    background: var(--primary);
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 25px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero p {
    max-width: 555px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scroll-indicator {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-indicator i {
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

/* =========================================================
   ARTIGO EM DESTAQUE
========================================================= */

.articles-section {
    background: var(--surface);
}

.featured-article {
    margin-bottom: 55px;
}

.featured-article-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

.featured-article-image {
    min-height: 470px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
}

.featured-label {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-article-content h3 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.07;
    letter-spacing: -0.05em;
}

.featured-article-content p {
    margin-bottom: 27px;
    color: var(--text-soft);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    color: var(--text-soft);
    font-size: 0.76rem;
}

.featured-meta .dot,
.article-card-meta .dot {
    width: 3px;
    height: 3px;
    align-self: center;
    background: var(--primary);
    border-radius: 50%;
}

/* =========================================================
   BARRA DOS ARTIGOS
========================================================= */

.articles-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.articles-toolbar p {
    color: var(--text-soft);
    font-size: 0.87rem;
}

.articles-toolbar select {
    min-height: 42px;
    padding: 0 38px 0 13px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
}

.articles-toolbar select:focus {
    border-color: var(--primary);
}

/* =========================================================
   CARDS DOS ARTIGOS
========================================================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.article-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215, 168, 50, 0.6);
    box-shadow: var(--shadow-card);
}

.article-card-image {
    position: relative;
    height: 245px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.055);
}

.article-card-category {
    position: absolute;
    left: 17px;
    bottom: 17px;
    padding: 7px 11px;
    background: rgba(15, 15, 15, 0.86);
    color: var(--white);
    border-radius: 3px;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.article-card h3 {
    margin-bottom: 12px;
    font-size: 1.31rem;
    line-height: 1.21;
    letter-spacing: -0.028em;
}

.article-card-description {
    margin-bottom: 23px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.article-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.73rem;
}

/* =========================================================
   FRASE
========================================================= */

.quote-section {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background:
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1900&q=85")
        center/cover no-repeat;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(233, 218, 188, 0.75);
}

.quote-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    color: #1c1c1c;
}

.quote-content i {
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 2rem;
}

.quote-content blockquote {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.16;
}

.quote-content span {
    width: 45px;
    height: 3px;
    display: inline-block;
    margin-top: 28px;
    background: var(--primary-dark);
}

/* =========================================================
   CATEGORIAS
========================================================= */

.categories-section {
    background: var(--background);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    padding: 31px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-medium);
    text-align: center;
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.category-card:hover,
.category-card.active {
    transform: translateY(-6px);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 59px;
    height: 59px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: var(--primary-dark);
    font-size: 1.8rem;
    border: 1px solid rgba(173, 129, 28, 0.35);
    border-radius: 50%;
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.category-card p {
    min-height: 78px;
    color: var(--text-soft);
    font-size: 0.81rem;
}

.category-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary-dark);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.category-result {
    margin-top: 58px;
}

.category-result:empty {
    display: none;
}

.category-result-title {
    margin-bottom: 30px;
    text-align: center;
}

.category-result-title h3 {
    margin-top: 7px;
    font-size: 1.8rem;
}

/* =========================================================
   SOBRE
========================================================= */

.about-section {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 78px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -18px;
    left: -18px;
    width: 65%;
    height: 70%;
    border: 2px solid var(--primary);
}

.about-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.about-content h2 {
    margin: 12px 0 25px;
    font-size: clamp(2.2rem, 4vw, 3.75rem);
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.about-content p {
    margin-bottom: 17px;
    color: var(--text-soft);
}

.about-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin: 35px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-numbers div {
    display: flex;
    flex-direction: column;
}

.about-numbers strong {
    font-size: 1.9rem;
    line-height: 1;
}

.about-numbers span {
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 0.73rem;
    text-transform: uppercase;
}

/* =========================================================
   RODAPÉ
========================================================= */

.footer {
    padding-top: 80px;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.65fr 0.75fr 1.1fr;
    gap: 55px;
    padding-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-brand p {
    max-width: 290px;
    font-size: 0.88rem;
}

.footer h3 {
    margin-bottom: 22px;
    color: var(--white);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-navigation a {
    margin-bottom: 10px;
    font-size: 0.84rem;
    transition: color var(--transition);
}

.footer-navigation a:hover {
    color: var(--primary);
}

.footer-message p {
    font-family: var(--font-secondary);
    font-size: 1.19rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #111111;
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

/* =========================================================
   PESQUISA
========================================================= */

.search-overlay {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(12px);
    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: relative;
    width: min(100%, 780px);
    max-height: 86vh;
    overflow-y: auto;
    padding: 58px;
    background: var(--surface);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    transform: scale(0.97);
    transition: transform var(--transition);
}

.search-overlay.active .search-modal {
    transform: scale(1);
}

.search-modal h2 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.search-description {
    margin-bottom: 28px;
    color: var(--text-soft);
}

.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--text);
    border: 0;
    font-size: 1.2rem;
    cursor: pointer;
}

.search-field {
    position: relative;
}

.search-field > i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: var(--primary-dark);
    transform: translateY(-50%);
}

.search-field input {
    width: 100%;
    height: 60px;
    padding: 0 18px 0 50px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
}

.search-field input:focus {
    border-color: var(--primary);
}

.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.search-shortcuts button {
    padding: 8px 13px;
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.76rem;
    cursor: pointer;
}

.search-shortcuts button:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.search-results {
    margin-top: 27px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.search-result-image {
    width: 90px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.search-result-content > span {
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.search-result-content h3 {
    margin: 4px 0;
    font-size: 1rem;
}

.search-result-content p,
.empty-message {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.search-results mark {
    padding: 0 2px;
    background: var(--primary-soft);
    color: #111111;
}

/* =========================================================
   VOLTAR AO TOPO
========================================================= */

.back-to-top {
    position: fixed;
    z-index: 900;
    right: 24px;
    bottom: 24px;
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #111111;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   BARRA DE LEITURA
========================================================= */

.reading-progress {
    position: fixed;
    z-index: 5000;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.08s linear;
}

/* =========================================================
   PÁGINA DO ARTIGO
========================================================= */

.article-page {
    padding-top: var(--header-height);
}

.article-container {
    width: min(100% - 40px, 1150px);
    margin: 0 auto;
    padding: 80px 0 105px;
}

.article-introduction {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 35px;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-back:hover {
    color: var(--primary-dark);
}

.article-category {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-introduction h1 {
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.058em;
}

.article-subtitle {
    max-width: 760px;
    margin: 0 auto 25px;
    color: var(--text-soft);
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-soft);
    font-size: 0.76rem;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-cover {
    margin-bottom: 60px;
}

.article-cover img {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: var(--radius-medium);
}

.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 55px;
}

.article-sidebar {
    position: relative;
}

.table-of-contents {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.table-of-contents nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 17px;
}

.table-of-contents a {
    padding-left: 13px;
    color: var(--text-soft);
    border-left: 2px solid var(--border);
    font-size: 0.78rem;
    line-height: 1.4;
    transition:
        color var(--transition),
        border-color var(--transition);
}

.table-of-contents a:hover,
.table-of-contents a.active {
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

.article-body {
    font-size: 1.075rem;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    scroll-margin-top: calc(var(--header-height) + 35px);
    margin: 58px 0 20px;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.14;
    letter-spacing: -0.038em;
}

.article-body h3 {
    scroll-margin-top: calc(var(--header-height) + 35px);
    margin: 42px 0 17px;
    font-size: 1.5rem;
}

.article-body blockquote {
    position: relative;
    margin: 48px 0;
    padding: 35px 38px;
    background: var(--surface-soft);
    border-left: 4px solid var(--primary);
    font-family: var(--font-secondary);
    font-size: 1.53rem;
    line-height: 1.48;
}

.article-body blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    right: 22px;
    color: rgba(215, 168, 50, 0.25);
    font-family: var(--font-secondary);
    font-size: 6rem;
    line-height: 1;
}

.article-body ul,
.article-body ol {
    margin: 20px 0 30px 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text);
}

.article-footer {
    margin-top: 75px;
    padding-top: 45px;
    border-top: 1px solid var(--border);
}

.article-author {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    gap: 25px;
}

.article-author-image img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 50%;
}

.article-author span {
    color: var(--primary-dark);
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-author h3 {
    margin: 3px 0 7px;
}

.article-author p {
    color: var(--text-soft);
    font-size: 0.89rem;
}

.share-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.share-area > span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-buttons button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.share-buttons button:hover {
    background: var(--primary);
    color: #111111;
    border-color: var(--primary);
}

/* =========================================================
   COMENTÁRIOS
========================================================= */

.comments-section {
    margin-top: 85px;
    padding-top: 55px;
    border-top: 1px solid var(--border);
}

.comments-heading h2 {
    margin: 8px 0 10px;
    font-size: 2rem;
}

.comments-heading p {
    color: var(--text-soft);
}

.comment-form {
    margin-top: 30px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.character-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: var(--text-soft);
    font-size: 0.68rem;
}

.comments-list {
    margin-top: 35px;
}

.comment-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-item-header strong {
    font-size: 0.95rem;
}

.comment-item-header span {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.comment-item p {
    color: var(--text-soft);
}

.comment-empty {
    padding: 25px 0;
    color: var(--text-soft);
}

/* =========================================================
   ARTIGOS RELACIONADOS E ERRO
========================================================= */

.related-section {
    background: var(--surface);
}

.not-found {
    min-height: 75vh;
    display: grid;
    place-items: center;
    padding: 100px 0;
    text-align: center;
}

.not-found h1 {
    margin: 15px 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.not-found p {
    margin-bottom: 30px;
    color: var(--text-soft);
}

/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;
    z-index: 5000;
    left: 50%;
    bottom: 30px;
    padding: 13px 22px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-small);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 15px);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1050px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        z-index: 999;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.98);
        transition: max-height 0.4s ease;
    }

    .mobile-nav.active {
        max-height: calc(100vh - var(--header-height));
    }

    .mobile-nav a {
        padding: 18px 25px;
        color: var(--white);
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        font-size: 0.81rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .featured-article-card {
        grid-template-columns: 1fr;
    }

    .featured-article-image {
        min-height: 400px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 1fr;
        max-width: 780px;
        margin-inline: auto;
    }

    .article-sidebar {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        min-height: 700px;
        background-position: 62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4, 4, 4, 0.93),
                rgba(4, 4, 4, 0.58)
            );
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.7rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-article-content {
        padding: 35px 25px;
    }

    .featured-article-image {
        min-height: 300px;
    }

    .articles-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card-image {
        height: 260px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card p {
        min-height: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image img {
        height: 480px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .search-modal {
        padding: 55px 23px 30px;
    }

    .search-result-item {
        grid-template-columns: 72px 1fr;
    }

    .search-result-image {
        width: 72px;
        height: 65px;
    }

    .article-container {
        width: min(100% - 28px, 1150px);
        padding-top: 60px;
    }

    .article-introduction {
        text-align: left;
    }

    .article-meta {
        justify-content: flex-start;
    }

    .article-introduction h1 {
        font-size: clamp(2.55rem, 12vw, 4.3rem);
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body blockquote {
        padding: 27px;
        font-size: 1.28rem;
    }
}

@media (max-width: 530px) {
    .icon-button,
    .menu-button {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 660px;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .featured-article-image {
        min-height: 245px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 400px;
    }

    .about-numbers {
        gap: 25px;
    }

    .article-card-image {
        height: 235px;
    }

    .article-author {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-author-image img {
        margin-inline: auto;
    }

    .share-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form {
        padding: 22px 17px;
    }

    .comment-item-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}