:root {
            --color-bg: #f6f5f1;
            --color-text: #1a1a1a;
            --color-text-muted: #6b6b6b;
            --color-accent: #8B2942;
            --color-accent-gold: #b8860b;
            --color-accent-teal: #06b6d4;
            --color-border: #e0ddd5;
            --color-surface: #ffffff;
            --color-code-bg: #e8e6e0;
            --color-success: #166534;
            --color-success-bg: #dcfce7;
            --color-error: #991b1b;
            --color-error-bg: #fee2e2;
            --color-highlight: #fef3c7;
            --color-code-block-bg: #2d2d2d;
            --color-code-block-text: #f8f8f2;
            --color-code-header-bg: #1e1e1e;
            --color-code-border: #3d3d3d;
            --color-code-line-num: #555;
            --font-serif: 'Fraunces', Georgia, serif;
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
        }

        [data-theme="dark"] {
            --color-bg: #151413;
            --color-text: #e5e5e5;
            --color-text-muted: #a0a0a0;
            --color-accent: #e87591;
            --color-accent-gold: #d4a020;
            --color-accent-teal: #22d3ee;
            --color-border: #2a2a2a;
            --color-surface: #1e1d1c;
            --color-code-bg: #2d2d2d;
            --color-success: #4ade80;
            --color-success-bg: #052e16;
            --color-error: #fca5a5;
            --color-error-bg: #450a0a;
            --color-highlight: #422006;
            --color-code-block-bg: #1a1a1e;
            --color-code-block-text: #e4e4e7;
            --color-code-header-bg: #141416;
            --color-code-border: #2e2e34;
            --color-code-line-num: #4a4a52;
        }

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

        body {
            font-family: var(--font-sans);
            background-color: var(--color-bg);
            color: var(--color-text);
            line-height: 1.7;
            font-size: 17px;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23999' opacity='0.08'/%3E%3Ccircle cx='10' cy='15' r='1' fill='%23999' opacity='0.06'/%3E%3Ccircle cx='70' cy='12' r='1' fill='%23999' opacity='0.06'/%3E%3Ccircle cx='15' cy='65' r='1' fill='%23999' opacity='0.05'/%3E%3Ccircle cx='65' cy='68' r='1' fill='%23999' opacity='0.05'/%3E%3Cline x1='10' y1='15' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.04'/%3E%3Cline x1='70' y1='12' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.04'/%3E%3Cline x1='15' y1='65' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.03'/%3E%3Cline x1='65' y1='68' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
            background-repeat: repeat;
        }

        /* Dark mode atmosphere */
        [data-theme="dark"] body {
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23fff' opacity='0.04'/%3E%3Ccircle cx='10' cy='15' r='1' fill='%23fff' opacity='0.03'/%3E%3Ccircle cx='70' cy='12' r='1' fill='%23fff' opacity='0.03'/%3E%3Ccircle cx='15' cy='65' r='1' fill='%23fff' opacity='0.025'/%3E%3Ccircle cx='65' cy='68' r='1' fill='%23fff' opacity='0.025'/%3E%3Cline x1='10' y1='15' x2='40' y2='40' stroke='%23fff' stroke-width='0.3' opacity='0.025'/%3E%3Cline x1='70' y1='12' x2='40' y2='40' stroke='%23fff' stroke-width='0.3' opacity='0.025'/%3E%3Cline x1='15' y1='65' x2='40' y2='40' stroke='%23fff' stroke-width='0.3' opacity='0.02'/%3E%3Cline x1='65' y1='68' x2='40' y2='40' stroke='%23fff' stroke-width='0.3' opacity='0.02'/%3E%3C/svg%3E"),
                              radial-gradient(ellipse at 20% 0%, rgba(139, 41, 66, 0.04) 0%, transparent 60%),
                              radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.03) 0%, transparent 60%);
            background-attachment: fixed;
        }

        /* Dark mode accent glow on interactive elements */
        [data-theme="dark"] .post-card:hover {
            box-shadow: -3px 0 12px rgba(232, 117, 145, 0.08);
        }

        [data-theme="dark"] .paper-card:hover {
            box-shadow: 0 12px 32px rgba(109, 179, 166, 0.1);
        }

        [data-theme="dark"] .related-post-card:hover {
            box-shadow: 0 10px 28px rgba(232, 117, 145, 0.08);
        }

        [data-theme="dark"] .til-card:hover {
            box-shadow: 0 4px 16px rgba(212, 160, 32, 0.1);
        }

        [data-theme="dark"] .featured-post-image-link:hover::after {
            background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
        }

        [data-theme="dark"] .cmd-palette {
            border-color: rgba(6, 182, 212, 0.2);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 40px rgba(6, 182, 212, 0.05);
        }

        [data-theme="dark"] .site-logo:hover {
            text-shadow: 0 0 20px rgba(232, 117, 145, 0.3);
        }

        /* Dark mode hero glow */
        [data-theme="dark"] .hero-section::before {
            opacity: 0.1;
        }

        [data-theme="dark"] .hero-section::after {
            opacity: 0.08;
        }

        /* Signature visual motif - network nodes pattern */
        .motif-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin: 48px 0;
            color: var(--color-border);
        }

        .motif-divider::before,
        .motif-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--color-border);
        }

        .motif-dots {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .motif-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: transparent;
            border: 1.5px solid var(--color-border);
        }

        .motif-dot:nth-child(3) {
            width: 10px;
            height: 10px;
            border-color: var(--color-accent);
            background: var(--color-accent);
            opacity: 0.4;
            animation: nodePulse 3s ease-in-out infinite;
        }

        @keyframes nodePulse {
            0%, 100% { opacity: 0.4; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.15); }
        }

        .motif-line {
            width: 20px;
            height: 0;
            border-top: 1.5px dashed var(--color-border);
        }

        /* Node pattern background for empty states */
        .motif-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23e0ddd5' opacity='0.5'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%23e0ddd5' opacity='0.3'/%3E%3Ccircle cx='50' cy='10' r='1' fill='%23e0ddd5' opacity='0.3'/%3E%3Cline x1='10' y1='10' x2='30' y2='30' stroke='%23e0ddd5' stroke-width='0.3' opacity='0.2'/%3E%3Cline x1='50' y1='10' x2='30' y2='30' stroke='%23e0ddd5' stroke-width='0.3' opacity='0.2'/%3E%3C/svg%3E");
            background-repeat: repeat;
        }

        [data-theme="dark"] .motif-bg {
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%232a2a2a' opacity='0.8'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%232a2a2a' opacity='0.5'/%3E%3Ccircle cx='50' cy='10' r='1' fill='%232a2a2a' opacity='0.5'/%3E%3Cline x1='10' y1='10' x2='30' y2='30' stroke='%232a2a2a' stroke-width='0.3' opacity='0.4'/%3E%3Cline x1='50' y1='10' x2='30' y2='30' stroke='%232a2a2a' stroke-width='0.3' opacity='0.4'/%3E%3C/svg%3E");
        }

        /* Skip to Content */
        .skip-to-content {
            position: absolute;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-accent);
            color: #fff;
            padding: 12px 24px;
            border-radius: 0 0 8px 8px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            z-index: 10000;
            transition: top 0.2s ease;
        }

        .skip-to-content:focus {
            top: 0;
            color: #fff;
        }

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

        button:focus-visible,
        input:focus-visible,
        textarea:focus-visible {
            outline: 2px solid var(--color-accent);
            outline-offset: 2px;
        }

        a {
            color: var(--color-accent);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }

        a:hover {
            text-decoration-thickness: 2px;
        }

        /* Lucide Icons */
        .icon {
            width: 20px;
            height: 20px;
            stroke-width: 1.5;
            vertical-align: middle;
        }

        .icon-sm {
            width: 16px;
            height: 16px;
        }

        .icon-lg {
            width: 24px;
            height: 24px;
        }

        .icon-xl {
            width: 32px;
            height: 32px;
        }

        .container {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .container-wide {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Header */
        .site-header {
            padding: 24px 0;
        }

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

        .site-logo {
            font-family: var(--font-serif);
            font-size: 22px;
            font-weight: 600;
            color: var(--color-text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.2s ease;
        }

        .site-logo:hover {
            text-decoration: none;
            color: var(--color-accent);
        }

        .logo-icon {
            width: 24px;
            height: 24px;
            stroke-width: 2;
        }

        .header-nav {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .header-nav a {
            font-family: var(--font-mono);
            font-size: 13px;
            letter-spacing: 0.3px;
            text-transform: lowercase;
            color: var(--color-text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s ease;
        }

        .header-nav a svg {
            width: 16px;
            height: 16px;
            stroke-width: 1.75;
            opacity: 0.7;
        }

        .header-nav a:hover,
        .header-nav a.nav-active {
            color: var(--color-accent);
        }

        .header-nav a:hover svg,
        .header-nav a.nav-active svg {
            opacity: 1;
        }

        .header-nav a.nav-active {
            position: relative;
        }

        .header-nav a.nav-active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--color-accent);
            border-radius: 1px;
        }

        /* Header Search */
        .header-search-btn {
            background: none;
            border: none;
            color: var(--color-text);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
        }

        .header-search-btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.75;
            opacity: 0.7;
        }

        .header-search-btn:hover svg {
            opacity: 1;
        }

        .header-search-form {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--color-bg);
            display: flex;
            align-items: center;
            padding: 12px 16px;
            gap: 8px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-top: 8px;
            width: 320px;
            opacity: 0;
            transform: translateY(-8px);
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        }

        .header-search-form.active {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
            pointer-events: auto;
        }

        .header-search-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            font-size: 14px;
            background: var(--color-surface);
            color: var(--color-text);
        }

        .header-search-input:focus {
            outline: none;
            border-color: var(--color-accent);
        }

        .header-search-submit {
            background: var(--color-text);
            border: none;
            cursor: pointer;
            padding: 8px 12px;
            color: var(--color-bg);
            display: flex;
            align-items: center;
            border-radius: 6px;
        }

        .header-search-submit:hover {
            opacity: 0.8;
        }

        .header-search-submit svg {
            width: 16px;
            height: 16px;
        }

        .header-search-close {
            display: none;
        }

        /* Theme Toggle */
        .theme-toggle {
            background: none;
            border: none;
            color: var(--color-text);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
        }

        .theme-toggle svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.75;
            opacity: 0.7;
            transition: opacity 0.2s, transform 0.35s ease;
        }

        .theme-toggle:hover svg {
            opacity: 1;
            transform: rotate(30deg);
        }

        .theme-toggle:active svg {
            transform: rotate(180deg) scale(0.85);
        }

        .theme-toggle .icon-sun {
            display: none;
        }

        .theme-toggle .icon-moon {
            display: block;
        }

        [data-theme="dark"] .theme-toggle .icon-sun {
            display: block;
        }

        [data-theme="dark"] .theme-toggle .icon-moon {
            display: none;
        }

        /* Main Content */
        .site-main {
            padding: 60px 0 100px;
            min-height: 60vh;
        }

        /* Typography */
        h1, h2, h3, h4 {
            font-family: var(--font-serif);
            font-weight: 600;
            line-height: 1.25;
        }

        h1 {
            font-size: 48px;
            margin-bottom: 16px;
        }

        h2 {
            font-size: 32px;
            margin-bottom: 16px;
        }

        h3 {
            font-size: 24px;
            margin-bottom: 12px;
        }

        p {
            margin-bottom: 24px;
        }

        /* Hero Section */
        .hero-section {
            margin-bottom: 80px;
            padding: 48px 40px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 16px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
            opacity: 0.07;
            pointer-events: none;
            animation: heroGlowDrift 8s ease-in-out infinite alternate;
        }

        .hero-section::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--color-accent-gold) 0%, transparent 70%);
            opacity: 0.05;
            pointer-events: none;
            animation: heroGlowDrift 10s ease-in-out infinite alternate-reverse;
        }

        @keyframes heroGlowDrift {
            from { transform: translate(0, 0) scale(1); }
            to { transform: translate(30px, 20px) scale(1.1); }
        }

        /* Noise texture overlay for hero */
        .hero-noise {
            position: absolute;
            inset: 0;
            opacity: 0.03;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            pointer-events: none;
            mix-blend-mode: overlay;
        }

        [data-theme="dark"] .hero-noise {
            opacity: 0.06;
        }

        .hero-title {
            font-family: var(--font-serif);
            font-size: 40px;
            font-weight: 400;
            line-height: 1.3;
            margin-bottom: 12px;
            position: relative;
        }

        .hero-title strong {
            font-weight: 700;
            color: var(--color-accent);
        }

        .hero-subtitle {
            font-family: var(--font-serif);
            font-size: 20px;
            color: var(--color-text-muted);
            line-height: 1.6;
            margin-bottom: 24px;
            font-style: italic;
            position: relative;
        }

        .hero-prompt {
            font-family: var(--font-mono);
            font-style: normal;
            font-size: 18px;
            color: var(--color-accent-teal);
            margin-right: 6px;
            opacity: 0.8;
        }

        .hero-subtitle .hero-rotate-word {
            display: inline-block;
            font-family: var(--font-mono);
            font-style: normal;
            font-size: 17px;
            color: var(--color-accent-gold);
            font-weight: 500;
            position: relative;
        }

        .hero-subtitle .hero-rotate-word::after {
            content: '|';
            color: var(--color-accent-gold);
            font-weight: 400;
            margin-left: 1px;
            animation: cursorBlink 1s step-end infinite;
        }

        @keyframes cursorBlink {
            50% { opacity: 0; }
        }

        .hero-topics {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            position: relative;
        }

        .hero-topic {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-mono);
            font-size: 13px;
            font-weight: 500;
            color: var(--color-text-muted);
            padding: 8px 16px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            background: var(--color-bg);
            text-decoration: none;
            text-transform: lowercase;
            letter-spacing: 0.3px;
            transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
        }

        .hero-topic::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--color-success);
            animation: podPulse 2s ease-in-out infinite;
        }

        @keyframes podPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        a.hero-topic:hover {
            border-color: var(--color-accent-teal);
            color: var(--color-text);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
            text-decoration: none;
        }

        .hero-topic-icon {
            width: 16px;
            height: 16px;
            stroke-width: 1.75;
            color: var(--color-accent-gold);
            transition: transform 0.3s ease;
        }

        a.hero-topic:hover .hero-topic-icon {
            transform: scale(1.15);
        }

        /* Bio Section (legacy) */
        .bio-section {
            margin-bottom: 80px;
        }

        .bio-text {
            font-family: var(--font-serif);
            font-size: 24px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .bio-text:last-child {
            margin-bottom: 0;
        }

        .bio-text strong {
            font-weight: 600;
        }

        .bio-text em {
            font-style: italic;
        }

        /* Category Tag */
        .category-tag {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: 12px;
            font-weight: 500;
            text-transform: lowercase;
            letter-spacing: 0.3px;
            color: var(--color-accent);
            text-decoration: none;
        }

        .category-tag:hover {
            text-decoration: underline;
        }

        /* Post Card */
        .post-card {
            margin-bottom: 48px;
            padding-bottom: 48px;
            border-bottom: 1px solid var(--color-border);
            border-left: 3px solid transparent;
            padding-left: 20px;
            margin-left: -20px;
            transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
        }

        .post-card:hover {
            border-left-color: var(--color-accent);
            transform: translateX(4px);
        }

        .post-card:last-child {
            border-bottom: none;
        }

        .post-card-title {
            font-family: var(--font-serif);
            font-size: 28px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .post-card-title a {
            color: var(--color-text);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .post-card-title a:hover {
            color: var(--color-accent);
        }

        /* Featured Post */
        .featured-post {
            margin-bottom: 48px;
            padding-bottom: 48px;
            border-bottom: 1px solid var(--color-border);
        }

        .featured-post-image-link {
            display: block;
            margin-bottom: 20px;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
        }

        .featured-post-image-link::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            z-index: 1;
        }

        .featured-post-image-link:hover::after {
            opacity: 1;
        }

        .featured-post-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            display: block;
            transition: transform 0.6s ease, filter 0.4s ease;
        }

        .featured-post-image-link:hover .featured-post-image {
            transform: scale(1.05);
        }

        .featured-post-label {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-accent-gold);
            margin-bottom: 8px;
        }

        .featured-post-title {
            font-family: var(--font-serif);
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 12px;
            line-height: 1.25;
        }

        .featured-post-title a {
            color: var(--color-text);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .featured-post-title a:hover {
            color: var(--color-accent);
        }

        .featured-post-excerpt {
            font-size: 17px;
            color: var(--color-text-muted);
            margin-bottom: 12px;
            line-height: 1.6;
        }

        .post-card-with-image {
            display: flex;
            align-items: flex-start;
            gap: 24px;
        }

        .post-card-body {
            flex: 1;
            min-width: 0;
        }

        .post-card-thumb-link {
            flex-shrink: 0;
            border-radius: 8px;
            overflow: hidden;
        }

        .post-card-thumb {
            width: 160px;
            height: 110px;
            object-fit: cover;
            display: block;
            border-radius: 8px;
            transition: transform 0.4s ease, filter 0.4s ease;
            filter: saturate(0.8);
        }

        .post-card-thumb-link:hover .post-card-thumb {
            transform: scale(1.06);
            filter: saturate(1.1);
        }

        .post-card-excerpt {
            font-size: 17px;
            color: var(--color-text-muted);
            margin-bottom: 12px;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--color-text-muted);
        }

        .post-meta-divider {
            width: 4px;
            height: 4px;
            background: var(--color-text-muted);
            border-radius: 50%;
        }

        /* Article Content */
        .article-header {
            margin-bottom: 48px;
        }

        .article-title {
            font-size: 42px;
            margin-bottom: 16px;
        }

        .article-subtitle {
            font-size: 22px;
            color: var(--color-text-muted);
            font-family: var(--font-serif);
            font-weight: 400;
            margin-bottom: 24px;
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-top: 1px solid var(--color-border);
            border-bottom: 1px solid var(--color-border);
            font-size: 14px;
            color: var(--color-text-muted);
        }

        .article-content {
            font-size: 18px;
            line-height: 1.8;
        }

        .article-content p:first-of-type::first-letter {
            float: left;
            font-family: var(--font-serif);
            font-size: 72px;
            line-height: 0.8;
            padding-right: 12px;
            padding-top: 8px;
            color: var(--color-text);
        }

        .article-content h2 {
            margin-top: 48px;
        }

        .article-content h3 {
            margin-top: 36px;
        }

        .article-content a {
            color: var(--color-accent);
            text-decoration-color: var(--color-accent);
            transition: background-color 0.2s ease, padding 0.2s ease;
            border-radius: 2px;
        }

        .article-content a:hover {
            background-color: var(--color-highlight);
            padding: 2px 4px;
            margin: -2px -4px;
        }

        .article-content code {
            background: var(--color-code-bg);
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.9em;
        }

        .article-content pre {
            background: var(--color-code-block-bg);
            color: var(--color-code-block-text);
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 24px 0;
        }

        .article-content pre code {
            background: none;
            padding: 0;
            font-size: 0.9em;
        }

        /* Enhanced Code Block Styling */
        .code-block-wrapper {
            position: relative;
            margin: 24px 0;
        }

        .code-block-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--color-code-header-bg);
            padding: 8px 16px;
            border-radius: 8px 8px 0 0;
            border-bottom: 1px solid var(--color-code-border);
        }

        .code-language {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--color-code-line-num);
        }

        .code-copy-btn {
            background: transparent;
            border: 1px solid var(--color-code-border);
            color: var(--color-code-line-num);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }

        .code-copy-btn:hover {
            background: var(--color-code-border);
            color: var(--color-code-block-text);
            border-color: var(--color-code-line-num);
        }

        .code-copy-btn.copied {
            background: #166534;
            border-color: #166534;
            color: #fff;
        }

        .code-copy-btn svg {
            width: 14px;
            height: 14px;
        }

        .code-block-wrapper pre[class*="language-"] {
            margin: 0;
            border-radius: 0 0 8px 8px;
            padding: 16px;
            counter-reset: line;
        }

        .code-block-wrapper code[class*="language-"] {
            font-size: 14px;
            line-height: 1.6;
        }

        /* Prism line numbers styling */
        .code-block-wrapper pre.line-numbers {
            padding-left: 3.8em;
            position: relative;
        }

        .code-block-wrapper .line-numbers-rows {
            border-right: 1px solid var(--color-code-border);
            top: 16px;
        }

        .code-block-wrapper .line-numbers-rows > span::before {
            color: var(--color-code-line-num);
        }

        /* Hide any accidental hr elements inside code blocks */
        .code-block-wrapper pre hr,
        .code-block-wrapper code hr {
            display: none;
        }

        /* Ensure code content displays properly */
        .code-block-wrapper pre code {
            display: block;
            white-space: pre;
        }

        /* Fallback for pre without wrapper */
        .article-content pre[class*="language-"]:not(.code-block-wrapper pre) {
            border-radius: 8px;
            padding: 20px;
            margin: 24px 0;
        }

        .article-content blockquote {
            border-left: 3px solid var(--color-accent);
            padding: 20px 24px;
            margin: 32px 0;
            font-style: italic;
            color: var(--color-text-muted);
            background: var(--color-surface);
            border-radius: 0 8px 8px 0;
            position: relative;
        }

        .article-content blockquote::before {
            content: '\201C';
            font-family: var(--font-serif);
            font-size: 48px;
            color: var(--color-accent);
            opacity: 0.3;
            position: absolute;
            top: -4px;
            left: 16px;
            line-height: 1;
        }

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

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 24px 0;
        }

        .article-content ul, .article-content ol {
            margin: 24px 0;
            padding-left: 24px;
        }

        .article-content li {
            margin-bottom: 8px;
        }

        /* Section Title */
        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 32px;
        }

        .section-title {
            font-family: var(--font-serif);
            font-size: 20px;
            font-weight: 600;
        }

        .section-arrow {
            color: var(--color-text-muted);
        }

        .section-icon {
            width: 20px;
            height: 20px;
            stroke-width: 1.5;
            vertical-align: -3px;
        }

        .section-link {
            color: var(--color-text-muted);
            transition: color 0.2s ease;
        }

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

        .section-link svg {
            width: 18px;
            height: 18px;
        }

        /* TIL Home List - Compact style */
        .til-home-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .til-home-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid var(--color-border);
            color: var(--color-text);
            text-decoration: none;
            transition: background-color 0.15s ease, padding 0.15s ease, margin 0.15s ease;
        }

        .til-home-item:first-child {
            border-top: 1px solid var(--color-border);
        }

        .til-home-item:hover {
            background-color: var(--color-surface);
            margin: 0 -16px;
            padding: 14px 16px;
        }

        .til-home-title {
            font-size: 17px;
            font-weight: 500;
        }

        .til-home-date {
            font-family: var(--font-mono);
            color: var(--color-text-muted);
            font-size: 12px;
            flex-shrink: 0;
            margin-left: 16px;
        }

        /* Page Header */
        .page-header {
            margin-bottom: 40px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--color-border);
            position: relative;
        }

        .page-header::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 60px;
            height: 3px;
            border-radius: 2px;
        }

        .page-header-blog::after {
            background: var(--color-accent);
        }

        .page-header-papers::after {
            background: var(--color-accent-teal);
        }

        .page-header-til::after {
            background: var(--color-accent-gold);
        }

        .page-header .page-subtitle {
            margin-bottom: 0;
        }

        /* Page Title */
        .page-title {
            font-family: var(--font-serif);
            font-size: 42px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .page-title-icon {
            width: 36px;
            height: 36px;
            stroke-width: 1.5;
        }

        .page-subtitle {
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--color-text-muted);
            margin-bottom: 48px;
        }

        .page-subtitle a {
            color: var(--color-text-muted);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .page-subtitle a svg {
            width: 14px;
            height: 14px;
        }

        /* Post Categories */
        .post-categories {
            margin-bottom: 12px;
        }

        .post-categories .category-tag {
            margin-right: 12px;
        }

        /* Article Meta Left */
        .article-meta-left {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .meta-item svg {
            width: 14px;
            height: 14px;
            stroke-width: 1.5;
            opacity: 0.7;
        }

        /* Share Buttons */
        .share-buttons {
            display: flex;
            gap: 12px;
        }

        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            color: var(--color-text-muted);
            background: none;
            cursor: pointer;
            text-decoration: none;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .share-btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.5;
        }

        .share-btn:hover {
            border-color: var(--color-text);
            color: var(--color-text);
            text-decoration: none;
        }

        /* Featured Image */
        .article-featured-image-wrap {
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 48px;
        }

        .article-featured-image {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            display: block;
            animation: kenBurns 20s ease-in-out infinite alternate;
        }

        @keyframes kenBurns {
            0% { transform: scale(1) translate(0, 0); }
            100% { transform: scale(1.04) translate(-1%, -0.5%); }
        }

        /* Related Posts */
        .related-posts {
            margin-top: 80px;
            padding-top: 48px;
            border-top: 1px solid var(--color-border);
        }

        .related-posts-title {
            font-family: var(--font-serif);
            font-size: 20px;
            margin-bottom: 24px;
        }

        .related-posts-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .related-post-card {
            padding: 20px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            text-decoration: none;
            color: var(--color-text);
            transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }

        .related-post-card:hover {
            border-color: var(--color-accent);
            text-decoration: none;
            transform: translateY(-3px) rotate(-0.5deg);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
        }

        .related-post-card h4 {
            font-family: var(--font-serif);
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .related-post-card .post-meta {
            font-size: 13px;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 48px;
            padding-top: 48px;
            border-top: 1px solid var(--color-border);
            flex-wrap: wrap;
        }

        .pagination-link,
        .pagination-page {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            color: var(--color-text);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
        }

        .pagination-link:hover,
        .pagination-page:hover {
            border-color: var(--color-accent);
            color: var(--color-accent);
            text-decoration: none;
        }

        .pagination-page.active {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: #fff;
        }

        .pagination-ellipsis {
            color: var(--color-text-muted);
            font-size: 14px;
            padding: 0 4px;
        }

        .pagination-info {
            color: var(--color-text-muted);
            font-size: 14px;
        }

        /* Comments */
        .comments-section {
            margin-top: 80px;
            padding-top: 48px;
            border-top: 1px solid var(--color-border);
        }

        .comments-title {
            font-family: var(--font-serif);
            font-size: 24px;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .comments-title svg {
            width: 24px;
            height: 24px;
            stroke-width: 1.5;
        }

        .comment-alert {
            padding: 12px 16px;
            border-radius: 6px;
            margin-bottom: 24px;
        }

        .comment-success {
            background: var(--color-success-bg);
            color: var(--color-success);
        }

        .comment-error {
            background: var(--color-error-bg);
            color: var(--color-error);
        }

        .comments-list {
            margin-bottom: 48px;
        }

        .comment {
            display: flex;
            gap: 16px;
            padding: 20px 0;
            border-bottom: 1px solid var(--color-border);
        }

        .comment:last-child {
            border-bottom: none;
        }

        .comment-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            color: #fff;
            flex-shrink: 0;
            text-transform: uppercase;
        }

        .comment-body {
            flex: 1;
            min-width: 0;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .comment-author {
            font-weight: 600;
        }

        .comment-date {
            color: var(--color-text-muted);
            font-size: 14px;
        }

        .comment-content {
            line-height: 1.6;
        }

        /* Comment Form Avatar Preview */
        .comment-form-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 24px;
        }

        .comment-form-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            color: #fff;
            flex-shrink: 0;
            text-transform: uppercase;
            background: var(--color-border);
            transition: background-color 0.2s;
        }

        .comment-form {
            background: var(--color-surface);
            padding: 32px;
            border-radius: 8px;
            border: 1px solid var(--color-border);
        }

        .comment-form-title {
            font-family: var(--font-serif);
            font-size: 20px;
            margin-bottom: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 6px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            font-size: 16px;
            font-family: var(--font-sans);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--color-accent);
        }

        .comment-submit {
            background: var(--color-accent);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.15s;
        }

        .comment-submit:hover {
            opacity: 0.9;
        }

        .comment-submit:active {
            transform: scale(0.97);
        }

        /* Paper Grid */
        .paper-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            counter-reset: paper-counter;
        }

        .paper-card {
            padding: 24px;
            border: 1px solid var(--color-border);
            border-left: 3px solid var(--color-accent-teal);
            border-radius: 8px;
            background: var(--color-surface);
            transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            counter-increment: paper-counter;
            position: relative;
        }

        .paper-card::before {
            content: '[' counter(paper-counter) ']';
            position: absolute;
            top: 12px;
            right: 16px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--color-text-muted);
            opacity: 0.5;
        }

        .paper-card:hover {
            border-color: var(--color-accent-teal);
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        }

        .paper-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .paper-rating {
            color: var(--color-accent-gold);
            letter-spacing: 2px;
        }

        .paper-date {
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--color-text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .paper-date svg {
            width: 12px;
            height: 12px;
            stroke-width: 1.5;
        }

        .paper-title {
            font-family: var(--font-serif);
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .paper-title a {
            color: var(--color-text);
            text-decoration: none;
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
            transition: color 0.2s ease;
        }

        .paper-title a:hover {
            color: var(--color-accent);
        }

        .external-icon {
            flex-shrink: 0;
            opacity: 0.5;
            width: 14px;
            height: 14px;
            stroke-width: 1.5;
        }

        .paper-authors {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-bottom: 12px;
            font-style: italic;
        }

        .paper-summary {
            font-size: 15px;
            color: var(--color-text-muted);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .paper-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .paper-tag {
            font-family: var(--font-mono);
            font-size: 11px;
            padding: 3px 10px;
            background: var(--color-bg);
            border-radius: 4px;
            color: var(--color-text-muted);
        }

        /* Subscribe Result Pages */
        .subscribe-result {
            text-align: center;
            padding: 60px 20px;
            max-width: 500px;
            margin: 0 auto;
        }

        .subscribe-icon {
            margin-bottom: 24px;
        }

        .subscribe-icon svg {
            width: 64px;
            height: 64px;
            stroke-width: 1.5;
        }

        .subscribe-success svg {
            color: var(--color-success);
        }

        .subscribe-error svg {
            color: var(--color-error);
        }

        .subscribe-result h1 {
            font-size: 28px;
            margin-bottom: 12px;
        }

        .subscribe-result p {
            color: var(--color-text-muted);
            margin-bottom: 8px;
        }

        .subscribe-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background: var(--color-text);
            color: var(--color-bg);
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            margin-top: 24px;
        }

        .subscribe-btn:hover {
            opacity: 0.8;
            text-decoration: none;
        }

        .subscribe-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Search Page */
        .search-page-form {
            margin-bottom: 40px;
        }

        .search-input-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        .search-input-icon {
            position: absolute;
            left: 16px;
            width: 20px;
            height: 20px;
            color: var(--color-text-muted);
        }

        .search-page-input {
            flex: 1;
            padding: 14px 16px 14px 48px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            font-size: 16px;
            background: var(--color-surface);
            color: var(--color-text);
        }

        .search-page-input:focus {
            outline: none;
            border-color: var(--color-accent);
        }

        .search-page-btn {
            padding: 14px 24px;
            background: var(--color-text);
            color: var(--color-bg);
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .search-page-btn:hover {
            opacity: 0.8;
        }

        .search-page-btn:active {
            transform: scale(0.97);
        }

        .search-error {
            color: var(--color-error);
            margin-bottom: 24px;
        }

        .search-summary {
            color: var(--color-text-muted);
            margin-bottom: 32px;
        }

        .search-hint {
            color: var(--color-text-muted);
        }

        .search-section {
            margin-bottom: 48px;
        }

        .search-section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--color-border);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-section-title svg {
            width: 20px;
            height: 20px;
            opacity: 0.7;
        }

        .search-results-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .search-result-item {
            padding: 20px 0;
            border-bottom: 1px solid var(--color-border);
            position: relative;
        }

        .search-result-item:first-child {
            padding-top: 0;
        }

        .search-type-badge {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 3px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .badge-post {
            background: #dbeafe;
            color: #1e40af;
        }

        .badge-paper {
            background: #dcfce7;
            color: #166534;
        }

        .badge-til {
            background: #fef3c7;
            color: #92400e;
        }

        [data-theme="dark"] .badge-post {
            background: #1e3a5f;
            color: #93c5fd;
        }

        [data-theme="dark"] .badge-paper {
            background: #14532d;
            color: #86efac;
        }

        [data-theme="dark"] .badge-til {
            background: #422006;
            color: #fcd34d;
        }

        .search-result-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .search-result-title a {
            color: var(--color-text);
            text-decoration: none;
        }

        .search-result-title a:hover {
            color: var(--color-accent);
        }

        .search-result-excerpt {
            color: var(--color-text-muted);
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 8px;
        }

        .search-result-authors {
            color: var(--color-text-muted);
            font-size: 14px;
            margin-bottom: 8px;
        }

        .search-result-date {
            color: var(--color-text-muted);
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .search-result-date svg {
            width: 14px;
            height: 14px;
        }

        .search-highlight {
            background: var(--color-highlight);
            padding: 1px 2px;
            border-radius: 2px;
        }

        .search-empty {
            text-align: center;
            padding: 80px 20px;
            border-radius: 12px;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23e0ddd5' opacity='0.5'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%23e0ddd5' opacity='0.3'/%3E%3Ccircle cx='50' cy='10' r='1' fill='%23e0ddd5' opacity='0.3'/%3E%3Cline x1='10' y1='10' x2='30' y2='30' stroke='%23e0ddd5' stroke-width='0.3' opacity='0.2'/%3E%3Cline x1='50' y1='10' x2='30' y2='30' stroke='%23e0ddd5' stroke-width='0.3' opacity='0.2'/%3E%3C/svg%3E");
        }

        [data-theme="dark"] .search-empty {
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%232a2a2a' opacity='0.8'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%232a2a2a' opacity='0.5'/%3E%3Ccircle cx='50' cy='10' r='1' fill='%232a2a2a' opacity='0.5'/%3E%3Cline x1='10' y1='10' x2='30' y2='30' stroke='%232a2a2a' stroke-width='0.3' opacity='0.4'/%3E%3Cline x1='50' y1='10' x2='30' y2='30' stroke='%232a2a2a' stroke-width='0.3' opacity='0.4'/%3E%3C/svg%3E");
        }

        .search-empty-icon {
            width: 64px;
            height: 64px;
            color: var(--color-text-muted);
            opacity: 0.5;
            margin-bottom: 20px;
        }

        .search-empty h2 {
            font-size: 20px;
            margin-bottom: 16px;
        }

        .search-empty ul {
            list-style: none;
            padding: 0;
            color: var(--color-text-muted);
        }

        .search-empty li {
            margin-bottom: 8px;
        }

        /* TIL Timeline */
        .til-timeline {
            margin-top: 32px;
            position: relative;
        }

        .til-entry {
            display: flex;
            align-items: flex-start;
            gap: 0;
            margin-bottom: 24px;
            position: relative;
        }

        .til-date {
            width: 60px;
            text-align: center;
            flex-shrink: 0;
        }

        .til-day {
            display: block;
            font-family: var(--font-mono);
            font-size: 22px;
            font-weight: 600;
            color: var(--color-text);
            line-height: 1.1;
        }

        .til-month {
            display: block;
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--color-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .til-dot {
            width: 14px;
            height: 14px;
            background: transparent;
            border: 2px solid var(--color-accent-gold);
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 8px;
            position: relative;
            z-index: 1;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .til-entry:hover .til-dot {
            background: var(--color-accent-gold);
        }

        .til-entry::before {
            content: '';
            position: absolute;
            left: 66px;
            top: 22px;
            bottom: -24px;
            width: 0;
            border-left: 2px dashed var(--color-border);
        }

        .til-entry:last-child::before {
            display: none;
        }

        .til-card {
            flex: 1;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 20px;
            margin-left: 20px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .til-card:hover {
            border-color: var(--color-accent-gold);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        }

        .til-title {
            font-family: var(--font-serif);
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .til-title a {
            color: var(--color-text);
            text-decoration: none;
        }

        .til-title a:hover {
            color: var(--color-accent);
        }

        .til-preview {
            font-size: 15px;
            color: var(--color-text-muted);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .til-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .til-tag {
            font-family: var(--font-mono);
            font-size: 11px;
            padding: 4px 12px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: 4px;
            color: var(--color-text-muted);
        }

        /* TIL Article (single view) */
        .til-article {
            max-width: 720px;
        }

        .til-article-header {
            margin-bottom: 32px;
        }

        .til-article-title {
            font-family: var(--font-serif);
            font-size: 36px;
            margin-bottom: 12px;
        }

        .til-article-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--color-text-muted);
            font-size: 14px;
        }

        .til-article-content {
            font-size: 17px;
            line-height: 1.8;
        }

        .til-article-content p {
            margin-bottom: 20px;
        }

        .til-article-content code {
            background: var(--color-code-bg);
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.9em;
        }

        .til-article-content pre {
            background: var(--color-code-block-bg);
            color: var(--color-code-block-text);
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 24px 0;
        }

        .til-article-content pre code {
            background: none;
            padding: 0;
            font-size: 0.9em;
        }

        /* TIL code blocks use same enhanced styling */
        .til-article-content pre[class*="language-"]:not(.code-block-wrapper pre) {
            border-radius: 8px;
            padding: 20px;
            margin: 24px 0;
        }

        /* Newsletter CTA Banner */
        .newsletter-cta {
            padding: 48px 0;
            border-top: 1px solid var(--color-border);
            background: var(--color-surface);
            position: relative;
            overflow: hidden;
        }

        .newsletter-cta::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23999' opacity='0.06'/%3E%3Ccircle cx='10' cy='15' r='1' fill='%23999' opacity='0.04'/%3E%3Ccircle cx='70' cy='12' r='1' fill='%23999' opacity='0.04'/%3E%3Cline x1='10' y1='15' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.03'/%3E%3Cline x1='70' y1='12' x2='40' y2='40' stroke='%23999' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
            background-repeat: repeat;
            pointer-events: none;
        }

        .newsletter-cta-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            position: relative;
        }

        .newsletter-cta-text h3 {
            font-family: var(--font-serif);
            font-size: 26px;
            font-weight: 500;
            margin-bottom: 6px;
        }

        .newsletter-cta-text p {
            font-family: var(--font-mono);
            color: var(--color-text-muted);
            font-size: 13px;
            margin-bottom: 0;
        }

        .newsletter-cta-form {
            flex-shrink: 0;
        }

        .newsletter-cta-input-wrap {
            display: flex;
            gap: 8px;
        }

        .newsletter-cta-input {
            padding: 12px 16px;
            border: 1px solid var(--color-border);
            border-radius: 8px;
            font-family: var(--font-mono);
            font-size: 13px;
            background: var(--color-bg);
            color: var(--color-text);
            width: 260px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .newsletter-cta-input:focus {
            outline: none;
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px rgba(139, 41, 66, 0.1);
        }

        [data-theme="dark"] .newsletter-cta-input:focus {
            box-shadow: 0 0 0 3px rgba(232, 117, 145, 0.15);
        }

        .newsletter-cta-btn {
            padding: 12px 20px;
            background: var(--color-accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            transition: opacity 0.2s, transform 0.15s;
            white-space: nowrap;
        }

        .newsletter-cta-btn:hover {
            opacity: 0.85;
        }

        .newsletter-cta-btn:active {
            transform: scale(0.97);
        }

        .newsletter-cta-btn svg {
            width: 16px;
            height: 16px;
        }

        .footer-subscribe-message {
            font-size: 13px;
            margin-top: 8px;
            min-height: 20px;
        }

        .footer-subscribe-message.success {
            color: var(--color-success);
        }

        .footer-subscribe-message.error {
            color: var(--color-error);
        }

        /* Footer */
        .site-footer {
            padding: 28px 0;
            border-top: 1px solid var(--color-border);
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='4' viewBox='0 0 80 4' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='2' r='1' fill='%23999' opacity='0.1'/%3E%3Ccircle cx='40' cy='2' r='1.5' fill='%23999' opacity='0.08'/%3E%3Ccircle cx='70' cy='2' r='1' fill='%23999' opacity='0.1'/%3E%3Cline x1='10' y1='2' x2='40' y2='2' stroke='%23999' stroke-width='0.3' opacity='0.06'/%3E%3Cline x1='40' y1='2' x2='70' y2='2' stroke='%23999' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
            background-repeat: repeat-x;
            background-position: top;
            background-size: 80px 4px;
        }

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

        .footer-logo {
            font-family: var(--font-serif);
            font-size: 16px;
            font-weight: 600;
            color: var(--color-text);
            text-decoration: none;
            flex-shrink: 0;
            transition: color 0.2s;
        }

        .footer-logo:hover {
            color: var(--color-accent);
            text-decoration: none;
        }

        .footer-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 20px;
            justify-content: center;
        }

        .footer-nav a {
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--color-text-muted);
            text-decoration: none;
            text-transform: lowercase;
            transition: color 0.2s ease;
        }

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

        .footer-right-group {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
        }

        .footer-social {
            display: flex;
            gap: 12px;
        }

        .footer-social a {
            color: var(--color-text-muted);
            text-decoration: none;
            transition: color 0.2s;
        }

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

        .footer-copyright {
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--color-text-muted);
            white-space: nowrap;
        }

        /* Table of Contents */
        .toc {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 48px;
        }

        .toc-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }

        .toc-title {
            font-family: var(--font-serif);
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 0;
        }

        .toc-title svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.5;
            opacity: 0.7;
        }

        .toc-toggle svg {
            width: 16px;
            height: 16px;
            color: var(--color-text-muted);
            transition: transform 0.2s ease;
        }

        .toc.collapsed .toc-toggle svg {
            transform: rotate(-90deg);
        }

        .toc-list {
            list-style: none;
            padding: 0;
            margin: 16px 0 0 0;
            max-height: 500px;
            overflow: hidden;
            transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
            opacity: 1;
        }

        .toc.collapsed .toc-list {
            max-height: 0;
            margin: 0;
            opacity: 0;
        }

        .toc-list li {
            margin-bottom: 0;
        }

        .toc-list a {
            display: block;
            padding: 6px 0;
            font-size: 14px;
            color: var(--color-text-muted);
            text-decoration: none;
            border-left: 2px solid transparent;
            padding-left: 12px;
            transition: color 0.2s ease, border-color 0.2s ease;
        }

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

        .toc-list a.active {
            color: var(--color-accent);
            border-left-color: var(--color-accent);
            font-weight: 500;
        }

        .toc-list .toc-h3 {
            padding-left: 28px;
            font-size: 13px;
        }

        /* Reading Progress Bar */
        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-teal) 100%);
            z-index: 9999;
            transition: width 0.1s linear;
        }

        /* Reading Time Remaining */
        .reading-time-remaining {
            position: fixed;
            top: 12px;
            right: 24px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--color-text-muted);
            background: var(--color-surface);
            padding: 4px 10px;
            border-radius: 12px;
            border: 1px solid var(--color-border);
            z-index: 9998;
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
        }

        .reading-time-remaining.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Floating Share Bar */
        .floating-share {
            position: fixed;
            right: 24px;
            bottom: 80px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            opacity: 0;
            transform: translateX(20px);
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
            z-index: 100;
        }

        .floating-share.visible {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        .floating-share .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            background: var(--color-surface);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            right: 24px;
            bottom: 24px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid var(--color-border);
            background: var(--color-surface);
            color: var(--color-text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(12px);
            transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
            pointer-events: none;
            z-index: 100;
        }

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

        .back-to-top:hover {
            border-color: var(--color-accent);
            color: var(--color-accent);
        }

        .back-to-top svg {
            width: 20px;
            height: 20px;
        }

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

        @keyframes fadeInLeft {
            from { opacity: 0; transform: translateX(-24px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes fadeInRight {
            from { opacity: 0; transform: translateX(24px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.92); }
            to { opacity: 1; transform: scale(1); }
        }

        .animate-in {
            opacity: 0;
            transform: translateY(20px);
        }

        .animate-in.is-visible {
            animation: fadeInUp 0.5s ease-out forwards;
        }

        /* Directional variants */
        .animate-in-left {
            opacity: 0;
            transform: translateX(-24px);
        }
        .animate-in-left.is-visible {
            animation: fadeInLeft 0.5s ease-out forwards;
        }

        .animate-in-right {
            opacity: 0;
            transform: translateX(24px);
        }
        .animate-in-right.is-visible {
            animation: fadeInRight 0.5s ease-out forwards;
        }

        .animate-in-scale {
            opacity: 0;
            transform: scale(0.92);
        }
        .animate-in-scale.is-visible {
            animation: scaleIn 0.5s ease-out forwards;
        }

        /* Stagger children - wider delays for cascading effect */
        .animate-in.is-visible:nth-child(2),
        .animate-in-left.is-visible:nth-child(2),
        .animate-in-right.is-visible:nth-child(2),
        .animate-in-scale.is-visible:nth-child(2) { animation-delay: 0.06s; }

        .animate-in.is-visible:nth-child(3),
        .animate-in-left.is-visible:nth-child(3),
        .animate-in-right.is-visible:nth-child(3),
        .animate-in-scale.is-visible:nth-child(3) { animation-delay: 0.12s; }

        .animate-in.is-visible:nth-child(4),
        .animate-in-left.is-visible:nth-child(4),
        .animate-in-right.is-visible:nth-child(4),
        .animate-in-scale.is-visible:nth-child(4) { animation-delay: 0.18s; }

        .animate-in.is-visible:nth-child(5),
        .animate-in-left.is-visible:nth-child(5),
        .animate-in-right.is-visible:nth-child(5),
        .animate-in-scale.is-visible:nth-child(5) { animation-delay: 0.24s; }

        .animate-in.is-visible:nth-child(6),
        .animate-in-left.is-visible:nth-child(6),
        .animate-in-right.is-visible:nth-child(6),
        .animate-in-scale.is-visible:nth-child(6) { animation-delay: 0.30s; }

        .animate-in.is-visible:nth-child(7),
        .animate-in-left.is-visible:nth-child(7),
        .animate-in-right.is-visible:nth-child(7),
        .animate-in-scale.is-visible:nth-child(7) { animation-delay: 0.36s; }

        .animate-in.is-visible:nth-child(8),
        .animate-in-left.is-visible:nth-child(8),
        .animate-in-right.is-visible:nth-child(8),
        .animate-in-scale.is-visible:nth-child(8) { animation-delay: 0.42s; }

        /* Prefers reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .animate-in,
            .animate-in-left,
            .animate-in-right,
            .animate-in-scale {
                opacity: 1;
                transform: none;
            }
            .animate-in.is-visible,
            .animate-in-left.is-visible,
            .animate-in-right.is-visible,
            .animate-in-scale.is-visible {
                animation: none;
            }
        }

        /* View Transitions API */
        @view-transition {
            navigation: auto;
        }

        ::view-transition-old(root) {
            animation: 0.25s ease-out both fade-out;
        }

        ::view-transition-new(root) {
            animation: 0.25s ease-in both fade-in;
        }

        @keyframes fade-out {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        @keyframes fade-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Named transitions for key elements */
        .site-logo {
            view-transition-name: logo;
        }

        .page-title {
            view-transition-name: page-title;
        }

        /* Toast Notification */
        .toast-container {
            position: fixed;
            bottom: 32px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            pointer-events: none;
        }

        .toast {
            background: var(--color-text);
            color: var(--color-bg);
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0;
            transform: translateY(16px);
            animation: toastIn 0.3s ease forwards;
            pointer-events: auto;
        }

        .toast.toast-out {
            animation: toastOut 0.3s ease forwards;
        }

        .toast svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
            flex-shrink: 0;
        }

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

        @keyframes toastOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(16px); }
        }

        /* Command Palette */
        .cmd-palette-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 10000;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding-top: min(20vh, 160px);
        }

        .cmd-palette-overlay.active {
            display: flex;
        }

        .cmd-palette {
            width: 560px;
            max-width: 90vw;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: cmdPaletteIn 0.15s ease-out;
        }

        @keyframes cmdPaletteIn {
            from { opacity: 0; transform: scale(0.96) translateY(-8px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .cmd-palette-input-wrap {
            display: flex;
            align-items: center;
            padding: 16px 20px;
            gap: 12px;
            border-bottom: 1px solid var(--color-border);
        }

        .cmd-palette-input-wrap svg {
            width: 20px;
            height: 20px;
            color: var(--color-text-muted);
            flex-shrink: 0;
        }

        .cmd-palette-input-wrap::before {
            content: '$';
            font-family: var(--font-mono);
            font-size: 16px;
            color: var(--color-accent-teal);
            opacity: 0.6;
        }

        .cmd-palette-input {
            flex: 1;
            border: none;
            background: none;
            font-size: 15px;
            color: var(--color-text);
            outline: none;
            font-family: var(--font-mono);
        }

        .cmd-palette-input::placeholder {
            color: var(--color-text-muted);
        }

        .cmd-palette-kbd {
            font-size: 11px;
            color: var(--color-text-muted);
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: var(--font-mono);
        }

        .cmd-palette-results {
            max-height: 340px;
            overflow-y: auto;
            padding: 8px;
        }

        .cmd-palette-empty {
            padding: 32px 20px;
            text-align: center;
            color: var(--color-text-muted);
            font-size: 14px;
        }

        .cmd-palette-group-label {
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 600;
            text-transform: lowercase;
            letter-spacing: 0.3px;
            color: var(--color-text-muted);
            padding: 8px 12px 4px;
        }

        .cmd-palette-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--color-text);
            transition: background 0.1s;
            cursor: pointer;
        }

        .cmd-palette-item:hover,
        .cmd-palette-item.active {
            background: var(--color-bg);
            text-decoration: none;
        }

        .cmd-palette-item-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .cmd-palette-item-icon-post {
            background: #dbeafe;
            color: #1e40af;
        }
        .cmd-palette-item-icon-paper {
            background: #dcfce7;
            color: #166534;
        }
        .cmd-palette-item-icon-til {
            background: #fef3c7;
            color: #92400e;
        }
        .cmd-palette-item-icon-nav {
            background: var(--color-bg);
            color: var(--color-text-muted);
        }

        [data-theme="dark"] .cmd-palette-item-icon-post {
            background: #1e3a5f;
            color: #93c5fd;
        }
        [data-theme="dark"] .cmd-palette-item-icon-paper {
            background: #14532d;
            color: #86efac;
        }
        [data-theme="dark"] .cmd-palette-item-icon-til {
            background: #422006;
            color: #fcd34d;
        }

        .cmd-palette-item-text {
            flex: 1;
            min-width: 0;
        }

        .cmd-palette-item-title {
            font-size: 14px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cmd-palette-item-subtitle {
            font-size: 12px;
            color: var(--color-text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cmd-palette-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
            border-top: 1px solid var(--color-border);
            font-size: 12px;
            color: var(--color-text-muted);
        }

        .cmd-palette-footer-keys {
            display: flex;
            gap: 12px;
        }

        .cmd-palette-footer-keys span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .cmd-palette-footer kbd {
            font-size: 10px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            padding: 1px 5px;
            border-radius: 3px;
            font-family: var(--font-sans);
        }

        /* Mobile Menu */
        .mobile-header-actions {
            display: none;
            align-items: center;
            gap: 16px;
        }

        .mobile-menu-btn {
            background: none;
            border: none;
            color: var(--color-text);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
        }

        .mobile-menu-btn svg {
            width: 22px;
            height: 22px;
            stroke-width: 1.75;
        }

        .mobile-menu-btn .menu-icon-close {
            display: none;
        }

        .mobile-menu-btn.active .menu-icon-open {
            display: none;
        }

        .mobile-menu-btn.active .menu-icon-close {
            display: block;
        }

        .mobile-nav {
            display: none;
            border-top: 1px solid var(--color-border);
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 0;
        }

        .mobile-nav.active {
            display: block;
            max-height: 400px;
            opacity: 1;
        }

        .mobile-nav a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 0;
            font-size: 16px;
            color: var(--color-text);
            text-decoration: none;
            border-bottom: 1px solid var(--color-border);
            transition: color 0.2s ease;
        }

        .mobile-nav a:last-child {
            border-bottom: none;
        }

        .mobile-nav a:hover,
        .mobile-nav a.nav-active {
            color: var(--color-accent);
        }

        .mobile-nav a.nav-active {
            font-weight: 600;
        }

        .mobile-nav a svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.5;
            opacity: 0.7;
        }

        /* Responsive */
        @media (max-width: 768px) {
            body {
                font-size: 16px;
            }

            h1, .hero-title {
                font-size: 32px;
            }

            .hero-section {
                padding: 32px 24px;
            }

            .hero-subtitle {
                font-size: 18px;
            }

            h2, .article-title {
                font-size: 28px;
            }

            .post-card-title {
                font-size: 22px;
            }

            .featured-post-title {
                font-size: 24px;
            }

            .featured-post-image {
                height: 200px;
            }

            .post-card-with-image {
                flex-direction: column;
            }

            .post-card-thumb-link {
                order: -1;
            }

            .post-card-thumb {
                width: 100%;
                height: 160px;
            }

            .header-nav {
                display: none;
            }

            .mobile-header-actions {
                display: flex;
            }

            .newsletter-cta-inner {
                flex-direction: column;
                text-align: center;
                gap: 24px;
            }

            .newsletter-cta-input {
                width: 100%;
            }

            .footer-inner {
                flex-direction: column;
                align-items: center;
                gap: 16px;
                text-align: center;
            }

            .footer-nav {
                justify-content: center;
            }

            .footer-right-group {
                flex-direction: column;
                gap: 8px;
            }

            .article-content p:first-of-type::first-letter {
                font-size: 56px;
            }

            .page-title {
                font-size: 32px;
            }

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

            .article-meta {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .comment-form {
                padding: 20px;
            }

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

            .til-date {
                width: 50px;
            }

            .til-day {
                font-size: 20px;
            }

            .til-month {
                font-size: 12px;
            }

            .til-dot {
                width: 12px;
                height: 12px;
            }

            .til-entry::before {
                left: 55px;
            }

            .til-card {
                padding: 16px;
                margin-left: 16px;
            }

            .til-title {
                font-size: 16px;
            }

            .til-article-title {
                font-size: 28px;
            }
        }

        /* Now Page - Bento Grid */
        .now-header {
            margin-bottom: 48px;
        }

        .now-updated {
            font-size: 14px;
            color: var(--color-text-muted);
            margin-top: 8px;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-auto-rows: minmax(180px, auto);
            gap: 20px;
        }

        .bento-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 16px;
            padding: 28px;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .bento-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            opacity: 0.06;
            pointer-events: none;
            transition: opacity 0.3s, transform 0.3s;
        }

        .bento-working::before { background: #f59e0b; }
        .bento-learning::before { background: #3b82f6; }
        .bento-location::before { background: #8b5cf6; }
        .bento-reading::before { background: #10b981; }
        .bento-listening::before { background: #ec4899; }
        .bento-watching::before { background: #f97316; }

        .bento-card:hover {
            transform: translateY(-5px) scale(1.01);
            box-shadow: 0 16px 48px rgba(0,0,0,0.1);
        }

        .bento-card:hover::before {
            opacity: 0.1;
            transform: scale(1.5);
        }

        .bento-icon {
            margin-bottom: 16px;
            color: var(--color-text);
        }

        .bento-icon svg {
            width: 32px;
            height: 32px;
            stroke-width: 1.5;
            transition: transform 0.3s ease;
        }

        .bento-card:hover .bento-icon svg {
            transform: scale(1.1);
        }

        /* Micro-animations for specific bento icons */
        .bento-location:hover .bento-icon svg {
            animation: pinBounce 0.5s ease;
        }

        .bento-listening:hover .bento-icon svg {
            animation: pulse 0.6s ease;
        }

        @keyframes pinBounce {
            0%, 100% { transform: translateY(0) scale(1.1); }
            40% { transform: translateY(-6px) scale(1.1); }
            60% { transform: translateY(-2px) scale(1.1); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1.1); }
            50% { transform: scale(1.25); }
        }

        .bento-card h2 {
            font-family: var(--font-serif);
            font-size: 18px;
            font-weight: 600;
            margin: 0 0 16px 0;
            color: var(--color-text);
        }

        .bento-content {
            font-size: 14px;
            line-height: 1.7;
            color: var(--color-text-muted);
            flex: 1;
        }

        .bento-content ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }

        .bento-content li {
            margin-bottom: 8px;
            padding-left: 0;
        }

        .bento-content li::before {
            content: none;
        }

        .bento-content li:last-child {
            margin-bottom: 0;
        }

        .bento-content p {
            margin: 0;
        }

        .bento-content a {
            color: var(--color-accent);
        }

        /* Bento sizes */
        .bento-large {
            grid-column: span 2;
            grid-row: span 1;
        }

        .bento-medium {
            grid-column: span 1;
            grid-row: span 1;
        }

        .bento-small {
            grid-column: span 1;
            grid-row: span 1;
        }

        /* Bento card colors */
        .bento-working {
            background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
            border-color: #fcd34d;
        }

        .bento-learning {
            background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
            border-color: #93c5fd;
        }

        .bento-location {
            background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
            border-color: #c4b5fd;
            justify-content: center;
            text-align: center;
        }

        .bento-location .bento-icon svg {
            width: 40px;
            height: 40px;
        }

        .bento-location h2 {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--color-text-muted);
            margin-bottom: 8px;
        }

        .bento-location-text {
            font-family: var(--font-serif);
            font-size: 22px;
            font-weight: 600;
            color: var(--color-text);
            margin: 0;
        }

        .bento-reading {
            background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
            border-color: #86efac;
        }

        .bento-listening {
            background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
            border-color: #f9a8d4;
        }

        .bento-watching {
            background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
            border-color: #fdba74;
        }

        /* Dark mode bento cards */
        [data-theme="dark"] .bento-working {
            background: linear-gradient(135deg, #422006 0%, #1c1a00 100%);
            border-color: #854d0e;
            box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.1);
        }

        [data-theme="dark"] .bento-learning {
            background: linear-gradient(135deg, #1e3a5f 0%, #172554 100%);
            border-color: #1e40af;
            box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.1);
        }

        [data-theme="dark"] .bento-location {
            background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 100%);
            border-color: #6b21a8;
            box-shadow: inset 0 1px 0 rgba(139, 92, 246, 0.1);
        }

        [data-theme="dark"] .bento-reading {
            background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
            border-color: #166534;
            box-shadow: inset 0 1px 0 rgba(16, 185, 129, 0.1);
        }

        [data-theme="dark"] .bento-listening {
            background: linear-gradient(135deg, #500724 0%, #4a044e 100%);
            border-color: #9d174d;
            box-shadow: inset 0 1px 0 rgba(236, 72, 153, 0.1);
        }

        [data-theme="dark"] .bento-watching {
            background: linear-gradient(135deg, #431407 0%, #7c2d12 100%);
            border-color: #c2410c;
            box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.1);
        }

        /* Dark mode hover glows for bento */
        [data-theme="dark"] .bento-working:hover { box-shadow: 0 0 24px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(245, 158, 11, 0.1); }
        [data-theme="dark"] .bento-learning:hover { box-shadow: 0 0 24px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(59, 130, 246, 0.1); }
        [data-theme="dark"] .bento-location:hover { box-shadow: 0 0 24px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(139, 92, 246, 0.1); }
        [data-theme="dark"] .bento-reading:hover { box-shadow: 0 0 24px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(16, 185, 129, 0.1); }
        [data-theme="dark"] .bento-listening:hover { box-shadow: 0 0 24px rgba(236, 72, 153, 0.15), inset 0 1px 0 rgba(236, 72, 153, 0.1); }
        [data-theme="dark"] .bento-watching:hover { box-shadow: 0 0 24px rgba(249, 115, 22, 0.15), inset 0 1px 0 rgba(249, 115, 22, 0.1); }

        @media (max-width: 900px) {
            .bento-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .bento-large {
                grid-column: span 2;
            }
        }

        @media (max-width: 600px) {
            .bento-grid {
                grid-template-columns: 1fr;
            }
            .bento-large,
            .bento-medium,
            .bento-small {
                grid-column: span 1;
            }
        }
