:root {
    --off-black: #1a1a1a;
    --off-white: #f5f5f0;
    --border: #e0e0d8;
    --text-muted: #666;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off-white);
    color: var(--off-black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
}

.site-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--off-black);
    text-decoration: none;
}

.site-header nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.site-header nav .menu .menu-item {
    position: relative;
}

.site-header nav .menu .menu-item > a {
    color: var(--off-black);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.site-header nav .menu .menu-item > a:hover {
    text-decoration: underline;
}

.site-header nav .menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.5;
}

.site-header nav .menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}

.site-header nav .menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.site-header nav .menu .sub-menu .menu-item > a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.site-header nav .menu .sub-menu .menu-item > a:hover {
    background: var(--off-white);
    text-decoration: none;
}

.site-header nav .menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.site-main {
    flex: 1;
    padding: 3rem 1.5rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.meta span,
.meta a {
    margin-left: 0.5rem;
}

.meta a {
    color: var(--off-black);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-card:last-child {
    border-bottom: none;
}

.featured-image {
    margin-bottom: 1.5rem;
}

.featured-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.post-card-image {
    margin-bottom: 1rem;
}

.post-card-image a {
    display: block;
}

.post-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.post-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: var(--off-black);
    text-decoration: none;
}

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

.excerpt {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.content {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.category-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: auto;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Page Builder Layout System */
.page-section {
    margin-bottom: 2rem;
}

.page-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-row:last-child {
    margin-bottom: 0;
}

.page-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.page-block {
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.page-block:last-child {
    margin-bottom: 0;
}

.page-block-text:empty {
    display: none;
}

.page-block-image-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.page-block-video-player {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    background: #000;
}

.video-embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

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

/* Responsive adjustments for columns */
@media (max-width: 768px) {
    .page-row {
        flex-direction: column;
        gap: 0;
    }

    .page-column {
        flex: none !important;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.5rem;
    }

    .site-main {
        padding: 2rem 1rem;
    }
}
