/* Main CSS for Lensbase Minimal */

:root {
    --color-bg: #f8f8f8;
    --color-text: #000000;
    --color-border: #aaaaaa;
    --color-primary: #52a8cc;
    --font-mono: 'PT Mono', monospace;
    --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-max-width: 1000px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.gh-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

header.gh-head {
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
}

.gh-head-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gh-head-brand a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: lowercase;
}

nav.gh-head-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

nav.gh-head-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Post list rows */
.post-feed {
    display: flex;
    flex-direction: column;
}

.post-card {
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    background-color: #f0f0f0;
}

.post-card-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.post-card-excerpt {
    font-size: 1rem;
    color: #444;
    max-width: 800px;
}

/* Post content */
.gh-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.gh-article-header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.gh-article-tag {
    font-family: var(--font-mono);
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.gh-article-title {
    font-size: 3rem;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.gh-article-meta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #666;
}

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

/* Ghost Koenig Editor Classes */
.kg-width-wide {
    width: 100vw;
    max-width: 1200px;
    margin-left: calc(50% - 600px);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.kg-width-full img {
    width: 100%;
    height: auto;
}

.footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
}

/* Background Grid utility */
.bg-grid {
    background-image: repeating-linear-gradient(315deg,
            rgba(170, 170, 170, 0.1) 0,
            rgba(170, 170, 170, 0.1) 1px,
            transparent 0,
            transparent 50%);
    background-size: 16px 16px;
}

@media (max-width: 768px) {
    .container {
        border-left: none;
        border-right: none;
    }

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