/* ULTRA MINIMAL BRUTALIST
   ================================ */

:root {
    --bg: #fafafa;
    --text: #000000;
    --gray: #666666;
    --light-gray: #999999;
    --accent: #ff0040;
    --border: #e0e0e0;
}

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

::selection {
    background: var(--text);
    color: var(--bg);
}

/* TYPOGRAPHY */
body {
    background: var(--bg);
    color: var(--text);
    font-family: Consolas, 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
    padding: 3rem 0 2rem;
}

nav {
    text-align: center;
}

.logo {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

nav ul a {
    color: var(--gray);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* MAIN */
main {
    flex: 1;
    padding: 0 0 4rem;
}

/* HOME HERO */
.hero {
    text-align: center;
    padding: 0 0 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero p {
    color: var(--gray);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* SECTION TITLES */
h2 {
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    color: var(--gray);
}

/* POST LISTS */
.posts-list, .posts-grid {
    margin: 0;
}

.post-card, article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

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

.post-card h2, .post-card h3, article h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card h2 a, .post-card h3 a, article h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h2 a:hover, .post-card h3 a:hover, article h3 a:hover {
    color: var(--accent);
}

/* Post Description */
.post-description {
    color: var(--gray);
    font-size: 13px;
    margin: 1rem 0;
    line-height: 1.6;
}

time {
    color: var(--light-gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.read-more:hover {
    color: var(--accent);
}

/* SINGLE POST */
.post {
    max-width: 650px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-header h1 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.categories {
    margin-top: 1rem;
}

.categories a {
    color: var(--gray);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0.5rem;
}

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

/* POST CONTENT */
.post-content {
    font-size: 14px;
    line-height: 1.8;
}

.post-content h1, 
.post-content h2, 
.post-content h3 {
    margin: 3rem 0 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content h1 {
    font-size: 20px;
}

.post-content h2 {
    font-size: 16px;
}

.post-content h3 {
    font-size: 14px;
}

.post-content p {
    margin-bottom: 1.5rem;
}

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

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

.post-content pre {
    background: var(--text);
    color: var(--bg);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 12px;
}

.post-content code {
    background: var(--border);
    padding: 0.1rem 0.3rem;
    font-size: 12px;
}

.post-content pre code {
    background: none;
    color: var(--bg);
    padding: 0;
}

.post-content blockquote {
    border-left: 2px solid var(--border);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--gray);
    font-style: italic;
}

.post-content ul, .post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* TAGS */
.tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tag {
    display: inline-block;
    color: var(--gray);
    margin-right: 1rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* FOOTER */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: "EOF";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 0 15px;
    color: var(--light-gray);
    font-size: 10px;
    letter-spacing: 0.2em;
}

footer p {
    text-align: center;
    color: var(--light-gray);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    font-size: 12px;
}

.pagination a, .pagination span {
    color: var(--gray);
    text-decoration: none;
}

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

.pagination .active {
    color: var(--text);
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    nav ul {
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 20px;
    }
    
    .post-header h1 {
        font-size: 20px;
    }
    
    .post-content {
        font-size: 13px;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}
