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

input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    outline: 0;
}


:root {
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --hover: #cccccc;
    --border: #333333;
    --link-hover: #ff3333;
}

@font-face { 
    font-family: "Inter"; 
    font-style: normal; 
    font-weight: 400; 
    font-display: swap; 
    src: url("fonts/Inter-Regular.woff2") format("woff2"); 
}

@font-face { 
    font-family: "Inter"; 
    font-style: italic; 
    font-weight: 400; 
    font-display: swap; 
    src: url("fonts/Inter-Italic.woff2") format("woff2"); 
}

@font-face { 
    font-family: "Inter"; 
    font-style: normal; 
    font-weight: 800; 
    font-display: swap; 
    src: url("fonts/Inter-ExtraBold.woff2") format("woff2"); 
}

@font-face { 
    font-family: "Inter"; 
    font-style: italic; 
    font-weight: 800; 
    font-display: swap; 
    src: url("fonts/Inter-ExtraBoldItalic.woff2") format("woff2"); 
}

@font-face { 
    font-family: "Inter"; 
    font-style: normal; 
    font-weight: 700; 
    font-display: swap; 
    src: url("fonts/Inter-Bold.woff2") format("woff2"); 
}

@font-face { 
    font-family: "Inter"; 
    font-style: italic; 
    font-weight: 700; 
    font-display: swap; 
    src: url("fonts/Inter-BoldItalic.woff2") format("woff2"); 
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.4;
}

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

.container-narrow {
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 40px;
}


h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}


p {
    line-height: 1.6;
}


header {

    padding: 30px 0;

}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 40px;
}


.logo { 
    display: inline-flex; 
    align-items: center; 
    line-height: 0;       
  }
  
  .logo svg { 
    height: 28px;          
    width: auto; 
    display: block;
  }
  
nav {
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

nav a.active {
    color: var(--hover);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}



main {
    padding: 40px 0;
}


.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.article-item {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-item:hover .article-title {
    color: var(--link-hover);
}

.article-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s ease;
}


.article-header {
    margin-bottom: 20px;
}

.article-title-large {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--accent);
    margin-bottom: -20px;
}

.article-content {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 60px;
}

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

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

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 24px;
}

.article-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 50px 0 25px 0;
    color: var(--accent);
}

.article-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: var(--text-primary);
}

.article-content img {
    width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}


.back-section {
    background-color: var(--bg-medium);
    padding: 60px 0;
    width: 100%;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 16px 40px;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align:center;
}

.back-button:hover {
    background-color: var(--hover);
    color: var(--bg-dark);
    border-color: var(--hover);
}


@media (max-width: 900px) {
    .container, .container-narrow {
        padding: 0 20px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .article-title {
        font-size: 24px;
    }

    .article-title-large {
        font-size: 42px;
    }

    .article-content {
        font-size: 20px;
    }

    .article-content h2 {
        font-size: 32px;
    }

    .article-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 36px;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .article-title-large {
        font-size: 32px;
    }

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

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

    .article-content h3 {
        font-size: 22px;
    }

    .back-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}




.comments-section {
    margin: 60px 0;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 4px;
}

.comments-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--accent);
}

.comment {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.commenter-name {
    font-size: 20px;
    font-weight: 700;
    color: #888888;
}

.comment-date {
    font-size: 16px;
    color: #888888;
}

.comment-text {
    font-size: 18px;
    line-height: 1.6;
    color: #888888;
}


@media (max-width: 600px) {
    .comments-title {
        font-size: 28px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-text {
        font-size: 16px;
    }
}