/* ============================================================
   Zentree — Bohemian Chic Wellness Theme
   Deep forest sidebar · Warm parchment canvas · Editorial grid
   ============================================================ */

:root {
    --sidebar-width: 280px;

    /* Sidebar — deep forest */
    --sidebar-bg:          #243830;
    --sidebar-bg-inner:    #1E3028;
    --sidebar-text:        #A8CBBF;
    --sidebar-text-bright: #E8F2EE;
    --sidebar-accent:      #6ECECE;
    --sidebar-hover:       rgba(110, 206, 206, 0.12);
    --sidebar-border:      rgba(110, 206, 206, 0.16);

    /* Main canvas — warm parchment */
    --bg:          #FAF8F3;
    --card-bg:     #FFFFFF;
    --text:        #2C3830;
    --text-muted:  #637A70;
    --text-light:  #96B0A6;

    /* Accent palette */
    --teal:        #4BBFBF;
    --teal-dark:   #3A9A9A;
    --green:       #5A8C6E;
    --gold:        #C4A460;
    --blush:       #E8D5C4;

    /* Surfaces */
    --border:      #DDE8E2;
    --tag-bg:      #E6F2EC;
    --tag-text:    #2D6B52;

    /* Type */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Lora', Georgia, serif;
    --font-ui:      'Lato', -apple-system, sans-serif;

    /* Motion */
    --ease: 0.25s ease;

    /* Elevation */
    --shadow-sm:  0 1px 6px rgba(36, 56, 48, 0.07);
    --shadow-md:  0 4px 20px rgba(36, 56, 48, 0.11);
    --shadow-lg:  0 10px 40px rgba(36, 56, 48, 0.15);
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

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

a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.gh-viewport {
    display: flex;
    min-height: 100vh;
}

.gh-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    padding: 56px 48px 80px;
    background: var(--bg);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.gh-sidebar {
    width: var(--sidebar-width);
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    background: linear-gradient(175deg, var(--sidebar-bg) 0%, var(--sidebar-bg-inner) 100%);
    z-index: 200;
    transition: transform var(--ease);
    scrollbar-width: none;
}

.gh-sidebar::-webkit-scrollbar { display: none; }

.gh-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px 32px 40px;
}

.gh-sidebar-top {
    margin-bottom: 36px;
}

/* Site name */
.gh-site-title-link { display: block; }

.gh-site-logo {
    max-height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.gh-site-name {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.03em;
    color: var(--sidebar-text-bright);
    line-height: 1.15;
}

/* Ornament */
.gh-site-ornament {
    display: block;
    font-size: 0.6rem;
    color: var(--sidebar-accent);
    opacity: 0.6;
    letter-spacing: 0.3em;
    margin: 14px 0 12px;
}

.gh-site-tagline {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-style: italic;
    color: var(--sidebar-text);
    opacity: 0.7;
    line-height: 1.6;
}

/* Navigation */
.gh-nav {
    flex: 1;
}

.gh-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-nav .nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sidebar-text);
    border-left: 2px solid transparent;
    transition: all var(--ease);
}

.gh-nav .nav li a::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity var(--ease);
}

.gh-nav .nav li a:hover,
.gh-nav .nav li.nav-current a {
    color: var(--sidebar-accent);
    border-left-color: var(--sidebar-accent);
    background: var(--sidebar-hover);
}

.gh-nav .nav li a:hover::before,
.gh-nav .nav li.nav-current a::before {
    opacity: 1;
}

/* Sidebar botanical footer */
.gh-sidebar-footer {
    padding-top: 48px;
    text-align: center;
    color: var(--sidebar-accent);
}

.gh-botanical {
    width: 56px;
    height: 84px;
    opacity: 0.5;
}

/* ── Burger (mobile) ──────────────────────────────────────── */
.gh-burger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 300;
    width: 44px;
    height: 44px;
    background: var(--sidebar-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.gh-burger-box {
    width: 22px;
    height: 14px;
    position: relative;
    display: block;
}

.gh-burger-inner,
.gh-burger-inner::before,
.gh-burger-inner::after {
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: var(--sidebar-text-bright);
    left: 0;
    border-radius: 2px;
    transition: all var(--ease);
}

.gh-burger-inner          { top: 6px; }
.gh-burger-inner::before  { content: ''; top: -5px; }
.gh-burger-inner::after   { content: ''; top: 5px; }

.gh-burger[aria-expanded="true"] .gh-burger-inner              { background: transparent; }
.gh-burger[aria-expanded="true"] .gh-burger-inner::before      { transform: rotate(45deg); top: 0; }
.gh-burger[aria-expanded="true"] .gh-burger-inner::after       { transform: rotate(-45deg); top: 0; }

.gh-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 42, 36, 0.6);
    z-index: 150;
    opacity: 0;
    transition: opacity var(--ease);
    backdrop-filter: blur(2px);
}

/* ── Post Grid ───────────────────────────────────────────── */
.gh-feed {
    max-width: 1100px;
    margin: 0 auto;
}

.gh-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* First card spans full width as hero */
.gh-post-grid .gh-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.gh-post-grid .gh-card:first-child .gh-card-image-wrap {
    aspect-ratio: 4 / 3;
}

.gh-post-grid .gh-card:first-child .gh-card-title {
    font-size: 2.1rem;
    line-height: 1.2;
}

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

.gh-post-grid .gh-card:first-child .gh-card-content {
    padding: 32px 36px;
    justify-content: center;
}

/* ── Post Card ───────────────────────────────────────────── */
.gh-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}

.gh-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gh-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gh-card-image-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    flex-shrink: 0;
}

.gh-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gh-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D4E8DF 0%, #E8F2EE 50%, #D0E4D8 100%);
}

.gh-card:hover .gh-card-image {
    transform: scale(1.06);
}

.gh-card-content {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gh-card-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}

.gh-card-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.28;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.gh-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-card-meta {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-top: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ── Tag / Author headers ──────────────────────────────── */
.gh-tag-header,
.gh-author-header {
    text-align: center;
    padding-bottom: 52px;
}

.gh-tag-cover {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 32px;
    opacity: 0.85;
}

.gh-tag-name,
.gh-author-hero-name {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.gh-tag-description,
.gh-author-hero-bio {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.75;
}

.gh-author-hero-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ── Single Post ──────────────────────────────────────── */
.gh-article {
    max-width: 740px;
    margin: 0 auto;
}

.gh-article-header {
    text-align: center;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 44px;
}

.gh-article-tag-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
    transition: color var(--ease);
}

.gh-article-tag-label:hover { color: var(--teal-dark); }

.gh-article-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.18;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.gh-article-meta {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
}

.gh-article-image {
    margin-bottom: 48px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gh-article-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.gh-article-image figcaption {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    padding: 12px 0 0;
    font-style: italic;
}

/* ── Article Body ──────────────────────────────────────── */
.gh-content {
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.9;
    color: var(--text);
}

.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin: 2.4em 0 0.8em;
}

.gh-content h2 { font-size: 1.9rem; font-style: italic; }
.gh-content h3 { font-size: 1.55rem; }
.gh-content h4 { font-size: 1.25rem; }

.gh-content p { margin-bottom: 1.6em; }

.gh-content a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-decoration-color: rgba(58, 154, 154, 0.3);
    text-underline-offset: 3px;
    transition: color var(--ease), text-decoration-color var(--ease);
}

.gh-content a:hover {
    color: var(--teal);
    text-decoration-color: rgba(75, 191, 191, 0.5);
}

.gh-content blockquote {
    position: relative;
    border: none;
    padding: 8px 32px 8px 36px;
    margin: 2.4em 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.55;
}

.gh-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), var(--green));
    border-radius: 2px;
}

.gh-content img {
    border-radius: 6px;
    margin: 2.2em auto;
    box-shadow: var(--shadow-sm);
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.8em;
    margin-bottom: 1.6em;
}

.gh-content li { margin-bottom: 0.55em; }

.gh-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 3.5em 0;
}

.gh-content figure { margin: 2.4em 0; }

.gh-content figcaption {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin-top: 10px;
}

/* ── Article Footer ──────────────────────────────────── */
.gh-article-footer {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.gh-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.gh-tag-pill {
    padding: 5px 16px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background var(--ease), color var(--ease);
}

.gh-tag-pill:hover {
    background: #C4DDD2;
    color: #1E4F3C;
}

.gh-author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.gh-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.gh-author-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.gh-author-bio {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Static Page ─────────────────────────────────────── */
.gh-page {
    max-width: 740px;
    margin: 0 auto;
}

.gh-page-header {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.gh-page-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.gh-page-image {
    margin-bottom: 48px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ── Pagination ───────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 80px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.pagination a {
    padding: 9px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--teal-dark);
    transition: all var(--ease);
}

.pagination a:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    box-shadow: 0 4px 14px rgba(75, 191, 191, 0.3);
}

/* ── Error ─────────────────────────────────────────────── */
.gh-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.gh-error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 300;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
}

.gh-error-message {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.gh-error-link {
    font-family: var(--font-ui);
    color: var(--teal);
    text-decoration: underline;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}

/* ── Ghost Cards (kg-*) ────────────────────────────────── */
.gh-content .kg-image-card img       { border-radius: 6px; }
.gh-content .kg-width-wide           { margin-left: -80px; margin-right: -80px; }
.gh-content .kg-gallery-card         { border-radius: 6px; overflow: hidden; }
.gh-content .kg-bookmark-card        { border: 1px solid var(--border); border-radius: 6px; }
.gh-content .kg-callout-card         { border-radius: 6px; background: var(--tag-bg); padding: 20px 24px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gh-main { padding: 48px 32px 64px; }

    .gh-post-grid .gh-card:first-child {
        grid-template-columns: 1fr;
    }

    .gh-post-grid .gh-card:first-child .gh-card-image-wrap {
        aspect-ratio: 16 / 7;
    }

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

@media (max-width: 768px) {
    .gh-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .gh-sidebar.is-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .gh-burger   { display: flex; }
    .gh-backdrop { display: block; }

    .gh-backdrop.is-open { opacity: 1; }

    .gh-main {
        margin-left: 0;
        padding: 76px 20px 56px;
    }

    .gh-post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gh-post-grid .gh-card:first-child {
        grid-template-columns: 1fr;
    }

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

    .gh-tag-name,
    .gh-author-hero-name { font-size: 2.2rem; }

    .gh-content .kg-width-wide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 480px) {
    .gh-main { padding: 68px 16px 48px; }

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

    .gh-author-card { flex-direction: column; }
}
