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

body {
    background: #000;
    color: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

/* Header / Nav - wider header with centered content */
header {
    position: sticky;
    top: 0;
    padding: 0.5rem 0;
    margin: 0;
    background: #000;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0.5rem 2rem;
    line-height: 1;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    line-height: 1;
}

nav a {
    color: #e5e5e5;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

nav a:hover {
    color: #fff;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    text-decoration: none;
}

.logo .not {
    color: #f00;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Main content */
main {
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
}

/* Homepage - wide layout for post cards */
.home main {
    max-width: 1000px;
    padding: 0 2rem 4rem 2rem;
}

/* Individual posts - narrow layout for reading */
.post main {
    max-width: 800px;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

h2 {
    font-size: 1.8rem;
    margin: 2rem 0 0.8rem 0;
    color: #fff;
}

h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem 0;
    color: #fff;
}

h4 {
    font-size: 1.2rem;
    margin: 2rem 0 0.8rem 0;
    color: #fff;
}

/* Article subtitle styling */
.article-subtitle {
    font-size: 1.2rem;
    margin: 0.5rem 0 2rem 0;
    color: #ccc;
    font-style: italic;
    font-weight: normal;
}

p {
    margin-bottom: 1.2em;
}

blockquote {
    border-left: 4px solid #f00;
    margin: 1.5em 0 1.5em 1em;
    padding-left: 1.5em;
}

hr {
    border: none;
    margin: 2rem 0;
    text-align: center;
    height: auto;
    line-height: 1;
}

hr::after {
    content: "· • ·";
    color: #800;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
}

.caption {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #999;
    margin: -1.5rem auto 1.5rem auto;
}

time {
    color: #999;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #999;
    font-size: 0.9rem;
}

.article-author {
    color: #999;
}

.meta-dot {
    color: #333;
}

a {
    color: #e5e5e5;
    text-decoration: underline;
}

a:hover {
    color: #fff;
}

/* Article content links (posts and static pages) */
article a {
    color: #b00;
    text-decoration: none;
}

article a:hover {
    color: #f00;
}

/* Lists */
ul, ol {
    margin: 0.5em 0 1.5em 2em;
}

li {
    margin-bottom: 0.0em;
}

/* Code */
code {
    background: #1a1a1a;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background: #1a1a1a;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* Article header image */
.article-image {
    margin: 0 0 2rem 0;
}

.article-image img {
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Post listings */
.posts {
    margin-top: 3rem;
}

.post-card {
    margin-bottom: 3rem;
    height: 135px;
    overflow: hidden;
    position: relative;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 200px;
}

.post-card-image {
    float: left;
    margin: 0 2rem 0 0;
    width: 240px;
    height: 135px;
    position: relative;
    top: 0;
}

.post-card-image img {
    width: 240px;
    height: 135px;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 4px;
}

.post-card-content {
    margin-left: 260px;
    height: 135px;
    padding: 0;
    overflow: hidden;
    display: block;
    position: relative;
    top: 0;
}

.post-card-title {
    font-size: 1.6rem;
    margin: 0 0 0.8rem 0;
    padding: 0;
    color: #fff;
    font-weight: bold;
    line-height: 1.3;
    display: block;
}

.post-card-title a {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    text-decoration: none;
    color: #fff;
}

.post-card-title a:hover {
    color: #ccc;
}

.post-card-subtitle {
    color: #ccc;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-size: 0.95rem;
    display: block;
}

.post-card-meta {
    display: flex;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
    margin-top: auto;
    flex-shrink: 0;
}

.post-card-author, .post-card-date {
    margin: 0;
}

/* Hover effects */
.post-card-link:hover .post-card-title {
    color: #fff;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .post-card {
        height: auto;
        margin-bottom: 2rem;
    }

    .post-card-image {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 1rem 0;
        aspect-ratio: 16/9;
    }

    .post-card-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .post-card-content {
        margin-left: 0;
        height: auto;
        padding: 0;
    }

    .post-card-subtitle {
        display: none;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding: 2rem 0;
    gap: 1rem;
}

.pagination a {
    color: #e5e5e5;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 4px;
}

.pagination a:hover {
    color: #fff;
    border-color: #666;
}

.pagination-info {
    color: #999;
    font-size: 0.9rem;
}

.pagination-prev, .pagination-next {
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 1rem 0;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    border-top: 1px solid #333;
}


.footer-copyright {
    font-size: 0.9rem;
}
