:root {
            --paper-color: #fdfaf6;
            --ink-black: #1a1a1a;
            --ink-light: #4a4a4a;
            --accent-red: #8b0000;
            --colophon-bg: #f4f3ef;
            --editorial-bg: #f8f5ef;
            --shadow: rgba(0,0,0,0.08);
            --shadow-hover: rgba(0,0,0,0.15);
            --column-rule-color: #ccc;
        }

        :root[data-theme="sepia"] {
            --paper-color: #f0e6d3;
            --ink-black: #3d2b1f;
            --ink-light: #6b5344;
            --accent-red: #7a3b2e;
            --colophon-bg: #e6d8c0;
            --editorial-bg: #e6d8c0;
            --shadow: rgba(0,0,0,0.1);
            --shadow-hover: rgba(0,0,0,0.18);
            --column-rule-color: #c4b49a;
        }

        :root[data-theme="dark"] {
            --paper-color: #1a1a1a;
            --ink-black: #e0ddd5;
            --ink-light: #a09b91;
            --accent-red: #c44d3f;
            --colophon-bg: #2a2a2a;
            --editorial-bg: #2a2a2a;
            --shadow: rgba(255,255,255,0.06);
            --shadow-hover: rgba(255,255,255,0.12);
            --column-rule-color: #444;
        }

        @font-face {
            font-family: 'Chomsky';
            src: url('https://cdn.jsdelivr.net/gh/ctrlcctrlv/chomsky@master/Chomsky.otf') format('opentype');
        }

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

        html, body {
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: 'Lora', serif;
            background-color: var(--paper-color);
            color: var(--ink-black);
            line-height: 1.78;
            font-size: 1.1rem;
            min-height: 100vh;
            padding: 0;
            text-rendering: optimizeLegibility;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Reading Progress Indicator */
        #progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background-color: var(--accent-red);
            width: 0%;
            z-index: 9999;
            transition: width 0.1s ease, opacity 0.3s ease;
            opacity: 0;
        }

        /* Ambient paper texture */
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.05"/></svg>');
            pointer-events: none;
            z-index: 1;
            opacity: 0.3;
        }

        .container {
            max-width: 1200px;
            margin: 2rem auto;
            background: var(--paper-color);
            padding: 0 2rem;
            transition: background-color 0.3s ease;
        }

        /* Masthead / Header */
        header {
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
            border-top: 6px solid var(--ink-black);
            padding-top: 1.5rem;
        }

        .masthead-subline {
            font-family: 'Lora', serif;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 3px;
            font-weight: 700;
            color: var(--ink-light);
            margin-bottom: 1rem;
        }

        .masthead-title {
            font-family: 'Chomsky', 'Playfair Display', serif;
            font-size: 5.5rem;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 0.5rem;
            color: var(--ink-black);
            text-transform: capitalize;
            letter-spacing: -2px;
        }
        
        .masthead-subtitle {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            font-style: italic;
            color: var(--ink-black);
            margin-bottom: 1.5rem;
        }

        .masthead-divider {
            border-bottom: 4px double var(--ink-black);
            margin: 1.5rem auto;
            width: 100%;
        }

        .meta-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 4px solid var(--ink-black);
            padding: 0.5rem 0;
            font-family: 'Lora', serif;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 2rem;
        }
        
        .meta-left {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .meta-sep::before {
            content: '·';
            margin: 0 0.25rem;
            color: var(--ink-light);
        }

        .meta-right {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .lang-switcher button, .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-family: 'Lora', serif;
            font-weight: 700;
            color: var(--ink-light);
            font-size: 0.9rem;
            min-height: 44px;
            min-width: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .lang-switcher button.active {
            color: var(--ink-black);
            text-decoration: underline;
        }

        .theme-toggle {
            font-size: 1.1rem;
        }

        /* Archive Bar */
        .archive-section {
            position: relative;
            margin-top: 2rem;
            margin-bottom: 1rem;
            border-top: 2px solid var(--ink-black);
            border-bottom: 1px solid var(--ink-black);
            padding: 1rem 0;
            display: flex;
            align-items: center;
        }

        .archive-nav {
            background: var(--paper-color);
            border: 1px solid var(--ink-light);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--ink-black);
            position: absolute;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: opacity 0.3s ease;
        }
        
        .archive-nav:hover {
            background: var(--ink-black);
            color: var(--paper-color);
        }

        .archive-nav.left { left: -18px; }
        .archive-nav.right { right: -18px; }

        .archive-container {
            display: flex;
            overflow-x: auto;
            gap: 1.5rem;
            padding: 0.5rem 1rem;
            scrollbar-width: none; /* Hide scrollbar for cleaner look */
            -ms-overflow-style: none;
            width: 100%;
            scroll-behavior: smooth;
        }
        .archive-container::-webkit-scrollbar {
            display: none;
        }

        .edition-icon {
            flex: 0 0 auto;
            width: 120px;
            height: 150px;
            background: var(--paper-color);
            border: 1px solid var(--ink-light);
            box-shadow: 2px 4px 10px var(--shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            text-align: center;
            padding: 0.8rem;
            text-decoration: none;
            color: var(--ink-black);
        }

        .edition-icon:hover, .edition-icon.active {
            transform: translateY(-5px);
            box-shadow: 4px 8px 15px var(--shadow-hover);
            border-color: var(--ink-black);
        }

        .edition-icon.active::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 10px;
            border-style: solid;
            border-color: var(--ink-black) transparent transparent transparent;
        }

        .edition-icon .icon-masthead {
            font-family: 'Chomsky', 'Playfair Display', serif;
            font-size: 1rem;
            border-bottom: 1px solid var(--ink-black);
            padding-bottom: 0.2rem;
            margin-bottom: 0.4rem;
            width: 100%;
        }

        .edition-icon .icon-date {
            font-family: 'Lora', serif;
            font-size: 0.8rem;
            font-weight: 600;
        }

        /* Newspaper Content Columns */
        .content {
            column-width: 280px;
            column-gap: 2.5rem;
            column-rule: 1px solid var(--column-rule-color);
            text-align: justify;
            hyphens: auto;
            hyphenate-limit-chars: 6 3 2;
        }

        /* Typography within content */
        .content p { 
            margin-bottom: 1.2rem; 
            text-indent: 1.5rem;
            letter-spacing: 0.01em;
        }

        .content h1 { 
            display: none; 
        }
        
        .content h2 { 
            font-family: 'Playfair Display', serif;
            font-size: 2.6rem; 
            font-weight: 900;
            line-height: 1.1;
            margin-top: 3rem; 
            margin-bottom: 2rem; 
            color: var(--ink-black); 
            column-span: all; 
            text-align: center;
            position: relative;
            padding-bottom: 1.5rem;
            text-transform: uppercase;
        }

        /* Decorative Separator */
        .content h2::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            right: 20%;
            height: 1px;
            background-color: var(--ink-black);
            z-index: 0;
        }
        
        .content h2::after {
            content: '❧';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--paper-color);
            padding: 0 1rem;
            font-size: 1.5rem;
            color: var(--ink-light);
            z-index: 1;
            transition: background-color 0.3s ease;
        }

        .content h3 { 
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem; 
            font-weight: 700;
            line-height: 1.2;
            margin-top: 1.5rem; 
            margin-bottom: 0.8rem; 
            color: var(--ink-black); 
            break-after: avoid;
        }

        /* Drop Cap for the very first paragraph after an h2 or h3 */
        .content h2 + p::first-letter,
        .content h3 + p::first-letter,
        .content .editorial-note > p:first-of-type::first-letter {
            font-family: 'Playfair Display', serif;
            font-weight: 900;
            color: var(--ink-black);
            font-size: 3.8rem;
            float: left;
            line-height: 0.75;
            padding-right: 0.5rem;
            padding-top: 0.3rem;
        }

        @supports (initial-letter: 3) {
            .content h2 + p::first-letter,
            .content h3 + p::first-letter,
            .content .editorial-note > p:first-of-type::first-letter {
                initial-letter: 3;
                -webkit-initial-letter: 3;
                float: none;
                font-size: inherit;
                line-height: inherit;
                padding-top: 0;
            }
        }


        .content a {
            color: var(--ink-black);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
        }
        
        .content a:hover {
            color: var(--ink-light);
        }

        .content strong { font-weight: 700; }
        
        .content ul, .content ol { 
            margin-bottom: 1.2rem; 
            padding-left: 1.5rem; 
            text-indent: 0;
        }
        
        .content li { margin-bottom: 0.4rem; }

        .content hr {
            column-span: all;
            border: 0;
            height: 1px;
            background: var(--ink-black);
            margin: 2.5rem 0;
        }

        /* Tables */
        .content table, .sidebar table {
            width: 100%;
            display: block;
            overflow-x: auto;
            border-collapse: collapse;
            margin: 1.5rem 0;
            word-wrap: break-word;
        }
        .sidebar table {
            font-size: 0.85rem;
        }
        .content table th, .content table td,
        .sidebar table th, .sidebar table td {
            padding: 0.75rem;
            border: 1px solid var(--column-rule-color);
        }
        .sidebar table a {
            word-break: break-all;
        }
        .content table {
            border: 1px solid var(--ink-black);
            border-top: 3px solid var(--ink-black);
            break-inside: avoid;
            font-size: 0.9rem;
        }
        
        .content th, .content td {
            padding: 0.75rem;
            border-bottom: 1px solid #ccc;
            text-align: left;
            text-indent: 0;
        }

        .content th {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            background-color: var(--colophon-bg);
        }

        /* Blockquotes / Pull Quotes */
        .content blockquote {
            border-top: 2px solid var(--ink-black);
            border-bottom: 2px solid var(--ink-black);
            border-left: none;
            padding: 1.5rem 0;
            margin: 2.5rem -1.5rem;
            font-family: 'Playfair Display', serif;
            font-size: 1.4rem;
            font-style: italic;
            font-weight: 700;
            color: var(--accent-red);
            text-align: center;
            column-span: all;
            background-color: var(--editorial-bg);
        }


        /* Special style for philosophical note */
        .editorial-note {
            column-span: all;
            background-color: var(--editorial-bg);
            border-left: 4px solid var(--accent-red);
            padding: 1.5rem 2rem;
            margin-top: 3rem;
            margin-bottom: 2rem;
            font-style: italic;
        }
        
        .editorial-note h2 {
            margin-top: 0;
        }
        
        .editorial-note h2::after {
            background-color: var(--editorial-bg);
        }

        .editorial-note p {
            font-size: 0.95rem;
            letter-spacing: 0.01em;
        }

        /* Scroll Animations */
        .fade-in-up {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loader */
        .loader {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            column-span: all;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #ccc;
            border-radius: 50%;
            border-top-color: var(--ink-black);
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Featured CTA (Above the Fold) */
        .featured-cta {
            border: 1px solid var(--ink-black);
            background-color: var(--editorial-bg);
            margin-bottom: 3rem;
            padding: 1.5rem;
            position: relative;
        }
        
        .featured-cta .cta-header {
            position: absolute;
            top: -10px;
            left: 1.5rem;
            background: var(--paper-color);
            padding: 0 0.5rem;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--ink-light);
        }

        .cta-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }

        .cta-text h4 {
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .cta-text p {
            font-size: 0.95rem;
            margin-bottom: 0;
            max-width: 800px;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--ink-black);
            color: var(--paper-color);
            padding: 0.8rem 1.5rem;
            text-decoration: none !important;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
            transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
            border: 1px solid var(--ink-black);
            white-space: nowrap;
        }
        
        .sidebar-wrapper .featured-cta {
            margin-bottom: 2rem;
            margin-top: 2rem;
            position: sticky;
            top: 2rem;
        }
        
        .sidebar-wrapper .cta-content {
            flex-direction: column;
            align-items: stretch;
            gap: 1.5rem;
        }
        
        .sidebar-wrapper .cta-button {
            text-align: center;
        }
        
        .cta-button:hover {
            background: transparent;
            color: var(--ink-black);
        }

        /* Colophon & Footer */
        .colophon {
            background-color: var(--colophon-bg);
            margin-top: 4rem;
            padding: 3rem 2rem 1.5rem;
            border-top: 1px solid var(--ink-black);
            font-family: 'Lora', serif;
            color: var(--ink-black);
        }
        
        .colophon-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Debate Arena */
        .debate-arena {
            margin-top: 2rem;
            border: 2px solid var(--ink-black);
            background: var(--editorial-bg);
            padding: 1rem;
            box-shadow: 3px 3px 0 var(--ink-black);
            font-family: 'Lora', serif;
        }
        
        .debate-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--ink-black);
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .debate-header h3 {
            font-family: 'Playfair Display', serif;
            margin: 0;
            font-size: 1.3rem;
        }
        
        .debate-mode-badge {
            font-size: 0.75rem;
            background: var(--ink-black);
            color: var(--paper-color);
            padding: 0.2rem 0.5rem;
            text-transform: uppercase;
        }
        
        .debate-disclaimer {
            font-size: 0.85rem;
            font-style: italic;
            color: var(--ink-light);
            margin-bottom: 1rem;
        }

        .consent-banner {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: var(--ink-black);
            color: var(--paper-color);
            padding: 1rem;
            text-align: center;
            z-index: 1000;
            font-size: 0.9rem;
            display: none;
            flex-direction: column;
            gap: 1rem;
            font-family: 'Lora', serif;
        }
        .consent-banner.active {
            display: flex;
        }
        .consent-banner button {
            background: var(--paper-color);
            color: var(--ink-black);
            border: none;
            padding: 0.5rem 1.5rem;
            font-weight: 700;
            cursor: pointer;
            margin: 0 0.5rem;
            text-transform: uppercase;
        }

        .debate-chat {
            height: 300px;
            overflow-y: auto;
            border: 1px solid var(--ink-light);
            padding: 1rem;
            margin-bottom: 1rem;
            background: rgba(0,0,0,0.02);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .debate-msg {
            max-width: 80%;
            padding: 0.8rem;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .debate-msg.ai {
            align-self: flex-start;
            background: var(--editorial-bg);
            border-left: 3px solid var(--ink-black);
        }

        .debate-msg.user {
            align-self: flex-end;
            background: var(--ink-black);
            color: var(--paper-color);
        }
        
        .debate-msg.loading {
            font-style: italic;
            color: var(--ink-light);
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 0.5; }
            50% { opacity: 1; }
            100% { opacity: 0.5; }
        }

        .debate-input-area {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .debate-input-area textarea {
            width: 100%;
            padding: 0.8rem;
            font-family: 'Lora', serif;
            border: 1px solid var(--ink-black);
            background: var(--paper-color);
            color: var(--ink-black);
            resize: none;
            box-sizing: border-box;
            height: 60px;
        }
        
        .debate-input-area button {
            background: var(--ink-black);
            color: var(--paper-color);
            border: none;
            padding: 0 1.5rem;
            font-family: 'Lora', serif;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
        
        .debate-input-area button:hover {
            opacity: 0.8;
        }
        
        .colophon-col {
            display: flex;
            flex-direction: column;
        }
        
        .support-col h4 {
            font-family: 'Playfair Display', serif;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .support-col p {
            font-size: 0.85rem;
            margin-bottom: 1rem;
            line-height: 1.5;
        }
        
        .support-col a {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            color: var(--ink-black);
            border-bottom: 1px solid var(--ink-black);
            align-self: flex-start;
        }
        
        .newsletter-col {
            align-items: center;
            justify-content: flex-start;
            text-align: center;
        }

        .newsletter-controls {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            width: 100%;
            max-width: 250px;
        }

        .newsletter-controls input[type="email"] {
            padding: 0.5rem 0.8rem;
            border: 1px solid var(--ink-light);
            font-family: 'Lora', serif;
            outline: none;
            width: 100%;
            min-height: 44px;
            background: var(--paper-color);
            color: var(--ink-black);
        }

        .newsletter-controls button {
            background-color: var(--ink-black);
            color: var(--paper-color);
            border: none;
            padding: 0.5rem 1rem;
            min-height: 44px;
            font-family: 'Lora', serif;
            cursor: pointer;
            text-transform: uppercase;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 1px;
        }
        
        .newsletter-controls button:hover {
            opacity: 0.8;
        }
        
        .info-col {
            text-align: right;
            justify-content: flex-start;
            font-size: 0.95rem;
            font-style: italic;
            color: var(--ink-light);
        }
        
        .colophon-bottom {
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid #ccc;
            text-align: center;
            font-size: 0.8rem;
            color: var(--ink-light);
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (max-width: 1200px) {
            .container { padding: 0 1.5rem; }
            .archive-nav.left { left: 0; }
            .archive-nav.right { right: 0; }
        }

        @media (max-width: 992px) {
            .masthead-title { font-size: 4rem; }
        }

        @media (max-width: 768px) {
            .content { column-width: auto; column-count: 1; column-rule: none; text-align: left; }
            .masthead-title { font-size: 2.8rem; }
            .meta-bar { flex-direction: column; gap: 1rem; text-align: center; }
            .meta-left, .meta-right { justify-content: center; }
            
            .archive-nav { display: none; } /* Hide arrows on touch devices */
            .archive-container { padding: 1rem 1.5rem; margin: 0; width: 100%; box-sizing: border-box; }
            
            .colophon-grid {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 3rem;
            }
            .support-col a { align-self: center; }
            .newsletter-col { justify-content: center; }
            .newsletter-controls { flex-direction: column; } /* Stack input and button */
            .newsletter-controls button { width: 100%; }
            .info-col { text-align: center; }
        }
        
        @media (max-width: 480px) {
            .masthead-title { font-size: 2.2rem; }
            .content h2 { font-size: 2rem; }
            .content h3 { font-size: 1.4rem; }
            body { font-size: 1rem; }
        }

.newspaper-layout {
                display: grid;
                grid-template-columns: 250px 1fr 350px;
                gap: 3rem;
                align-items: start;
            }
            .newspaper-layout > * {
                min-width: 0;
            }
            .sidebar {
                border: 2px solid var(--ink-black);
                background-color: var(--editorial-bg);
                padding: 1.5rem;
                box-shadow: 4px 4px 0 var(--ink-black);
                font-family: 'Lora', serif;
                margin-top: 2rem;
            }
            .sidebar.left-sidebar {
                border: none;
                padding-right: 2rem;
                border-right: 1px solid var(--column-rule-color);
                box-shadow: none;
                background: transparent;
                padding-left: 0;
            }
            .sidebar h2 {
                font-family: 'Playfair Display', serif;
                font-size: 1.5rem;
                margin-top: 0;
                margin-bottom: 1rem;
                border-bottom: 2px double var(--ink-black);
                padding-bottom: 0.5rem;
                text-transform: uppercase;
                text-align: center;
            }
            .sidebar h3 {
                font-family: 'Playfair Display', serif;
                font-size: 1.1rem;
                margin-top: 1.5rem;
                margin-bottom: 0.5rem;
                font-weight: 700;
            }
            .sidebar p {
                font-size: 0.9rem;
                line-height: 1.5;
            }
            .sidebar pre {
                background: var(--ink-black);
                color: var(--paper-color);
                padding: 1rem;
                font-size: 0.75rem;
                overflow-x: auto;
                white-space: pre-wrap;
                margin-top: 1rem;
                line-height: 1.4;
            }
            @media (max-width: 1100px) {
                .newspaper-layout {
                    grid-template-columns: 1fr 300px;
                }
                .left-sidebar {
                    display: none;
                }
            }
            @media (max-width: 992px) {
                .newspaper-layout {
                    grid-template-columns: 1fr;
                }
            }

