:root {
    --burgundy: #112250;
    --burgundy-deep: #0B1836;
    --cream: #F5F0E9;
    --cream-light: #D9CBC2;
    --ink: #2B1810;
    --ochre: #E0C59F;
    --rose: #3C5070;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rose);
    margin-bottom: 14px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--burgundy);
    font-weight: 600;
    line-height: 1.1;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--burgundy);
    border-bottom: 1px solid rgba(228,213,195,.15);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.nav-links {
    display: flex;
    gap: 36px;
}

    .nav-links a {
        color: var(--cream);
        font-size: .92rem;
        font-weight: 500;
        position: relative;
        padding: 4px 0;
        transition: color .2s ease;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 2px;
            background: var(--ochre);
            transition: width .25s ease;
        }

        .nav-links a:hover {
            color: var(--ochre);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--cream);
    }

/* ========== HERO ========== */
.hero {
    background: var(--cream);
    overflow: hidden;
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 32px 90px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
}

.hero-text .eyebrow {
    color: var(--ochre);
}

.hero-text h1 {
    font-size: clamp(3rem, 7vw, 5.4rem);
    letter-spacing: -.01em;
    margin-bottom: 22px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--rose);
    max-width: 420px;
    margin-bottom: 34px;
    font-style: italic;
    font-family: var(--font-display);
}

.btn-primary {
    display: inline-block;
    background: var(--burgundy);
    color: var(--cream);
    padding: 15px 34px;
    border-radius: 2px;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .02em;
    transition: background .2s ease, transform .2s ease;
}

    .btn-primary:hover {
        background: var(--burgundy-deep);
        transform: translateY(-2px);
    }

/* --- signature hero visual: sticky "voice pulse" --- */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 120px;
}

.pulse-widget {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(78,0,0,.25);
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--ochre);
    opacity: 0;
    animation: pulseOut 3.6s ease-out infinite;
}

.ring-1 {
    width: 88px;
    height: 88px;
    animation-delay: 0s;
}

.ring-2 {
    width: 88px;
    height: 88px;
    animation-delay: 1.2s;
}

.ring-3 {
    width: 88px;
    height: 88px;
    animation-delay: 2.4s;
}

@keyframes pulseOut {
    0% {
        width: 88px;
        height: 88px;
        opacity: .65;
        border-color: var(--ochre);
    }

    100% {
        width: 220px;
        height: 220px;
        opacity: 0;
        border-color: var(--rose);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ring {
        animation: none;
        opacity: .35;
    }
}

/* ========== ABOUT ========== */
.about {
    background: var(--cream-light);
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
}

.about-heading h2 {
    font-size: 2.2rem;
    max-width: 320px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
}

.detail-row {
    border-top: 1px solid rgba(78,0,0,.18);
    padding-top: 16px;
}

.detail-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.detail-row p {
    color: var(--ink);
    font-size: .95rem;
    opacity: .85;
}

/* ========== NEWS ========== */
.news {
    padding: 100px 0;
}

    .news h2 {
        font-size: 2.3rem;
        margin-bottom: 50px;
        max-width: 520px;
    }

.tag {
    display: inline-block;
    background: var(--burgundy);
    color: var(--cream);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.ph-img {
    background: linear-gradient(135deg, var(--rose), var(--burgundy));
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

    .ph-img::after {
        content: attr(data-label);
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(228,213,195,.55);
        font-size: .78rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        font-weight: 600;
    }

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 70px;
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(78,0,0,.18);
}

.featured-image {
    aspect-ratio: 4/3;
}

.featured-body h3 {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.featured-body p {
    color: var(--ink);
    opacity: .8;
    margin-bottom: 22px;
    max-width: 460px;
}

.read-more {
    color: var(--burgundy);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    transition: gap .2s ease;
}

    .read-more:hover {
        gap: 10px;
        color: var(--ochre);
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card .card-image {
    aspect-ratio: 16/10;
    margin-bottom: 18px;
}

.news-card h4 {
    font-size: 1.12rem;
    margin-bottom: 14px;
    font-weight: 600;
}

    .news-card h4 a:hover {
        color: var(--rose);
    }

.news-card p {
    color: var(--ink);
    opacity: .8;
    font-size: .92rem;
    margin-bottom: 10px;
}

/* ========== COMMENTS ========== */
.comments {
    background: var(--burgundy);
    padding: 100px 0;
}

    .comments .eyebrow {
        color: var(--ochre);
    }

    .comments h2 {
        color: var(--cream);
        font-size: 2.3rem;
        margin-bottom: 50px;
    }

.comments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.comment-card {
    background: var(--cream);
    border-radius: 6px;
    padding: 30px;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ochre);
    color: var(--burgundy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
}

.author {
    display: block;
    font-weight: 600;
    color: var(--burgundy);
    font-size: .95rem;
}

.date {
    display: block;
    font-size: .8rem;
    color: var(--rose);
}

.opinion {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink);
    font-size: 1.02rem;
    margin-bottom: 20px;
}

.comment-stats {
    display: flex;
    gap: 20px;
    font-size: .82rem;
    color: var(--rose);
    font-weight: 600;
}

/* ========== TRENDING ========== */
.trending {
    padding: 80px 0;
    text-align: center;
}

    .trending .eyebrow {
        justify-content: center;
    }

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 10px;
}

.topic-pill {
    border: 1.5px solid var(--burgundy);
    color: var(--burgundy);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s ease, color .2s ease;
}

    .topic-pill:hover {
        background: var(--burgundy);
        color: var(--cream);
    }

/* ========== QUOTE BANNER ========== */
.quote-banner {
    background: var(--ochre);
    padding: 70px 32px;
    text-align: center;
}

    .quote-banner p {
        font-family: var(--font-display);
        font-style: italic;
        font-size: clamp(1.4rem, 3vw, 2.1rem);
        color: var(--burgundy-deep);
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.35;
    }

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 60px;
}

.contact-heading h2 {
    font-size: 2.2rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--ink);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 4px;
}

    .social-links a {
        font-weight: 600;
        color: var(--burgundy);
        font-size: .95rem;
    }

        .social-links a:hover {
            color: var(--ochre);
        }

/* ========== FOOTER ========== */
.footer {
    background: var(--burgundy);
    padding: 34px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: var(--cream);
    font-size: .85rem;
    opacity: .8;
}

.footer-links {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--cream);
        font-size: .85rem;
        opacity: .85;
        transition: opacity .2s ease;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--ochre);
        }

/* ========== NAV: mobile toggle + auth form-button ========== */
.nav-links form {
    display: contents;
}

    .nav-links form button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--cream);
        font-family: var(--font-body);
        font-size: .92rem;
        font-weight: 500;
        padding: 4px 0;
        transition: color .2s ease;
    }

        .nav-links form button:hover {
            color: var(--ochre);
        }

@media (max-width: 900px) {
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--burgundy);
        padding: 20px 32px;
        gap: 18px;
        box-shadow: 0 12px 24px rgba(11,24,54,.25);
        z-index: 99;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .hero-visual {
        position: static;
        margin-top: 40px;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comments-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-details, .contact-details {
        grid-template-columns: 1fr;
    }

    .section-inner {
        padding: 0 20px;
    }

    .hero-inner {
        padding: 60px 20px 60px;
    }
}
/* ========== ARTICLE PAGE ========== */
.article-page {
    padding: 80px 0 100px;
}

.article-header {
    max-width: 760px;
    margin: 0 auto 44px;
}

    .article-header .tag {
        display: inline-block;
    }

    .article-header h1 {
        font-size: clamp(2.1rem, 4.5vw, 3.2rem);
        margin: 16px 0 14px;
    }

.article-meta {
    font-size: .85rem;
    color: var(--rose);
    font-weight: 600;
}

.article-hero-image {
    max-width: var(--container);
    margin: 0 auto 56px;
    aspect-ratio: 21 / 9;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.06rem;
}

    .article-body p {
        color: var(--ink);
        opacity: .88;
        margin-bottom: 22px;
    }

.legal-content h2 {
    font-size: 1.3rem;
    margin: 40px 0 14px;
}

    .legal-content h2:first-child {
        margin-top: 0;
    }

.legal-content p {
    line-height: 1.75;
}

.legal-content ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

    .legal-content ul li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 12px;
        color: var(--ink);
        opacity: .88;
        line-height: 1.6;
    }

        .legal-content ul li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .6em;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--ochre);
        }

.legal-content a {
    color: var(--rose);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comments-section {
    max-width: 720px;
    margin: 70px auto 0;
    padding-top: 50px;
    border-top: 1px solid rgba(78,0,0,.18);
}

    .comments-section h2 {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }

.comment-item {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.comment-item-body strong {
    display: block;
    font-family: var(--font-display);
    color: var(--burgundy);
    font-size: 1rem;
    margin-bottom: 2px;
}

.comment-item-body .comment-date {
    display: block;
    font-size: .78rem;
    color: var(--rose);
    margin-bottom: 8px;
}

.comment-item-body p {
    color: var(--ink);
    opacity: .88;
    font-size: .95rem;
}

.comment-form-section {
    margin-top: 56px;
}

    .comment-form-section h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

.comment-form textarea {
    width: 100%;
    border: 1px solid rgba(78,0,0,.25);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    background: var(--cream-light);
    resize: vertical;
    margin-bottom: 16px;
}

    .comment-form textarea:focus {
        outline: 2px solid var(--ochre);
        outline-offset: 2px;
    }

.comment-form button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.login-prompt {
    color: var(--ink);
    opacity: .85;
}

    .login-prompt a {
        color: var(--burgundy);
        font-weight: 600;
        text-decoration: underline;
    }

/* ========== PROFILE PAGE ========== */
.profile-page {
    padding: 80px 0 100px;
}

.profile-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--cream-light);
    border-radius: 8px;
    padding: 44px 40px;
    text-align: center;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 22px;
    background: var(--burgundy);
    color: var(--ochre);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.1rem;
    background-size: cover;
    background-position: center;
}

.profile-card h1 {
    font-size: 1.9rem;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--rose);
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.profile-details {
    text-align: left;
    border-top: 1px solid rgba(78,0,0,.18);
    padding-top: 24px;
    display: grid;
    gap: 18px;
}

    .profile-details .detail-label {
        margin-bottom: 4px;
    }

    .profile-details p {
        color: var(--ink);
        opacity: .85;
        font-size: .98rem;
    }

/* ========== PROFILE FORM ========== */
.profile-form {
    margin-top: 28px;
    border-top: 1px solid rgba(78,0,0,.18);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

    .profile-form label {
        font-family: var(--font-display);
        font-weight: 600;
        color: var(--burgundy);
        font-size: .92rem;
        margin-top: 14px;
    }

        .profile-form label:first-child {
            margin-top: 0;
        }

    .profile-form input {
        border: 1px solid rgba(78,0,0,.25);
        border-radius: 6px;
        padding: 11px 14px;
        font-family: var(--font-body);
        font-size: .95rem;
        color: var(--ink);
        background: var(--cream);
    }

        .profile-form input:focus {
            outline: 2px solid var(--ochre);
            outline-offset: 2px;
        }

    .profile-form button {
        margin-top: 22px;
        border: none;
        cursor: pointer;
        font-family: inherit;
    }

.form-error {
    color: #7a1f1f;
    background: #f4dede;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .88rem;
    margin-top: 18px;
}

/* ========== FORM CARDS (Login / Register / Create News) ========== */
.profile-card.wide {
    max-width: 640px;
}

.profile-form select,
.profile-form textarea {
    border: 1px solid rgba(78,0,0,.25);
    border-radius: 6px;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    background: var(--cream);
}

    .profile-form select:focus,
    .profile-form textarea:focus {
        outline: 2px solid var(--ochre);
        outline-offset: 2px;
    }

.profile-form textarea {
    resize: vertical;
}

.validation-message {
    color: #7a1f1f;
    font-size: .82rem;
    margin-top: 2px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: .92rem;
    color: var(--ink);
}

    .auth-switch a {
        color: var(--burgundy);
        font-weight: 600;
        text-decoration: underline;
    }

/* ========== GENRE PAGE ========== */
.genre-page {
    padding: 80px 0 100px;
}

.genre-header {
    margin-bottom: 50px;
}

    .genre-header h1 {
        font-size: 2.3rem;
    }

.genre-card-meta {
    font-size: .82rem;
    color: var(--rose);
    font-weight: 600;
    margin-top: 4px;
}

/* ========== HERO QUOTE GLYPH ========== */
.pulse-quote {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--ochre);
    font-weight: 600;
    transform: translateY(-6px);
}

/* ========== ORBITING GENRE TAGS ========== */
.orbit-wrap {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--angle));
}

.orbit-pill {
    position: absolute;
    top: -15px;
    left: 148px;
    transform: rotate(calc(-1 * var(--angle)));
    display: inline-block;
    white-space: nowrap;
    background: var(--cream);
    border: 1.5px solid var(--burgundy);
    color: var(--burgundy);
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
}

@media (max-width: 1080px) {
    .orbit-wrap {
        width: 320px;
        height: 320px;
    }

    .orbit-pill {
        left: 122px;
        font-size: .72rem;
        padding: 6px 13px;
    }
}

@media (max-width: 560px) {
    .orbit-item {
        display: none;
    }
}


/* ========== AVENA 5: THEME + LANGUAGE + CUTE DETAILS ========== */
html[data-theme="dark"] {
    --burgundy: #e9ddcf;
    --burgundy-deep: #fff6ed;
    --cream: #151827;
    --cream-light: #24283a;
    --ink: #f4eee7;
    --ochre: #e7c78d;
    --rose: #b9c7e5;
}

html[data-theme="dark"] body { background: #151827; color: #f4eee7; }
html[data-theme="dark"] .navbar { background: #0d1224; }
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .featured-article { background: #202438; border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-form select,
html[data-theme="dark"] .profile-form textarea { background: #171b2d; color: #f4eee7; border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .footer { background: #0d1224; }

.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: 2px; }
.icon-control, .language-control select {
    border: 1px solid rgba(245,240,233,.22);
    background: rgba(255,255,255,.08);
    color: var(--cream);
    border-radius: 999px;
    height: 34px;
    transition: .2s ease;
}
.icon-control { width: 34px; cursor: pointer; font-size: 1rem; }
.language-control select { padding: 0 10px; cursor: pointer; font-size: .72rem; font-weight: 700; }
.icon-control:hover, .language-control select:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.language-control option { background: #112250; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth-page { padding: 70px 0 100px; }
.auth-card { position: relative; overflow: hidden; box-shadow: 0 18px 55px rgba(17,34,80,.10); }
.auth-card::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: var(--ochre); opacity: .10; top: -80px; right: -50px; }
.auth-sparkle { color: var(--ochre); font-size: 1.15rem; margin-bottom: 5px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--rose); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .3; }
.btn-secondary { width: 100%; border: 1px solid var(--burgundy); background: transparent; color: var(--burgundy); padding: 13px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.btn-secondary:hover { background: var(--burgundy); color: var(--cream); transform: translateY(-1px); }
.auth-register-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(128,128,128,.3); }
.auth-register-form[hidden] { display: none; }
.mini-heading { font-family: var(--font-display); color: var(--burgundy); font-size: 1.15rem; margin-bottom: 12px; }
.form-success { color: #2d7a57; background: #e3f4eb; border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin: 14px 0; }
html[data-theme="dark"] .form-success { background: #17392b; color: #a7e2c3; }

@media (max-width: 900px) {
    .nav-tools { margin-top: 8px; }
    .nav-links.open .nav-tools { display: flex; }
}

/* ========== AVENA v6: CONSISTENT THEME SYSTEM ========== */
:root {
    --burgundy: #112250;
    --burgundy-deep: #0B1836;
    --cream: #F5F0E9;
    --cream-light: #D9CBC2;
    --ink: #24314F;
    --ochre: #E0C59F;
    --rose: #60708F;
}

html, body,
.navbar, .footer, .hero, .about, .news, .trending, .contact,
.profile-card, .news-card, .featured-article, .article-page,
.article-body, .comments-section, .profile-form input, .profile-form select,
.profile-form textarea, .tag, .orbit-pill, .topic-pill, .btn-primary,
.btn-secondary, .icon-control, .language-control select, h1, h2, h3, h4, p, a, label, span {
    transition: background-color .45s ease, color .45s ease, border-color .45s ease,
                box-shadow .45s ease, opacity .3s ease;
}

html[data-theme="dark"] {
    --burgundy: #112250;
    --burgundy-deep: #0B1836;
    --cream: #F5F0E9;
    --cream-light: #24283A;
    --ink: #F5F0E9;
    --ochre: #E0C59F;
    --rose: #C8C0B8;
}

html[data-theme="dark"] body { background: #171A2A; color: var(--ink); }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .profile-form label,
html[data-theme="dark"] .read-more,
html[data-theme="dark"] .profile-card h1 { color: var(--ink); }
html[data-theme="dark"] .hero,
html[data-theme="dark"] .news,
html[data-theme="dark"] .genre-page,
html[data-theme="dark"] .article-page,
html[data-theme="dark"] .profile-page { background: #171A2A; }
html[data-theme="dark"] .about { background: #202438; }
html[data-theme="dark"] .navbar { background: #0B1836; }
html[data-theme="dark"] .footer { background: #0B1836; }
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .news-card { background: #24283A; border-color: rgba(224,197,159,.18); }
html[data-theme="dark"] .featured-article { background: transparent; border-color: rgba(224,197,159,.22); }
html[data-theme="dark"] .featured-body p,
html[data-theme="dark"] .news-card p,
html[data-theme="dark"] .detail-row p,
html[data-theme="dark"] .article-content p,
html[data-theme="dark"] .legal-content p,
html[data-theme="dark"] .legal-content li { color: #E8E0D7; opacity: .92; }
html[data-theme="dark"] .profile-form input,
html[data-theme="dark"] .profile-form select,
html[data-theme="dark"] .profile-form textarea { background: #171A2A; color: #F5F0E9; border-color: rgba(224,197,159,.30); }
html[data-theme="dark"] .profile-form input::placeholder,
html[data-theme="dark"] .profile-form textarea::placeholder { color: #AAA7A3; }
html[data-theme="dark"] .orbit-pill { background: #171A2A; color: #F5F0E9; border-color: var(--ochre); }
html[data-theme="dark"] .tag { background: var(--burgundy); color: var(--cream); }
html[data-theme="dark"] .auth-divider { color: var(--rose); }
html[data-theme="dark"] .btn-secondary { color: #F5F0E9; border-color: var(--ochre); }
html[data-theme="dark"] .btn-secondary:hover { background: var(--ochre); color: #112250; }
html[data-theme="dark"] .icon-control,
html[data-theme="dark"] .language-control select { background: rgba(245,240,233,.06); color: #F5F0E9; border-color: rgba(224,197,159,.35); }
html[data-theme="dark"] .language-control option { background: #171A2A; color: #F5F0E9; }
html[data-theme="dark"] .form-error { background: #3A2428; color: #F5C9C9; }
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .genre-card-meta,
html[data-theme="dark"] .profile-username { color: var(--rose); }

/* Article typography: wide, calm, readable and respectful of author line breaks. */
.article-header { max-width: 900px; }
.article-header h1 { max-width: 900px; }
.article-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(17,34,80,.14);
}
.article-meta-item { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.meta-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700;
    color: var(--rose);
}
.meta-value { font-size: .94rem; font-weight: 600; color: var(--ink); }
.article-hero-image { max-width: 1080px; margin-bottom: 58px; }
.article-body { max-width: 900px; }
.article-content { width: 100%; font-size: 1.08rem; line-height: 1.85; }
.article-content p { margin: 0 0 1.45em; color: var(--ink); white-space: pre-line; }
.article-content p:last-child { margin-bottom: 0; }
.article-content p:first-child::first-letter { font-family: var(--font-display); font-size: 1.25em; }
.comments-section { max-width: 900px; }

/* Keep the registration as a separate page, with the same architecture as Profile/Login. */
.auth-register-link { display: block; text-align: center; text-decoration: none; }
.auth-register-link:hover { text-decoration: none; }

@media (max-width: 700px) {
    .article-page { padding-top: 52px; }
    .article-meta-grid { gap: 16px; }
    .article-meta-item { min-width: 42%; }
    .article-body, .article-header, .comments-section { max-width: 100%; }
    .article-content { font-size: 1rem; line-height: 1.78; }
}

/* ========== NAVBAR ALIGNMENT FIX ========== */
.nav-inner {
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links > a,
.nav-links > form,
.nav-links > .nav-tools {
    display: flex;
    align-items: center;
    height: 34px;
}

.nav-links form {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links form button {
    display: inline-flex;
    align-items: center;
    height: 34px;
    margin: 0;
    line-height: 1;
}

.nav-links > a {
    padding: 0;
    line-height: 34px;
}

.nav-tools {
    margin: 0;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-control,
.language-control,
.language-control select {
    margin: 0;
    vertical-align: middle;
}

.icon-control,
.language-control select {
    height: 34px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .nav-links > a,
    .nav-links > form,
    .nav-links > .nav-tools {
        height: auto;
    }

    .nav-links > a,
    .nav-links form button {
        height: 34px;
        line-height: 34px;
    }
}


/* Article author details */
.article-meta-item .meta-value { display:flex; flex-direction:column; gap:3px; }
.author-name { font-weight:700; }
.author-detail { font-size:.82rem; line-height:1.35; opacity:.72; max-width:34rem; }
