


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


:root {
    
    --bg-primary: #FAF7F2;          
    --bg-secondary: #FFFFFF;         
    --bg-accent: #F5F0E8;           
    
    
    --accent-primary: #1B4332;       
    --accent-secondary: #C65D3B;     
    --accent-hover: #2D6A4F;         
    
    
    --text-primary: #1A1A1A;         
    --text-secondary: #4A4A4A;       
    --text-muted: #7A7A7A;           
    --text-light: #FFFFFF;           
    
    
    --border-light: #E8E2D9;         
    --border-medium: #D4CFC5;        
    --border-accent: #1B4332;        
    
    
    --shadow-soft: 0 2px 8px rgba(26, 26, 26, 0.06);
    --shadow-medium: 0 4px 16px rgba(26, 26, 26, 0.08);
    --shadow-hover: 0 8px 24px rgba(26, 26, 26, 0.12);
}


body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}


.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}


.header {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.header:hover {
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-secondary);
}


.nav-container {
    display: flex;
}

.nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav a:hover {
    color: var(--accent-primary);
}

.nav a:hover::after {
    transform: scaleX(1);
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-line {
    width: 22px;
    height: 2px;
    background-color: var(--accent-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
    position: absolute;
}

.burger-line:nth-child(1) {
    top: 8px;
}

.burger-line:nth-child(2) {
    top: 15px;
}

.burger-line:nth-child(3) {
    top: 22px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}


.main-content {
    flex: 1;
    padding: 3rem 0;
}

.main-content .container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    width: 100%;
}


.content {
    flex: 1;
    order: 2;
    min-width: 0;
}


.sidebar {
    width: 280px;
    flex-shrink: 0;
    order: 1;
    background-color: var(--bg-accent);
    padding: 2rem;
    border-radius: 4px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border-left: 3px solid var(--accent-primary);
}

.sidebar h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-medium);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}


h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}


p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}


.recent-posts {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.recent-posts li {
    margin-bottom: 0 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.recent-posts li:first-child {
    padding-top: 0 !important;
}

.recent-posts li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.recent-posts a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    display: block !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.recent-posts a:hover {
    color: var(--accent-secondary) !important;
    padding-left: 8px !important;
}


.btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--text-light);
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    border-radius: 2px;
}

.btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--text-light);
}


.footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

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

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}


.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    margin-bottom: 2.5rem;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

.article-content img,
.content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}


.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 10rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0.15;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: -4rem;
}

.error-page p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin: 2.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-suggestions {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-accent);
    border-radius: 4px;
    border-left: 3px solid var(--accent-primary);
}

.error-suggestions h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--accent-primary);
}

.error-suggestions ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.error-suggestions li a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.error-suggestions li a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}


.posts-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.post-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

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

.post-item:hover {
    background-color: var(--bg-accent);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 4px;
}

.post-image {
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--accent-secondary);
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.post-content .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

table th {
    background-color: var(--accent-primary);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background-color: var(--bg-accent);
}

table tr:last-child td {
    border-bottom: none;
}


ul, ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

ul li strong, ol li strong {
    color: var(--text-primary);
}


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

.content {
    animation: fadeInUp 0.5s ease-out;
}

.sidebar {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}


a:focus,
.btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}


@media (max-width: 1024px) {
    .main-content .container {
        gap: 2rem;
    }
    
    .sidebar {
        width: 240px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-secondary);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav a {
        font-size: 1.25rem;
        padding: 1rem 2rem;
    }
    
    .nav a::after {
        display: none;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .main-content .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        position: static;
        border-left: none;
        border-top: 3px solid var(--accent-primary);
    }
    
    .content {
        order: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-page h1 {
        font-size: 1.75rem;
        margin-top: -2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-suggestions ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-page h1 {
        font-size: 1.5rem;
        margin-top: -1rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}


blockquote {
    background-color: var(--bg-accent);
    border-left: 4px solid var(--accent-primary);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    position: relative;
}

blockquote::before {
    content: '"';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    color: var(--accent-secondary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 1rem;
    line-height: 1;
}

blockquote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

blockquote cite {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: right;
}

blockquote cite::before {
    content: '— ';
}


.text-accent {
    color: var(--accent-primary);
}

.text-secondary-accent {
    color: var(--accent-secondary);
}

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

.border-accent {
    border-color: var(--accent-primary);
}

