/* concepts.news - Typographic Focus News */
/* Palette: #ffffff, #1a1a1a, #c0392b, #2c3e50, #e8e8e8, #7f8c8d */
/* Fonts: Literata (serif), Inter (sans-serif) */

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --red: #c0392b;
    --blue: #2c3e50;
    --border: #e8e8e8;
    --meta: #7f8c8d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Literata', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   LEVEL 1 - Masthead (highest visual importance)
   ================================================ */
.masthead {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-optical-sizing: auto;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* ================================================
   LEVEL 2 - Lead Headline / Deep Read Headline
   ================================================ */
.lead-headline {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-optical-sizing: auto;
    line-height: 1.12;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    max-width: 820px;
}

.deep-headline {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-optical-sizing: auto;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

/* ================================================
   LEVEL 3 - Article Card Headlines
   ================================================ */
.article-headline {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    font-optical-sizing: auto;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}

.article-card:hover .article-headline {
    color: var(--blue);
}

/* ================================================
   LEVEL 4 - Standfirsts / Excerpts / Pull Quotes
   ================================================ */
.lead-standfirst {
    font-family: 'Literata', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    font-optical-sizing: auto;
    color: var(--text);
    line-height: 1.7;
    max-width: 720px;
}

.deep-standfirst {
    font-family: 'Literata', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    font-optical-sizing: auto;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 640px;
}

.article-excerpt {
    font-family: 'Literata', Georgia, serif;
    font-size: 0.9rem;
    font-optical-sizing: auto;
    color: var(--meta);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.quote-text {
    font-family: 'Literata', Georgia, serif;
    font-style: italic;
    font-size: 1.35rem;
    font-optical-sizing: auto;
    line-height: 1.5;
    color: var(--text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   LEVEL 5 - Captions / Meta / Labels / Navigation
   ================================================ */
.nav-link,
.dateline,
.byline,
.reading-time,
.article-meta,
.category-label,
.cat-pill,
.footer-link,
.footer-note,
.newsletter-label,
.newsletter-desc {
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--text);
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.25rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--meta);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text);
}

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

.dateline {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--meta);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

/* ================================================
   LEAD STORY / HERO ZONE
   ================================================ */
.lead-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2.5rem;
}

.breaking-banner {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #ffffff;
    background: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
    animation: pulse-subtle 3s ease-in-out infinite;
}

.breaking-icon {
    flex-shrink: 0;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.lead-meta {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--meta);
    display: flex;
    align-items: center;
    gap: 0;
}

.byline {
    font-weight: 500;
    font-size: inherit;
}

.meta-sep {
    margin: 0 0.5rem;
    color: var(--border);
}

.reading-time {
    font-size: 0.75rem;
    color: var(--meta);
}

/* ================================================
   SECTION RULES
   ================================================ */
.section-rule {
    max-width: 1000px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--border);
}

/* ================================================
   CATEGORY HEADERS
   ================================================ */
.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--blue);
}

.cat-icon {
    flex-shrink: 0;
    color: var(--blue);
}

.category-label {
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
}

/* Category-specific underline colors */
.cat-label-science {
    color: var(--blue);
}

.cat-label-philosophy {
    color: var(--red);
}

.cat-label-tech {
    color: var(--blue);
}

.cat-label-society {
    color: var(--meta);
}

/* Match category header border to category */
#philosophy-section .category-header {
    border-bottom-color: var(--red);
}

#philosophy-section .cat-icon {
    color: var(--red);
}

#society-section .category-header {
    border-bottom-color: var(--meta);
}

#society-section .cat-icon {
    color: var(--meta);
}

.opinion-section .category-header {
    border-bottom-color: var(--text);
}

.opinion-section .cat-icon {
    color: var(--text);
}

/* ================================================
   ARTICLE GRID
   ================================================ */
.grid-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.article-card {
    border-left: 1px solid var(--border);
    padding-left: 1.25rem;
    transition: border-left-color 0.3s ease;
    cursor: default;
}

.article-card:first-child {
    border-left: none;
    padding-left: 0;
}

.article-card:hover {
    border-left-color: var(--blue);
}

.article-card:first-child:hover {
    border-left-color: transparent;
}

/* Category Pills */
.cat-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.pill-science {
    background: rgba(44, 62, 80, 0.07);
    color: var(--blue);
}

.pill-philosophy {
    background: rgba(192, 57, 43, 0.07);
    color: var(--red);
}

.pill-tech {
    background: rgba(44, 62, 80, 0.07);
    color: var(--blue);
}

.pill-society {
    background: rgba(127, 140, 141, 0.1);
    color: var(--meta);
}

.pill-opinion {
    background: rgba(26, 26, 26, 0.06);
    color: var(--text);
}

.article-meta {
    font-size: 0.72rem;
    color: var(--meta);
    display: flex;
    gap: 1rem;
    font-weight: 400;
}

/* ================================================
   DEEP READ / FEATURED LONG-FORM
   ================================================ */
.deep-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.deep-body {
    columns: 2;
    column-gap: 40px;
    column-rule: 1px solid var(--border);
}

.deep-body p {
    font-family: 'Literata', Georgia, serif;
    font-size: 1rem;
    font-optical-sizing: auto;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.pull-quote {
    column-span: all;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    border-top: 3px solid var(--text);
    max-width: 1000px;
    margin: 0 auto;
}

.footer-inner {
    padding: 2.5rem 2rem 2rem;
}

.footer-masthead {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-newsletter {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.newsletter-label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.newsletter-desc {
    font-size: 0.82rem;
    color: var(--meta);
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 400px;
}

.newsletter-input {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-right: none;
    background: var(--bg);
    color: var(--text);
    flex: 1;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    border-color: var(--blue);
}

.newsletter-input::placeholder {
    color: var(--meta);
}

.newsletter-btn {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.25rem;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-link {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--meta);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text);
}

.footer-note {
    font-size: 0.72rem;
    color: var(--meta);
    margin-top: 0.25rem;
}

/* ================================================
   FADE-IN ANIMATION
   ================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for article cards in same row */
.article-grid .article-card:nth-child(2).fade-in {
    transition-delay: 0.1s;
}

.article-grid .article-card:nth-child(3).fade-in {
    transition-delay: 0.2s;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 860px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .article-card:nth-child(2) {
        border-left: none;
        padding-left: 0;
    }

    .article-card:nth-child(3) {
        border-left: none;
        padding-left: 0;
        grid-column: 1 / -1;
        border-top: 1px solid var(--border);
        padding-top: 1.25rem;
    }

    .deep-body {
        columns: 1;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .site-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .header-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .lead-section,
    .grid-section,
    .deep-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

    .article-card {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .article-card:nth-child(3) {
        grid-column: auto;
        border-top: none;
        padding-top: 0;
    }

    .article-card:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .footer-inner {
        padding: 2rem 1.25rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 100%;
    }

    .newsletter-input {
        border-right: 1px solid var(--border);
    }

    .newsletter-btn {
        width: 100%;
    }

    .lead-headline {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .pull-quote {
        padding: 1.5rem 0;
    }

    .quote-text {
        font-size: 1.15rem;
    }
}
