/**
 * Minimalist Theme - Pure Simplicity
 * NO border-radius - sharp corners only
 */

:root {
    --color-primary: #000000;
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-muted: #666666;
    --color-border: #eeeeee;
    --font-heading: 'Newsreader', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 680px;
    --spacing: 120px;
}

[data-theme="dark"] {
    --color-primary: #ffffff;
    --color-bg: #111111;
    --color-text: #f5f5f5;
    --color-muted: #999999;
    --color-border: #222222;
}

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

html {
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.icon-theme {
    width: 16px;
    height: 16px;
    background: var(--color-text);
}

[data-theme="dark"] .icon-theme {
    background: var(--color-bg);
    border: 1px solid var(--color-text);
}

/* Main */
.main {
    min-height: calc(100vh - 300px);
}

/* Posts */
.posts {
    padding: var(--spacing) 0;
}

.post-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.post-date {
    font-size: 0.8rem;
    color: var(--color-muted);
    display: block;
    margin-bottom: 8px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-excerpt {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--color-border);
}

.pagination-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pagination-link:hover {
    text-decoration: underline;
}

/* Article */
.article-header {
    padding: 80px 0 48px;
    text-align: center;
}

.article-date {
    font-size: 0.8rem;
    color: var(--color-muted);
    display: block;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 24px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.article-content {
    padding-bottom: 64px;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2em 0 1em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5em 0 0.75em;
}

.article-content ul, .article-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.article-content blockquote {
    margin: 2em 0;
    padding-left: 24px;
    border-left: 2px solid var(--color-text);
    font-style: italic;
}

.article-content img {
    margin: 2em 0;
}

.article-content a {
    text-decoration: underline;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    margin: 2em 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.share {
    font-size: 0.85rem;
}

.share span {
    color: var(--color-muted);
    margin-right: 8px;
}

.share a:hover {
    text-decoration: underline;
}

/* Related */
.related {
    padding: 64px 0 var(--spacing);
    border-top: 1px solid var(--color-border);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.related .post-item {
    border-bottom: none;
    padding: 16px 0;
}

.related .post-title {
    font-size: 1.1rem;
}

/* Archive */
.archive {
    padding: var(--spacing) 0;
}

.archive-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.archive-count {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Search */
.search-page {
    padding: var(--spacing) 0;
}

.search-form {
    margin-bottom: 48px;
}

.search-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid var(--color-text);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    background: transparent;
    color: var(--color-text);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--color-muted);
}

.search-results-count {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 32px;
}

/* Page */
.page-header {
    padding: 80px 0 48px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
}

.page-content {
    padding-bottom: var(--spacing);
}

.page-content p {
    margin-bottom: 1.5em;
}

/* Error */
.error-page {
    padding: var(--spacing) 0;
    text-align: center;
}

.error-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.error-text {
    color: var(--color-muted);
    margin-bottom: 32px;
}

.error-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.error-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Empty */
.empty {
    text-align: center;
    color: var(--color-muted);
    padding: 64px 0;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    :root {
        --spacing: 80px;
    }

    .article-title, .page-title {
        font-size: 2rem;
    }

    .error-title {
        font-size: 4rem;
    }
}
