/* ══════════════════════════════════════════════════════════════════════════════
   RITESH BAWRI - SHARED STYLES
   Premium minimalist design system
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    /* Colors - Dark Theme (Default) */
    --void: #0A0A0B;
    --ink: #111113;
    --charcoal: #1A1A1D;
    --slate: #2A2A2F;
    --stone: #4A4A52;
    --mist: #8A8A95;
    --cloud: #C5C5CC;
    --pearl: #E8E8EC;
    --snow: #F5F5F7;
    --light: #FFFFFF;

    /* Gold Accent */
    --gold: #C9A962;
    --gold-light: #E5D4A1;
    --gold-glow: rgba(201, 169, 98, 0.15);
    --gold-subtle: rgba(201, 169, 98, 0.08);

    /* Semantic Colors */
    --bg-primary: var(--void);
    --bg-secondary: var(--ink);
    --bg-elevated: var(--charcoal);
    --text-primary: var(--pearl);
    --text-secondary: var(--mist);
    --text-tertiary: var(--stone);
    --accent: var(--gold);
    --border: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.03);

    /* Typography */
    --font-display: 'Cormorant', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Layout */
    --max-width: 1400px;
    --content-width: 720px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: var(--snow);
    --bg-secondary: var(--light);
    --bg-elevated: var(--pearl);
    --text-primary: var(--ink);
    --text-secondary: var(--stone);
    --text-tertiary: var(--mist);
    --border: rgba(0, 0, 0, 0.06);
    --border-subtle: rgba(0, 0, 0, 0.03);
    --gold-glow: rgba(201, 169, 98, 0.2);
    --gold-subtle: rgba(201, 169, 98, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

html.loading {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s var(--ease-out-quart), color 0.5s var(--ease-out-quart);
}

::selection {
    background: var(--gold);
    color: var(--void);
}

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

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

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

/* ══════════════════════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

section {
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.4s var(--ease-out-quart);
}

.nav.scrolled {
    padding: 16px 0;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(245, 245, 247, 0.9);
}

/* Static nav (for inner pages) */
.nav.nav-static {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.nav-static {
    background: rgba(245, 245, 247, 0.9);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.nav-logo-text {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-logo:hover .nav-logo-text {
    transform: translateY(-100%);
}

.nav-logo-hover {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--gold);
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-logo:hover .nav-logo-hover {
    transform: translateY(-100%);
}

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

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::before {
    transform: translateX(-50%) scale(1);
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::before {
    transform: translateX(-50%) scale(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--border);
}

.theme-toggle[aria-label] {
    position: relative;
}

.nav-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-quart);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2rem;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--gold);
}

.mobile-menu-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PAGE HEADER (Inner Pages)
   ══════════════════════════════════════════════════════════════════════════════ */

.page-header {
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.page-header-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
    color: var(--gold);
    gap: 12px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
}

.page-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--void);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s var(--ease-out-expo);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECTION LABELS & TITLES
   ══════════════════════════════════════════════════════════════════════════════ */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 500px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARDS - Essays
   ══════════════════════════════════════════════════════════════════════════════ */

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

.essay-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.essay-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

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

.essay-card:hover::after {
    transform: scaleX(1);
}

.essay-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

.essay-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.essay-category {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 4px 12px;
    background: var(--gold-subtle);
    border-radius: 100px;
}

.essay-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}

.essay-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.essay-card:hover .essay-title {
    color: var(--gold);
}

.essay-excerpt {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.essay-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.essay-card:hover .essay-link {
    color: var(--gold);
    gap: 12px;
}

.essay-reading-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARDS - Videos
   ══════════════════════════════════════════════════════════════════════════════ */

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

.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

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

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--void);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lazy loading facade for videos */
.video-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--void);
}

.video-facade::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.video-facade:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.video-play-btn {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.video-facade:hover .video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.4);
}

.video-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    fill: var(--void);
}

.video-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
    transition: color 0.2s;
}

.video-card:hover .video-title {
    color: var(--gold);
}

.video-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-channel {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Channel Stats */
.channel-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--void);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 40px;
    transition: all 0.3s var(--ease-out-expo);
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

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

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ══════════════════════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════════════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   READING PROGRESS BAR (for essays)
   ══════════════════════════════════════════════════════════════════════════════ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold);
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
   ══════════════════════════════════════════════════════════════════════════════ */

.newsletter-section {
    background: var(--gold);
    color: var(--void);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section .section-label {
    color: var(--void);
}

.newsletter-section .section-label::before {
    background: var(--void);
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 16px;
}

.newsletter-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--void);
    transition: all 0.3s;
}

.newsletter-input::placeholder {
    color: rgba(10, 10, 11, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--void);
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-btn {
    padding: 16px 28px;
    background: var(--void);
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════════════════════════════════════════ */

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--gold);
    color: var(--void);
    font-weight: 500;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 16px;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .essays-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .essay-card {
        padding: 32px 24px;
    }

    .video-content {
        padding: 24px;
    }

    .channel-stats {
        flex-direction: column;
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ARTICLE/ESSAY DETAIL PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

.article-header {
    padding: 180px 0 60px;
    position: relative;
    overflow: hidden;
}

.article-header-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.article-header-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.article-category {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 14px;
    background: var(--gold-subtle);
    border-radius: 100px;
}

.article-date {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.article-reading-time {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Article Content */
.article-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 60px 0 120px;
}

.article-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.75em;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 2.5em 0 1em;
    color: var(--text-primary);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    margin: 2em 0 0.75em;
    color: var(--text-primary);
}

.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 24px;
    margin: 2em 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.75em;
    color: var(--text-primary);
}

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

.article-content a:hover {
    text-decoration: none;
}

.drop-cap::first-letter {
    font-family: var(--font-display);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 8px;
    color: var(--gold);
}

/* Article Footer */
.article-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.article-author {
    display: flex;
    gap: 20px;
    align-items: center;
}

.article-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold);
}

.article-author-info h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.article-author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Related Essays */
.related-essays {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.related-essays-header {
    text-align: center;
    margin-bottom: 48px;
}

.related-essays-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
}

.related-essays-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.related-essay-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 32px;
    transition: all 0.3s var(--ease-out-expo);
}

.related-essay-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.related-essay-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.related-essay-card:hover h4 {
    color: var(--gold);
}

.related-essay-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-header {
        padding: 140px 0 40px;
    }

    .related-essays-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

@media print {
    .nav,
    .back-to-top,
    .reading-progress,
    .mobile-menu,
    .newsletter-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
