/* ==========================================================================
   GC NEWS
   Main Stylesheet
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    --font-display: 'Cinzel', serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --c-brand-black: #0B0F19;
    --c-brand-gold: #C5A059;
    --c-brand-gold-hover: #A8843E;

    --c-surface: #FFFFFF;
    --c-bg: #F8F9FA;
    --c-bg-subtle: #F1F3F5;

    --c-text-main: #1A202C;
    --c-text-muted: #64748B;
    --c-text-light: #94A3B8;

    --c-border: #E2E8F0;
    --c-border-dark: #2D3748;

    --c-danger: #DC2626;

    --max-w: 1360px;

    --radius-sm: 4px;
    --radius-md: 8px;

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.10);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--c-bg);
    color: var(--c-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ==========================================================================
   3. GLOBAL HELPERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

.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;
}


/* ==========================================================================
   4. TOP UTILITY BAR
   ========================================================================== */

.utility-bar {
    background-color: var(--c-brand-black);
    color: #94A3B8;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F8FAFC;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: gcPulse 1.6s infinite;
}

@keyframes gcPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* ==========================================================================
   5. BREAKING NEWS
   ========================================================================== */

.breaking-strip {
    background: #FFFFFF;
    border-bottom: 1px solid var(--c-border);
    padding: 8px 0;
    font-size: 0.85rem;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-tag {
    background: var(--c-danger);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.breaking-text {
    color: var(--c-text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breaking-text:hover {
    color: var(--c-brand-gold-hover);
}


/* ==========================================================================
   6. MASTHEAD
   ========================================================================== */

.masthead {
    background: var(--c-surface);
    padding: 2.25rem 0 1.5rem;
    text-align: center;
}

.masthead-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.brand-logo {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--c-brand-black);
    line-height: 0.95;
}

.brand-logo span {
    color: var(--c-brand-gold);
    font-style: italic;
    font-family: var(--font-serif);
}

.brand-logo:hover {
    opacity: 0.9;
}


/* ==========================================================================
   7. MAIN NAVIGATION
   ========================================================================== */

.nav-editorial {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-top: 1px solid var(--c-border);
    border-bottom: 2px solid var(--c-brand-black);

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: var(--shadow-subtle);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 56px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.1rem 0;
    color: var(--c-text-main);

    display: inline-block;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--c-brand-gold);

    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--c-brand-gold-hover);
}

.nav-links a:hover::after {
    width: 100%;
}


/* ==========================================================================
   8. AUTH BUTTONS
   ========================================================================== */

.auth-actions-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-editorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    padding: 7px 16px;

    border-radius: var(--radius-sm);
    border: 1px solid transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.btn-outline {
    border-color: var(--c-border);
    color: var(--c-text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--c-brand-black);
    background: var(--c-bg-subtle);
}

.btn-gold {
    background: var(--c-brand-gold);
    color: var(--c-brand-black);
}

.btn-gold:hover {
    background: var(--c-brand-gold-hover);
    color: #FFFFFF;
}


/* ==========================================================================
   9. MOBILE NAV BUTTON
   ========================================================================== */

.mobile-nav-toggle {
    display: none;

    background: none;
    border: none;

    font-size: 1.05rem;
    color: var(--c-brand-black);

    padding: 0.9rem 0;

    font-weight: 800;

    gap: 8px;
    align-items: center;
}


/* ==========================================================================
   10. HERO / BROADSHEET
   ========================================================================== */

.hero-broadsheet {
    padding: 2.5rem 0 3.5rem;
}

.broadsheet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}


/* ==========================================================================
   11. LEAD STORY
   ========================================================================== */

.lead-centerpiece {
    display: flex;
    flex-direction: column;

    border-bottom: 1px solid var(--c-border);

    padding-bottom: 2rem;
}

.lead-img-box {
    position: relative;
    overflow: hidden;

    border-radius: var(--radius-sm);

    margin-bottom: 1.25rem;

    background: #E2E8F0;
}

.lead-img-box img {
    aspect-ratio: 16 / 10;
    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-centerpiece:hover .lead-img-box img {
    transform: scale(1.03);
}

.kicker-tag {
    display: inline-block;

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--c-brand-gold-hover);

    margin-bottom: 0.5rem;
}

.lead-title {
    font-family: var(--font-serif);

    font-size: clamp(1.8rem, 3vw, 2.75rem);

    font-weight: 900;

    line-height: 1.15;

    color: var(--c-brand-black);

    margin-bottom: 1rem;
}

.lead-title a:hover {
    color: var(--c-brand-gold-hover);
}

.lead-summary {
    font-size: 1.05rem;

    color: var(--c-text-muted);

    line-height: 1.6;

    margin-bottom: 1.25rem;
}

.byline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 12px;

    font-size: 0.8rem;

    color: var(--c-text-light);

    font-weight: 600;

    text-transform: uppercase;
}

.byline-meta strong {
    color: var(--c-text-main);
}


/* ==========================================================================
   12. SECONDARY STORIES
   ========================================================================== */

.secondary-column {
    display: flex;
    flex-direction: column;

    gap: 2rem;

    border-bottom: 1px solid var(--c-border);

    padding-bottom: 2rem;
}

.sub-story-card {
    display: flex;
    flex-direction: column;

    gap: 0.75rem;

    padding-bottom: 1.5rem;

    border-bottom: 1px solid var(--c-border);
}

.sub-story-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-story-img {
    border-radius: var(--radius-sm);

    overflow: hidden;

    margin-bottom: 0.5rem;

    background: var(--c-bg-subtle);
}

.sub-story-img img {
    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition: transform 0.35s ease;
}

.sub-story-card:hover .sub-story-img img {
    transform: scale(1.025);
}

.sub-story-title {
    font-family: var(--font-serif);

    font-size: 1.25rem;

    font-weight: 700;

    line-height: 1.3;

    color: var(--c-brand-black);
}

.sub-story-title a:hover {
    color: var(--c-brand-gold-hover);
}


/* ==========================================================================
   13. MOST READ SIDEBAR
   ========================================================================== */

.sidebar-ranked {
    min-width: 0;
}

.rank-column-title {
    font-family: var(--font-serif);

    font-size: 1.2rem;

    font-weight: 900;

    border-bottom: 2px solid var(--c-brand-black);

    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank-item {
    display: flex;

    gap: 16px;

    align-items: baseline;

    padding: 1rem 0;

    border-bottom: 1px dashed var(--c-border);
}

.rank-item:first-of-type {
    padding-top: 0;
}

.rank-num {
    font-family: var(--font-display);

    font-size: 1.8rem;

    font-weight: 900;

    color: var(--c-brand-gold);

    line-height: 1;

    flex-shrink: 0;
}

.rank-title {
    font-family: var(--font-serif);

    font-size: 0.95rem;

    font-weight: 700;

    line-height: 1.4;
}

.rank-title a:hover {
    color: var(--c-brand-gold-hover);
}


/* ==========================================================================
   14. SECTION HEADER
   ========================================================================== */

.section-separator {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 2.5rem;
}

.section-separator h2 {
    font-family: var(--font-serif);

    font-size: 1.6rem;

    font-weight: 900;

    white-space: nowrap;
}

.separator-line {
    height: 1px;

    background: var(--c-border);

    width: 100%;
}


/* ==========================================================================
   15. NEWS FEED
   ========================================================================== */

.feed-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

    margin-bottom: 4rem;
}

.feed-card {
    background: var(--c-surface);

    border: 1px solid var(--c-border);

    border-radius: var(--radius-sm);

    padding: 1.5rem;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.feed-card:hover {
    box-shadow: var(--shadow-hover);

    transform: translateY(-2px);

    border-color: #CBD5E1;
}

.feed-card .feed-title {
    font-family: var(--font-serif);

    font-size: 1.25rem;

    line-height: 1.35;

    margin: 0.5rem 0 0.75rem;

    font-weight: 700;
}

.feed-card .feed-title a:hover {
    color: var(--c-brand-gold-hover);
}

.feed-card .feed-excerpt {
    color: var(--c-text-muted);

    font-size: 0.95rem;

    flex-grow: 1;

    margin-bottom: 1rem;
}


/* ==========================================================================
   16. NEWSLETTER
   ========================================================================== */

.newsletter-hero {
    background: var(--c-brand-black);

    color: #FFFFFF;

    border-radius: var(--radius-md);

    padding: clamp(2rem, 5vw, 3.5rem);

    margin-bottom: 4rem;

    display: grid;

    grid-template-columns: 1fr;

    gap: 2rem;

    align-items: center;
}

.newsletter-hero h3 {
    font-family: var(--font-serif);

    font-size: clamp(1.6rem, 3vw, 2.2rem);

    color: #FFFFFF;

    margin-bottom: 0.5rem;
}

.newsletter-hero p {
    color: #94A3B8;

    font-size: 1rem;
}

.newsletter-form {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.newsletter-input {
    flex-grow: 1;

    padding: 14px 18px;

    border-radius: var(--radius-sm);

    border: 1px solid var(--c-border-dark);

    background: rgba(255, 255, 255, 0.08);

    color: #FFFFFF;

    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #94A3B8;
}

.newsletter-input:focus {
    outline: none;

    border-color: var(--c-brand-gold);

    background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
    background: var(--c-brand-gold);

    color: var(--c-brand-black);

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    padding: 14px 24px;

    border: none;

    border-radius: var(--radius-sm);

    transition:
        background 0.2s ease,
        color 0.2s ease;

    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--c-brand-gold-hover);

    color: #FFFFFF;
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--c-brand-black);

    color: #94A3B8;

    padding: 4rem 0 2rem;

    border-top: 4px solid var(--c-brand-gold);

    font-size: 0.9rem;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 3rem;

    margin-bottom: 3.5rem;
}

.footer-brand h4 {
    font-family: var(--font-display);

    font-size: 1.8rem;

    color: #FFFFFF;

    margin-bottom: 1rem;
}

.footer-brand h4 span {
    color: var(--c-brand-gold);

    font-family: var(--font-serif);
}

.footer-brand p {
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;

    color: #FFFFFF;

    margin-bottom: 1.25rem;

    font-weight: 800;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a:hover {
    color: var(--c-brand-gold);

    padding-left: 4px;
}

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    padding-top: 2rem;

    display: flex;

    flex-direction: column;

    gap: 1rem;

    align-items: center;

    text-align: center;

    font-size: 0.8rem;
}


/* ==========================================================================
   18. DESKTOP LAYOUT
   ========================================================================== */

@media (min-width: 1080px) {

    .broadsheet-grid {
        grid-template-columns:
            5.5fr 3.5fr 3fr;

        align-items: start;
    }

    .lead-centerpiece {
        border-bottom: none;

        border-right:
            1px solid var(--c-border);

        padding-right: 2.5rem;
    }

    .secondary-column {
        border-bottom: none;

        border-right:
            1px solid var(--c-border);

        padding-right: 2rem;
    }
}


/* ==========================================================================
   19. NEWSLETTER DESKTOP
   ========================================================================== */

@media (min-width: 900px) {

    .newsletter-hero {
        grid-template-columns: 1.2fr 1fr;
    }
}


/* ==========================================================================
   20. FOOTER DESKTOP
   ========================================================================== */

@media (min-width: 768px) {

    .footer-bottom {
        flex-direction: row;

        justify-content: space-between;

        text-align: left;
    }
}


/* ==========================================================================
   21. MOBILE NAVIGATION
   ========================================================================== */

@media (max-width: 1024px) {

    .mobile-nav-toggle {
        display: flex;
    }

    .auth-actions-desktop {
        display: none;
    }

    .nav-links {
        display: none;

        flex-direction: column;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        background: #FFFFFF;

        padding: 1rem 0;

        box-shadow:
            0 10px 20px rgba(0, 0, 0, 0.10);

        border-bottom:
            2px solid var(--c-brand-gold);

        align-items: flex-start;

        z-index: 1100;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;

        padding: 14px 2rem;

        border-bottom:
            1px solid var(--c-border);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-auth-row {
        display: flex;

        gap: 10px;

        padding:
            1.5rem 2rem 0.5rem;

        width: 100%;
    }

    .mobile-auth-row .btn-editorial {
        flex: 1;

        text-align: center;
    }
}

@media (min-width: 1025px) {

    .mobile-auth-row {
        display: none;
    }
}


/* ==========================================================================
   22. TABLET
   ========================================================================== */

@media (max-width: 768px) {

    .hero-broadsheet {
        padding-top: 1.75rem;
    }

    .utility-flex {
        font-size: 0.7rem;
    }

    .masthead {
        padding:
            1.75rem 0 1.25rem;
    }

    .section-separator {
        margin-bottom: 1.5rem;
    }

    .section-separator h2 {
        font-size: 1.4rem;
    }

    .lead-summary {
        font-size: 1rem;
    }

    .feed-grid {
        gap: 1.25rem;
    }

    .newsletter-hero {
        margin-bottom: 3rem;
    }

    .site-footer {
        padding-top: 3rem;
    }
}


/* ==========================================================================
   23. SMALL MOBILE
   ========================================================================== */

@media (max-width: 520px) {

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .utility-flex {
        justify-content: center;
    }

    .utility-flex > div:last-child {
        display: none;
    }

    .breaking-inner {
        gap: 10px;
    }

    .breaking-tag {
        font-size: 0.62rem;
    }

    .breaking-text {
        font-size: 0.78rem;
    }

    .masthead-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.16em;
    }

    .brand-logo {
        font-size: 2.8rem;
    }

    .lead-title {
        font-size: 1.75rem;
    }

    .sub-story-title {
        font-size: 1.15rem;
    }

    .section-separator h2 {
        white-space: normal;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }

    .feed-card {
        padding: 1.25rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .byline-meta {
        font-size: 0.7rem;
    }
}


/* ==========================================================================
   24. ACCESSIBILITY
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(197, 160, 89, 0.45);
    outline-offset: 3px;
}


/* ==========================================================================
   25. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Newsletter Messages
   ========================================================================== */

.newsletter-signup {
    min-width: 0;
}

.newsletter-message {
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.newsletter-message-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #BBF7D0;
}

.newsletter-message-info {
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #FDE68A;
}

.newsletter-message-error {
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #FECACA;
}

.newsletter-note {
    margin-top: 10px;
    font-size: 0.75rem !important;
    color: #64748B !important;
}