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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        header {
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
            padding: 2rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            text-align: center;
        }

        .site-title {
            font-family: 'Lora', Georgia, serif;
            font-size: 2.5rem;
            color: #fff;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            margin-bottom: 1rem;
        }

        nav {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        nav ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 0;
        }

        nav ul li a {
            text-decoration: none;
            color: #333;
            padding: 0.5rem 1rem;
            display: block;
            transition: all 0.3s ease;
            border-radius: 4px;
            font-weight: 500;
        }

        nav ul li a:hover {
            background-color: #8B4513;
            color: #fff;
        }

        .main-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 20px;
        }

        h1 {
            font-size: 2.5rem;
            color: #8B4513;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 3px solid #A0522D;
            font-family: 'Lora', Georgia, serif;
        }

        article {
            background-color: #fff;
            padding: 2.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }

        article h2 {
            color: #8B4513;
            margin-top: 2rem;
            margin-bottom: 1rem;
            font-size: 1.8rem;
        }

        article h3 {
            color: #A0522D;
            margin-top: 1.5rem;
            margin-bottom: 0.8rem;
            font-size: 1.4rem;
        }

        article p {
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        article ul, article ol {
            margin-left: 2rem;
            margin-bottom: 1rem;
        }

        article li {
            margin-bottom: 0.5rem;
        }

        article img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin: 1rem 0;
        }

        article hr {
            border: none;
            border-top: 2px solid #e0e0e0;
            margin: 2rem 0;
        }

        article table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }

        article table td {
            padding: 1rem;
            vertical-align: top;
        }

        article a {
            color: #8B4513;
            text-decoration: none;
            border-bottom: 1px solid #A0522D;
            transition: all 0.3s ease;
        }

        article a:hover {
            color: #A0522D;
            border-bottom-color: #8B4513;
        }

        .transition-section {
            background-color: #fff;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }

        .transition-section p {
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        {% if links %}
        .links-section {
            background-color: #fff;
            padding: 2.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }

        .links-section h3 {
            color: #8B4513;
            font-size: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #A0522D;
        }

        .links-section h3:first-child {
            margin-top: 0;
        }

        .links-section ul {
            list-style: none;
            column-count: 2;
            column-gap: 2rem;
            margin-bottom: 2rem;
        }

        .links-section ul li {
            break-inside: avoid;
            margin-bottom: 0.8rem;
        }

        .links-section ul li a {
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
            padding-left: 1.2rem;
            position: relative;
        }

        .links-section ul li a:before {
            content: "▸";
            position: absolute;
            left: 0;
            color: #8B4513;
            font-weight: bold;
        }

        .links-section ul li a:hover {
            color: #8B4513;
            padding-left: 1.5rem;
        }
        {% endif %}

        footer {
            background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
            color: #fff;
            padding: 3rem 0 1.5rem;
            margin-top: 4rem;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-box h2 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: #fff;
            border-bottom: 2px solid rgba(255,255,255,0.3);
            padding-bottom: 0.5rem;
        }

        .footer-box ul {
            list-style: none;
        }

        .footer-box ul li {
            margin-bottom: 0.5rem;
        }

        .footer-box ul li a {
            color: rgba(255,255,255,0.9);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

        .footer-box ul li a:hover {
            color: #fff;
            padding-left: 5px;
        }

        @media (max-width: 768px) {
            .site-title {
                font-size: 1.8rem;
            }

            h1 {
                font-size: 1.8rem;
            }

            article {
                padding: 1.5rem;
            }

            article h2 {
                font-size: 1.5rem;
            }

            article h3 {
                font-size: 1.2rem;
            }

            nav ul {
                flex-direction: column;
                align-items: stretch;
            }

            nav ul li a {
                text-align: center;
            }

            .links-section ul {
                column-count: 1;
            }

            .footer-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .site-title {
                font-size: 1.5rem;
            }

            h1 {
                font-size: 1.5rem;
            }

            article {
                padding: 1rem;
            }

            .links-section {
                padding: 1.5rem;
            }
        }
    