/**
 * Olive Grid Template - CSS
 * Modern Minimalist Editorial — Grid-first, sharp corners, olive accent, side navigation.
 * No shadows. No gradients. Sharp 0px radius. Tonal layering + borders for depth.
 */

/* ==========================================================================
   1. CSS Variables (:root)
   ========================================================================== */
:root {
    /* Colors — from Stitch DESIGN.md */
    --og-primary: #3e5219;
    --og-primary-container: #556b2f;
    --og-primary-fixed: #d2eca2;
    --og-bg: #f9faf7;
    --og-surface: #f9faf7;
    --og-surface-low: #f3f4f1;
    --og-surface-container: #edeeeb;
    --og-card: #ffffff;
    --og-border: #c5c8b8;
    --og-outline: #75796b;
    --og-text: #191c1b;
    --og-text-secondary: #45483c;
    --og-text-muted: #75796b;
    --og-inverse-surface: #2e312f;
    --og-inverse-on-surface: #f0f1ee;
    --og-secondary: #586247;

    /* Spacing — from Stitch */
    --og-base: 8px;
    --og-gap-sm: 8px;
    --og-gap-md: 16px;
    --og-gap-lg: 24px;
    --og-gap-xl: 48px;
    --og-gap-xxl: 80px;
    --og-container: 1280px;
    --og-reading-col: 720px;
    --og-gutter: 24px;
    --og-margin-desktop: 64px;
    --og-margin-mobile: 20px;
    --og-sidenav-width: 256px;

    /* Typography */
    --og-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --og-size-display: 64px;
    --og-size-display-m: 40px;
    --og-size-headline-lg: 40px;
    --og-size-headline-md: 24px;
    --og-size-body-lg: 18px;
    --og-size-body-md: 16px;
    --og-size-label: 14px;
    --og-size-caption: 12px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--og-bg);
    color: var(--og-text);
    font-family: var(--og-font);
    font-size: var(--og-size-body-md);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--og-primary); }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* SEO: visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
.og-brand-text {
    font-size: var(--og-size-headline-md);
    font-weight: 700;
    color: var(--og-primary);
    line-height: 1.3;
    margin: 0;
    font-family: var(--og-font);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.og-body { position: relative; }
.og-container {
    max-width: var(--og-container);
    margin: 0 auto;
    padding: 0 var(--og-margin-mobile);
}
@media (min-width: 768px) {
    .og-container { padding: 0 var(--og-margin-desktop); }
}

/* Main content shifts right on desktop for side nav */
.og-main {
    min-height: 100vh;
    padding-top: 64px; /* mobile header height */
}
@media (min-width: 768px) {
    .og-main {
        margin-left: var(--og-sidenav-width);
        padding-top: 64px; /* topbar height */
    }
}

/* ==========================================================================
   5. Side Navigation (Desktop)
   ========================================================================== */
.og-sidenav {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--og-sidenav-width);
    height: 100vh;
    background: var(--og-surface);
    border-right: 1px solid var(--og-border);
    z-index: 40;
    flex-direction: column;
    padding: 32px;
    gap: var(--og-base);
}
@media (min-width: 768px) {
    .og-sidenav { display: flex; }
}
.og-sidenav-brand {
    margin-bottom: 48px;
}
.og-sidenav-brand .og-brand-link {
    display: block;
    text-decoration: none;
}
.og-brand-tagline {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-secondary);
    opacity: 0.7;
    margin: 4px 0 0;
    letter-spacing: 0.05em;
}
.og-sidenav-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}
.og-sidenav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--og-secondary);
    transition: color 0.2s ease;
    padding: 4px 0;
}
.og-sidenav-link:hover {
    color: var(--og-primary);
}

/* ==========================================================================
   6. Mobile Header
   ========================================================================== */
.og-mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    background: rgba(249, 250, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--og-border);
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--og-margin-mobile);
}
@media (min-width: 768px) {
    .og-mobile-header { display: none; }
}
.og-mobile-brand {
    text-decoration: none;
}
.og-mobile-brand-text {
    font-size: var(--og-size-headline-md);
    font-weight: 700;
    color: var(--og-primary);
}
.og-mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.og-mobile-search-btn {
    background: none;
    border: none;
    color: var(--og-primary);
    cursor: pointer;
    padding: 4px;
}
.og-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.og-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--og-primary);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Mobile Overlay
   ========================================================================== */
.og-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--og-surface);
    z-index: 100;
    flex-direction: column;
    padding: 32px;
    overflow-y: auto;
}
.og-mobile-overlay.og-open { display: flex; }
.og-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}
.og-overlay-close {
    background: none;
    border: none;
    color: var(--og-primary);
    cursor: pointer;
    padding: 4px;
}
.og-overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}
.og-overlay-link {
    font-size: var(--og-size-headline-lg);
    font-weight: 600;
    color: var(--og-text-secondary);
    transition: color 0.2s ease;
}
.og-overlay-link:hover { color: var(--og-primary); }
.og-overlay-search {
    margin-top: auto;
    padding-top: 32px;
}
.og-overlay-search-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--og-border);
    background: var(--og-card);
    font-family: var(--og-font);
    font-size: var(--og-size-body-md);
    outline: none;
    transition: border-color 0.2s ease;
}
.og-overlay-search-input:focus { border-color: var(--og-primary); }

/* ==========================================================================
   Desktop Top Bar
   ========================================================================== */
.og-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: var(--og-sidenav-width);
    right: 0;
    z-index: 40;
    height: 64px;
    background: rgba(249, 250, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--og-border);
}
@media (min-width: 768px) {
    .og-topbar { display: flex; }
}
.og-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 var(--og-margin-desktop);
    max-width: var(--og-container);
}
.og-topbar-left {}
.og-topbar-search {
    display: flex;
    align-items: center;
    position: relative;
}
.og-search-input {
    width: 240px;
    padding: 8px 36px 8px 16px;
    border: 1px solid var(--og-border);
    background: var(--og-surface-low);
    font-family: var(--og-font);
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.2s ease;
}
.og-search-input:focus { border-color: var(--og-primary); border-width: 2px; }
.og-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--og-text-secondary);
    cursor: pointer;
    padding: 4px;
}
.og-search-submit:hover { color: var(--og-primary); }

/* ==========================================================================
   7. Hero Section (Homepage)
   ========================================================================== */
.og-page-content {
    padding: 48px 0 80px;
}
@media (min-width: 768px) {
    .og-page-content { padding: 80px 0 120px; }
}
.og-hero {
    margin-bottom: var(--og-gap-xxl);
}
.og-hero-card { position: relative; }
.og-hero-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--og-border);
    margin-bottom: 32px;
    transition: border-color 0.3s ease;
}
.og-hero-img-wrap:hover { border-color: var(--og-primary); }
.og-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.og-hero-img-wrap:hover img { transform: scale(1.05); }
.og-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(62, 82, 25, 0.05);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.og-hero-badge {
    position: absolute;
    top: 32px;
    left: 32px;
    background: var(--og-primary);
    color: #fff;
    padding: 8px 16px;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.og-hero-body {
    max-width: 768px;
}
.og-hero-title {
    font-size: var(--og-size-display-m);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: var(--og-text);
}
@media (min-width: 768px) {
    .og-hero-title { font-size: var(--og-size-display); }
}
.og-hero-title a { color: inherit; text-decoration: none; }
.og-hero-title a:hover { color: var(--og-primary); }
.og-hero-excerpt {
    font-size: var(--og-size-body-lg);
    line-height: 1.6;
    color: var(--og-text-secondary);
    margin: 0 0 32px;
}
.og-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--og-primary);
}
.og-accent-line {
    width: 48px;
    height: 1px;
    background: var(--og-primary);
    flex-shrink: 0;
}
.og-meta-sep { color: var(--og-text-muted); }

/* ==========================================================================
   8. Article Feed (Vertical List)
   ========================================================================== */
.og-latest {
    border-top: 1px solid var(--og-border);
    padding-top: var(--og-gap-xxl);
}
.og-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 64px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--og-border);
}
.og-section-title {
    font-size: var(--og-size-headline-lg);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--og-primary);
}
.og-article-feed {
    display: flex;
    flex-direction: column;
}
.og-article-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--og-gutter);
    padding: 48px 0;
    border-bottom: 1px solid var(--og-border);
    transition: background-color 0.3s ease;
}
@media (min-width: 768px) {
    .og-article-item {
        grid-template-columns: 5fr 7fr;
    }
}
.og-article-item:hover { background-color: var(--og-surface-container); }
.og-article-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--og-border);
    transition: border-color 0.3s ease;
}
.og-article-item:hover .og-article-thumb { border-color: var(--og-primary); }
.og-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.og-article-item:hover .og-article-thumb img {
    filter: grayscale(0);
    transform: scale(1.05);
}
.og-article-thumb--search { aspect-ratio: 16 / 9; }
.og-article-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.og-category-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--og-primary);
    border: 1px solid var(--og-primary);
    padding: 2px 8px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}
.og-category-chip:hover {
    background: var(--og-primary);
    color: #fff;
}
.og-article-title {
    font-size: var(--og-size-headline-md);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 16px;
    transition: color 0.2s ease;
}
.og-article-item:hover .og-article-title { color: var(--og-primary); }
.og-article-title a { color: inherit; text-decoration: none; }
.og-article-excerpt {
    font-size: var(--og-size-body-md);
    line-height: 1.6;
    color: var(--og-text-secondary);
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-muted);
    font-style: italic;
}

/* ==========================================================================
   9. Single Post Styles
   ========================================================================== */
.og-single-header {
    max-width: var(--og-container);
    margin: 0 auto 48px;
}
.og-accent-bar {
    width: 48px;
    height: 4px;
    background: var(--og-primary);
    margin-bottom: 24px;
}
.og-breadcrumb {
    margin-bottom: 16px;
}
.og-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--og-text-secondary);
}
.og-breadcrumb a { color: var(--og-text-secondary); }
.og-breadcrumb a:hover { color: var(--og-primary); }
.og-breadcrumb-sep { color: var(--og-border); }
.og-single-title {
    font-size: var(--og-size-display-m);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    max-width: 900px;
}
@media (min-width: 768px) {
    .og-single-title { font-size: var(--og-size-display); }
}
.og-single-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.og-byline-avatar {
    width: 40px;
    height: 40px;
    background: var(--og-surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--og-surface);
}
.og-byline-name {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text);
}
.og-byline-divider {
    width: 1px;
    height: 32px;
    background: var(--og-border);
}
.og-byline-date,
.og-byline-read {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-secondary);
}

/* Single Hero Image */
.og-single-hero {
    width: 100%;
    margin: 48px 0 64px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .og-single-hero { margin: 48px 0 80px; }
}
.og-single-hero img {
    width: 100%;
    height: auto;
    max-height: 716px;
    object-fit: cover;
}

/* Reading Column */
.og-single-content {
    max-width: var(--og-container);
    margin: 0 auto;
}
.og-reading-col {
    max-width: var(--og-reading-col);
}

/* Tags */
.og-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--og-border);
}
.og-tag {
    padding: 8px 16px;
    border: 1px solid var(--og-border);
    font-size: var(--og-size-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--og-text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease;
    cursor: default;
}
.og-tag:hover {
    border-color: var(--og-primary);
    color: var(--og-primary);
}

/* ==========================================================================
   10. Archive / Category Styles
   ========================================================================== */
.og-archive-header {
    border-left: 4px solid var(--og-primary);
    padding-left: 24px;
    margin-bottom: 64px;
}
.og-archive-label {
    display: block;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--og-primary);
    margin-bottom: 8px;
}
.og-archive-title {
    display: block;
    font-size: var(--og-size-headline-lg);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--og-text);
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .og-archive-title { font-size: var(--og-size-display); }
}
.og-archive-desc {
    font-size: var(--og-size-body-lg);
    line-height: 1.6;
    color: var(--og-text-secondary);
    max-width: 640px;
    margin: 0 0 16px;
}
.og-archive-count {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-muted);
}

/* ==========================================================================
   11. Search Styles
   ========================================================================== */
.og-search-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--og-border);
}
.og-search-label {
    display: block;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--og-primary);
    margin-bottom: 8px;
}
.og-search-info {
    font-size: var(--og-size-headline-lg);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.og-search-query { color: var(--og-primary); font-weight: 700; }
.og-search-count {
    font-size: var(--og-size-body-md);
    color: var(--og-text-secondary);
}
.og-search-form-wrap {
    margin-bottom: 48px;
}
.og-inline-search {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 480px;
}
.og-inline-search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid var(--og-border);
    background: var(--og-card);
    font-family: var(--og-font);
    font-size: var(--og-size-body-md);
    outline: none;
    transition: border-color 0.2s ease;
}
.og-inline-search-input:focus { border-color: var(--og-primary); border-width: 2px; }
.og-inline-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--og-text-secondary);
    cursor: pointer;
}
.og-inline-search-btn:hover { color: var(--og-primary); }

/* ==========================================================================
   12. 404 Page
   ========================================================================== */
.og-error {
    text-align: center;
    padding: 120px 0;
}
.og-error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--og-primary);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.og-error h1 {
    font-size: var(--og-size-headline-lg);
    font-weight: 600;
    margin: 0 0 16px;
}
.og-error p {
    color: var(--og-text-secondary);
    font-size: var(--og-size-body-lg);
    margin: 0 0 32px;
}
.og-back-link {
    display: inline-block;
    font-size: var(--og-size-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--og-primary);
    border: 2px solid var(--og-primary);
    padding: 12px 32px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.og-back-link:hover {
    background: var(--og-primary);
    color: #fff;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.og-footer {
    background: var(--og-surface);
    border-top: 1px solid var(--og-border);
    padding: 48px 0;
}
@media (min-width: 768px) {
    .og-footer { margin-left: var(--og-sidenav-width); }
}
.og-footer-inner {
    max-width: var(--og-container);
    margin: 0 auto;
    padding: 0 var(--og-margin-desktop);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--og-base);
}
@media (min-width: 768px) {
    .og-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
.og-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
@media (min-width: 768px) {
    .og-footer-brand { align-items: flex-start; }
}
.og-footer-name {
    font-size: var(--og-size-headline-md);
    font-weight: 700;
    color: var(--og-primary);
}
.og-footer-copy {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-secondary);
    margin: 0;
}
.og-footer-links {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
@media (min-width: 768px) {
    .og-footer-links { margin-top: 0; }
}
.og-footer-link {
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--og-text-secondary);
    transition: color 0.2s ease;
    text-underline-offset: 4px;
}
.og-footer-link:hover {
    color: var(--og-primary);
    text-decoration: underline;
}
.og-footer-bottom {
    max-width: var(--og-container);
    margin: 24px auto 0;
    padding: 24px var(--og-margin-desktop) 0;
    border-top: 1px solid var(--og-border);
    text-align: center;
}
.og-footer-bottom p {
    font-size: var(--og-size-caption);
    color: var(--og-text-muted);
    margin: 0;
}

/* ==========================================================================
   14. Pagination — CMS standard classes
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 80px 0 0;
    padding-top: 48px;
    border-top: 1px solid var(--og-border);
    --pagination-border: var(--og-border);
    --pagination-text: var(--og-text-secondary);
    --pagination-accent: var(--og-primary);
    --pagination-hover-bg: rgba(62, 82, 25, 0.06);
    --pagination-muted: var(--og-text-muted);
}
.pagination-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-item { list-style: none; }
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--pagination-border);
    font-size: var(--og-size-label);
    font-weight: 600;
    color: var(--pagination-text);
    text-decoration: none;
    line-height: 1;
    transition: all 0.15s ease;
}
.pagination-link:hover {
    border-color: var(--pagination-accent);
    color: var(--pagination-accent);
    background: var(--pagination-hover-bg);
}
.pagination-link--active,
.pagination-item.active .pagination-link {
    background: var(--pagination-accent);
    border-color: var(--pagination-accent);
    color: #fff;
}
.pagination-dots { list-style: none; }
.pagination-dots span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: var(--og-size-label);
    color: var(--pagination-muted);
    cursor: default;
}
.pagination-prev,
.pagination-next { white-space: nowrap; }

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */
.og-empty {
    text-align: center;
    padding: 80px 0;
}
.og-empty-title {
    font-size: var(--og-size-headline-md);
    font-weight: 600;
    margin: 0 0 8px;
}
.og-empty p {
    color: var(--og-text-secondary);
    margin: 0 0 24px;
}

/* ==========================================================================
   16. Prose/Content Styles
   ========================================================================== */
.og-prose {
    font-size: var(--og-size-body-lg);
    line-height: 1.6;
    color: var(--og-text-secondary);
}
.og-prose > *:first-child { margin-top: 0; }
.og-prose h2 {
    font-size: var(--og-size-headline-lg);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--og-primary);
    margin: 64px 0 24px;
}
.og-prose h3 {
    font-size: var(--og-size-headline-md);
    font-weight: 600;
    line-height: 1.3;
    color: var(--og-text);
    margin: 48px 0 16px;
}
.og-prose h4 {
    font-size: var(--og-size-body-lg);
    font-weight: 600;
    color: var(--og-text);
    margin: 32px 0 12px;
}
.og-prose p {
    margin: 0 0 24px;
    line-height: 1.6;
}
.og-prose ul,
.og-prose ol {
    padding-left: 24px;
    margin: 0 0 24px;
    list-style: disc;
}
.og-prose ol { list-style: decimal; }
.og-prose li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.og-prose blockquote {
    border-left: 4px solid var(--og-primary);
    padding: 16px 0 16px 32px;
    margin: 48px 0;
    font-size: var(--og-size-headline-md);
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--og-primary);
}
.og-prose blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: var(--og-size-label);
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--og-text-secondary);
}
.og-prose pre {
    background: var(--og-inverse-surface);
    color: var(--og-inverse-on-surface);
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
}
.og-prose code {
    background: var(--og-surface-container);
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
}
.og-prose pre code {
    background: none;
    padding: 0;
}
.og-prose img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
}
.og-prose a {
    color: var(--og-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.og-prose a:hover { opacity: 0.8; }
.og-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}
.og-prose th,
.og-prose td {
    padding: 12px 16px;
    border: 1px solid var(--og-border);
    text-align: left;
    font-size: var(--og-size-body-md);
}
.og-prose th {
    background: var(--og-surface-low);
    font-weight: 600;
}
.og-prose hr {
    border: none;
    border-top: 1px solid var(--og-border);
    margin: 48px 0;
}
.og-prose figure {
    margin: 48px 0;
}
.og-prose figcaption {
    margin-top: 16px;
    font-size: var(--og-size-label);
    font-style: italic;
    color: var(--og-text-secondary);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.og-related {
    margin-top: 80px;
    padding-top: 64px;
    border-top: 1px solid var(--og-border);
}
.og-related-label {
    font-size: var(--og-size-headline-md);
    font-weight: 600;
    margin: 0 0 32px;
    color: var(--og-text);
}
.og-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--og-gutter);
}
@media (min-width: 768px) {
    .og-related-grid { grid-template-columns: repeat(3, 1fr); }
}
.og-related-card {
    border: 1px solid var(--og-border);
    transition: border-color 0.3s ease;
}
.og-related-card:hover { border-color: var(--og-primary); }
.og-related-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.og-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.og-related-card:hover .og-related-img img {
    filter: grayscale(0);
    transform: scale(1.05);
}
.og-related-body {
    padding: 20px;
}
.og-related-title {
    font-size: var(--og-size-body-md);
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 12px;
}
.og-related-title a { color: inherit; }
.og-related-title a:hover { color: var(--og-primary); }
.og-related-body time {
    font-size: var(--og-size-caption);
    font-weight: 600;
    color: var(--og-text-muted);
    font-style: italic;
}

/* ==========================================================================
   Static Page
   ========================================================================== */
.og-page-header {
    max-width: 800px;
    margin-bottom: 48px;
}
.og-page-title {
    font-size: var(--og-size-display-m);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
@media (min-width: 768px) {
    .og-page-title { font-size: var(--og-size-display); }
}
.og-page-image {
    margin: 0 0 48px;
    overflow: hidden;
}
.og-page-image img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   17. Responsive (@media queries)
   ========================================================================== */
@media (max-width: 767px) {
    .og-hero-badge {
        top: 16px;
        left: 16px;
        padding: 4px 12px;
        font-size: var(--og-size-caption);
    }
    .og-hero-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    .og-accent-line { display: none; }
    .og-single-byline {
        gap: 12px;
    }
    .og-byline-divider { height: 24px; }
    .og-related-grid { gap: 16px; }
    .og-footer-inner { padding: 0 var(--og-margin-mobile); }
    .og-footer-bottom { padding: 24px var(--og-margin-mobile) 0; }
    .og-archive-header {
        padding-left: 16px;
    }
}

/* Scrollbar (Stitch fidelity) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--og-bg); }
::-webkit-scrollbar-thumb { background: var(--og-border); }
::-webkit-scrollbar-thumb:hover { background: var(--og-primary); }
