/* Calibrated Chaos - Magazine Theme with Image Overlays */

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

:root {
    --cream: #F5F1E8;
    --forest-green: #2C5F2D;
    --accent: #1A4D2E;
    --black: #0D0D0D;
    --gray: #5A5A5A;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.7;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Header */
.site-header {
    background-color: var(--cream);
    padding: 2rem 0;
    border-bottom: 4px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 3rem;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.05em;
    line-height: 1;
}

.site-logo span {
    color: var(--forest-green);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.nav-links a:hover {
    color: var(--forest-green);
}

/* Desk Tabs */
.desk-tabs {
    background-color: var(--black);
}

.desk-tabs-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
}

.desk-tab {
    flex: 1;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
    border-right: 1px solid rgba(245, 241, 232, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.desk-tab:last-child {
    border-right: none;
}

.desk-tab:hover {
    background-color: var(--forest-green);
}

/* Hero - Full Width with Overlay */
.site-hero {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, var(--black) 0%, var(--forest-green) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.site-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
    color: var(--cream);
}

.hero-title {
    font-size: clamp(5rem, 12vw, 14rem);
    line-height: 0.85;
    color: var(--cream);
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.hero-title .highlight {
    color: var(--forest-green);
}

.hero-tagline {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--cream);
    max-width: 700px;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-cta {
    display: inline-block;
    padding: 1.5rem 3rem;
    background-color: var(--forest-green);
    color: var(--cream);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s;
}

.hero-cta:hover {
    background-color: var(--cream);
    color: var(--black);
}

.hero-aside {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--cream);
    max-width: 500px;
}

.hero-aside h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-stat {
    margin-bottom: 2rem;
}

.hero-stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--forest-green);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Featured - Large Image with Text Overlay */
.featured-section {
    background-color: var(--cream);
    padding: 0;
}

.section-label {
    padding: 3rem 3rem 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--forest-green);
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.featured-article {
    position: relative;
    min-height: 700px;
    background: var(--forest-green);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13,13,13,0.3) 50%, rgba(13,13,13,0.9) 100%);
    z-index: 2;
}

.featured-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: relative;
    z-index: 3;
    padding: 5rem;
    color: var(--cream);
    max-width: 1000px;
}

.featured-tag {
    display: inline-block;
    background-color: var(--forest-green);
    color: var(--cream);
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.featured-content h2 {
    font-size: clamp(3rem, 5vw, 6rem);
    margin-bottom: 2rem;
    color: var(--cream);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-date {
    font-size: 0.9rem;
    color: rgba(245, 241, 232, 0.8);
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.featured-excerpt {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--cream);
    margin-bottom: 3rem;
    max-width: 700px;
}

.featured-cta {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--cream);
    color: var(--black);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s;
}

.featured-cta:hover {
    background-color: var(--forest-green);
    color: var(--cream);
}

/* Post Grid - Magazine Layout with Image Overlays */
.post-grid-section {
    padding: 6rem 3rem;
    background-color: var(--cream);
}

.post-grid-container {
    max-width: 1600px;
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* First card is large - 2x2 */
.post-grid .post-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.post-grid .post-card:first-child .post-card-image {
    min-height: 700px;
}

.post-grid .post-card:first-child .post-card-title {
    font-size: 3.5rem;
}

.post-grid .post-card:first-child .post-card-excerpt {
    font-size: 1.2rem;
    -webkit-line-clamp: 4;
}

.post-card {
    position: relative;
    background: var(--forest-green);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    transition: transform 0.3s;
}

.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13,13,13,0.2) 40%, rgba(13,13,13,0.95) 100%);
    z-index: 2;
    transition: opacity 0.3s;
}

.post-card:hover::before {
    opacity: 0.8;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--forest-green);
    color: var(--cream);
    padding: 0.5rem 1.2rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    z-index: 3;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.post-card-content {
    position: relative;
    z-index: 3;
    padding: 3rem;
    color: var(--cream);
    width: 100%;
}

.post-card-date {
    font-size: 0.75rem;
    color: rgba(245, 241, 232, 0.8);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.post-card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-card-title a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--forest-green);
}

.post-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(245, 241, 232, 0.9);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: var(--cream);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--cream);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--forest-green);
    color: var(--forest-green);
}

/* Single Post */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 3rem;
    background-color: var(--cream);
}

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

.post-header .post-card-tag {
    position: static;
    margin-bottom: 2rem;
}

.post-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.post-feature-image {
    margin: 3rem 0;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.post-body {
    font-size: 1.2rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 2rem;
}

.post-body h2 {
    font-size: 3rem;
    margin: 4rem 0 2rem;
}

.post-body h3 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
}

.post-body blockquote {
    border-left: 6px solid var(--forest-green);
    padding-left: 3rem;
    margin: 3rem 0;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.post-body img,
.post-body iframe {
    max-width: 100%;
    margin: 3rem 0;
}

.post-body ul,
.post-body ol {
    margin: 2rem 0 2rem 3rem;
}

.post-body li {
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--black);
    color: var(--cream);
    padding: 6rem 3rem 3rem;
    border-top: 4px solid var(--forest-green);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-about h3 {
    color: var(--forest-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.footer-about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(245, 241, 232, 0.85);
}

.footer-links h4 {
    color: var(--cream);
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(245, 241, 232, 0.7);
    text-decoration: none;
    font-size: 1rem;
    line-height: 2.5;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--forest-green);
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(245, 241, 232, 0.2);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(245, 241, 232, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    color: rgba(245, 241, 232, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--forest-green);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-grid .post-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .desk-tabs-container {
        flex-direction: column;
    }

    .desk-tab {
        border-right: none;
        border-bottom: 1px solid rgba(245, 241, 232, 0.2);
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-grid .post-card:first-child {
        grid-column: span 1;
    }

    .featured-content,
    .post-card-content {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Ghost Required Classes */
.kg-width-wide {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-wide img,
.kg-width-full img {
    width: 100%;
}
