/* Chronicle Theme - Post Page - NY Artist Style */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

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

:root {
    --black: #000;
    --white: #fff;
    --gray: #666;
    --light-gray: #e0e0e0;
    --content-width: 720px;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* Header */
.post-header {
    border-bottom: 2px solid var(--black);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
}

.nav-home {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-home:hover {
    opacity: 0.5;
}

/* Article */
.post {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.post-meta {
    margin-bottom: 60px;
}

.post-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    display: block;
    margin-bottom: 24px;
}

.post-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 32px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid var(--black);
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--black);
    color: var(--white);
}

/* Featured Image */
.post-image {
    margin: 0 0 60px;
}

.post-image img {
    width: 100%;
    height: auto;
}

/* Post Content */
.post-content {
    font-size: 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    letter-spacing: -1px;
    margin-top: 64px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.post-content h1 { font-size: 36px; }
.post-content h2 { font-size: 28px; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 18px; }

.post-content p {
    margin-bottom: 28px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    margin: 48px 0;
    padding: 32px 40px;
    background: var(--black);
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

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

.post-content blockquote a {
    color: var(--white);
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
}

.post-content hr {
    border: none;
    border-top: 2px solid var(--black);
    margin: 64px 0;
}

/* Code */
.post-content code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 15px;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #000;
    color: #000;
}

.post-content pre {
    margin: 32px 0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    background: #0d1117;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #c9d1d9;
    border: none;
    border-radius: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
}

.post-content th,
.post-content td {
    padding: 16px;
    border: 2px solid var(--black);
    text-align: left;
}

.post-content th {
    background: var(--black);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Footer */
.post-footer {
    border-top: 2px solid var(--black);
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-author a {
    font-weight: 700;
}

.footer-copyright {
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 20px;
    }

    .post {
        padding: 40px 20px 80px;
    }

    .post-title {
        letter-spacing: -1px;
    }

    .post-content {
        font-size: 17px;
    }

    .post-content blockquote {
        padding: 24px;
        margin: 32px -20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
