/*
 * PEPTITBLOG.COM
 * Scientific Editorial - Vintage Science Magazine Aesthetic
 * Distinctive typography, paper textures, dramatic spacing
 */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Paper & Ink Palette */
    --cream: #f8f5f0;
    --paper: #ffffff;
    --parchment: #f3ede4;
    --tan: #d4a574;
    --sienna: #8b4513;
    --forest: #2d5016;
    --ink: #1a1a1a;
    --graphite: #4a4a4a;
    --pencil: #6b6b6b;
    --faded: #9a9a9a;
    --rule: #e0dbd4;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-sm: 680px;
    --container-md: 900px;
    --container-lg: 1200px;

    /* Effects */
    --shadow-paper: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Paper texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: var(--tan);
    color: var(--ink);
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-sm);
}

.container--article {
    max-width: var(--container-md);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--ink);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    font-size: 1rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--graphite);
    transition: color 0.2s var(--ease);
    position: relative;
}

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

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

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

.lang-switch {
    display: flex;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pencil);
    background: transparent;
    transition: all 0.2s var(--ease);
}

.lang-btn.active {
    background: var(--ink);
    color: var(--cream);
}

/* Elegant Hamburger Menu */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.menu-toggle:hover {
    background: var(--parchment);
    border-color: var(--tan);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--sienna) 0%, var(--tan) 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

body.menu-open .menu-toggle {
    border-color: var(--sienna);
}

body.menu-open .menu-toggle::before {
    opacity: 1;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: all 0.3s var(--ease);
    z-index: 1;
}

body.menu-open .menu-toggle span {
    background: transparent;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--ink);
    left: 0;
    transition: all 0.3s var(--ease);
    border-radius: 1px;
}

.menu-toggle span::before {
    top: -6px;
    width: 14px;
    left: 2px;
}

.menu-toggle span::after {
    bottom: -6px;
    width: 10px;
    left: 4px;
}

.menu-toggle:hover span::before,
.menu-toggle:hover span::after {
    width: 18px;
    left: 0;
}

/* X Animation when open */
body.menu-open .menu-toggle span::before {
    transform: rotate(45deg);
    top: 0;
    width: 18px;
    left: 0;
    background: var(--paper);
}

body.menu-open .menu-toggle span::after {
    transform: rotate(-45deg);
    bottom: 0;
    width: 18px;
    left: 0;
    background: var(--paper);
}

/* ===== HERO - LANDING ===== */
.hero {
    padding: var(--space-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--tan) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sienna);
    margin-bottom: var(--space-xl);
}

.hero-label::before,
.hero-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--sienna);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto var(--space-xl);
}

.hero-title em {
    font-style: italic;
    color: var(--sienna);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--graphite);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.hero-cta:hover {
    background: var(--sienna);
    transform: translateY(-2px);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* ===== FEATURED ARTICLE ===== */
.featured {
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--rule);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--pencil);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--rule);
    margin-left: var(--space-xl);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: var(--space-2xl);
    transition: box-shadow 0.3s var(--ease);
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
}

.featured-image {
    aspect-ratio: 4/3;
    background: var(--parchment);
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--parchment) 0%, var(--cream) 100%);
}

.featured-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: var(--tan);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.featured-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream);
    background: var(--sienna);
    padding: var(--space-xs) var(--space-sm);
}

.featured-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pencil);
}

.featured-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
    transition: color 0.3s var(--ease);
}

.featured-card:hover .featured-title {
    color: var(--sienna);
}

.featured-excerpt {
    color: var(--graphite);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--rule);
}

.reading-time {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pencil);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.reading-time svg {
    width: 14px;
    height: 14px;
}

.read-more {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sienna);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap 0.3s var(--ease);
}

.read-more:hover {
    gap: var(--space-sm);
}

/* ===== ARTICLE GRID ===== */
.articles {
    padding: var(--space-4xl) 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.article-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    transition: all 0.3s var(--ease);
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.article-card-image {
    aspect-ratio: 16/10;
    background: var(--parchment);
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: var(--space-lg);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.article-card-category {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sienna);
}

.article-card-date {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--faded);
}

.article-card-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    transition: color 0.3s var(--ease);
}

.article-card:hover .article-card-title {
    color: var(--sienna);
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--graphite);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: var(--space-4xl) 0;
    background: var(--parchment);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.category-card {
    padding: var(--space-xl);
    background: var(--paper);
    border: 1px solid var(--rule);
    text-align: center;
    transition: all 0.3s var(--ease);
}

.category-card:hover {
    border-color: var(--sienna);
    transform: translateY(-4px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--sienna);
}

.category-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.category-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pencil);
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: var(--space-5xl) 0;
    text-align: center;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.newsletter-description {
    color: var(--graphite);
    margin-bottom: var(--space-2xl);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--rule);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s var(--ease);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--sienna);
}

.newsletter-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s var(--ease);
}

.newsletter-btn:hover {
    background: var(--sienna);
}

/* ===== BLOG PAGE ===== */
.blog-hero {
    padding: var(--space-4xl) 0 var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--rule);
}

.blog-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.blog-hero-description {
    color: var(--graphite);
    max-width: 500px;
    margin: 0 auto;
}

.blog-filters {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--rule);
}

.filters-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pencil);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--ink);
    border-color: var(--ink);
}

/* ===== ARTICLE PAGE ===== */
.article-header {
    padding: var(--space-4xl) 0 var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--rule);
}

.article-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.article-header-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream);
    background: var(--sienna);
    padding: var(--space-xs) var(--space-md);
}

.article-header-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pencil);
}

.article-header-reading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pencil);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.article-header-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto var(--space-lg);
}

.article-header-excerpt {
    font-size: 1.25rem;
    color: var(--graphite);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Article Content */
.article-body {
    padding: var(--space-3xl) 0;
}

.article-content {
    max-width: var(--container-sm);
    margin: 0 auto;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    margin: var(--space-3xl) 0 var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--rule);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    margin: var(--space-2xl) 0 var(--space-md);
}

.article-content p {
    margin-bottom: var(--space-lg);
}

.article-content ul,
.article-content ol {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
}

.article-content li {
    margin-bottom: var(--space-sm);
}

.article-content strong {
    font-weight: 600;
}

.article-content em {
    font-style: italic;
}

.article-content blockquote {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--parchment);
    border-left: 3px solid var(--sienna);
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--parchment);
    padding: 0.15em 0.4em;
    border-radius: 2px;
}

/* Table of Contents */
.toc {
    background: var(--parchment);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--rule);
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pencil);
    margin-bottom: var(--space-md);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: var(--space-sm);
}

.toc-list a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--graphite);
    transition: color 0.2s var(--ease);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.toc-list a::before {
    content: counter(toc-counter);
    counter-increment: toc-counter;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--sienna);
}

.toc-list {
    counter-reset: toc-counter;
}

.toc-list a:hover {
    color: var(--sienna);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--rule);
}

.article-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pencil);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--rule);
    transition: all 0.3s var(--ease);
}

.article-tag:hover {
    border-color: var(--sienna);
    color: var(--sienna);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--cream);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--faded);
    line-height: 1.7;
}

.footer-section-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--faded);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.8;
    transition: opacity 0.3s var(--ease);
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--faded);
}

.footer-lang {
    display: flex;
    gap: var(--space-md);
}

.footer-lang a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--faded);
    transition: color 0.3s var(--ease);
}

.footer-lang a:hover,
.footer-lang a.active {
    color: var(--cream);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: var(--space-2xl);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

body.menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        padding: var(--space-3xl) 0;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }

    .filters-inner {
        flex-wrap: wrap;
    }

    .article-header-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
