
/* GS22 Premium Theme CSS */
:root {
    --brand: var(--ghost-accent-color, #dd783f);
    --bg: #ffffff;
    --bg-alt: #f4f6f8;
    --text-main: #1a1f2e;
    --text-muted: #5e6b82;
    --border: #e2e6ea;
    
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Literata', Georgia, serif;
    
    --shadow-sm: 0 2px 8px rgba(11, 27, 61, 0.04);
    --shadow-md: 0 8px 24px rgba(11, 27, 61, 0.08);
    --shadow-hover: 0 16px 40px rgba(11, 27, 61, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }

/* Container */
.gh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gh-container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Header */
.gh-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.gh-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 16px;
}
.gh-logo { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-main); letter-spacing: -0.5px; display: flex; align-items: center; gap: 12px; }
.gh-logo img { max-height: 45px; width: auto; border-radius: 4px; }
.gh-nav { display: flex; align-items: center; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; }
.gh-nav ul.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.gh-nav a { color: var(--text-muted); }
.gh-nav a:hover { color: var(--brand); }
.gh-nav-actions { display: flex; gap: 16px; align-items: center; }
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.gh-btn:hover { background: #1a1f2e; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gh-btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.gh-btn-outline:hover { background: var(--bg-alt); border-color: var(--text-muted); color: var(--text-main); box-shadow: none; }

/* Search Icon */
.gh-search-btn { cursor: pointer; color: var(--text-main); display: flex; padding: 8px; border-radius: 50%; transition: var(--transition); }
.gh-search-btn:hover { background: var(--bg-alt); color: var(--brand); }
.gh-search-btn svg { width: 20px; height: 20px; }

/* Hero */
.gh-hero {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}
.gh-hero-home {
    background-size: cover;
    background-position: center;
    padding: 120px 24px;
    border-bottom: none;
}
.gh-hero-title { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -1px; }
.gh-hero-excerpt { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* Post Grid */
.gh-post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    padding: 60px 0;
}
.gh-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.gh-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.gh-card-image { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: var(--background-secondary); border-bottom: 1px solid var(--border); }
.gh-card-content { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.gh-card-tag { font-family: var(--font-heading); color: var(--brand); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.gh-card-title { font-size: 1.5rem; margin-bottom: 16px; }
.gh-card-excerpt { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gh-card-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border); }
.gh-card-author { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-main); }
.gh-card-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Post Layout */
.gh-article { padding: 60px 0; }
.gh-article-header { text-align: center; margin-bottom: 60px; }
.gh-article-tag { font-family: var(--font-heading); color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; display: inline-block; }
.gh-article-title { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -1px; }
.gh-article-meta { display: flex; align-items: center; justify-content: center; gap: 20px; font-family: var(--font-heading); color: var(--text-muted); }
.gh-article-author { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-main); }
.gh-article-author img { width: 40px; height: 40px; border-radius: 50%; }
.gh-article-image { width: 100%; height: auto; border-radius: 16px; margin-bottom: 60px; box-shadow: var(--shadow-md); }

/* Rich Text Formatting */
.gh-content { font-size: 1.25rem; }
.gh-content p { margin-bottom: 1.5em; }
.gh-content h2 { font-size: 2.2rem; margin: 2em 0 1em; }
.gh-content h3 { font-size: 1.8rem; margin: 1.5em 0 1em; }
.gh-content figure { margin: 1.5em 0; }
.gh-content .kg-embed-card { margin: 1em 0; }
.gh-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* Responsive Embeds (YouTube, Podbean, etc) */
.gh-content .kg-embed-card { margin: 1.5em 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
.gh-content iframe { width: 100%; max-width: 100%; border-radius: 8px; margin: 0; display: block; border: none; }
.gh-content iframe[src*="youtube.com"], 
.gh-content iframe[src*="youtu.be"], 
.gh-content iframe[src*="vimeo.com"] { aspect-ratio: 16 / 9; height: auto; }
.gh-content iframe[src*="podbean.com"] { height: 122px; aspect-ratio: auto; }

/* Overrides for Legacy Webflow HTML Imports */
.gh-content figure[class*="w-richtext-"] { padding-bottom: 0 !important; margin: 1.5em 0; }
.gh-content figure[class*="w-richtext-"] > div { padding-bottom: 0 !important; }
.gh-content figure[class*="w-richtext-"] iframe { position: static !important; }

.gh-content blockquote { border-left: 4px solid var(--brand); padding-left: 24px; font-style: italic; color: var(--text-muted); margin: 2em 0; font-size: 1.4rem; }

/* Read More Section */
.gh-readmore { background: var(--background-secondary, #f9f9f9); padding: 80px 0; margin-top: 80px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gh-readmore-header { text-align: center; margin-bottom: 60px; }
.gh-readmore-header h3 { font-size: 2.2rem; margin-bottom: 8px; font-family: var(--font-heading); color: var(--text-main); }
.gh-readmore-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Footer */
.gh-footer { background: var(--text-main); color: #fff; padding: 80px 24px 40px; margin-top: 0; text-align: center; }
.gh-footer-inner { max-width: 800px; margin: 0 auto; }
.gh-footer-title { font-size: 2rem; margin-bottom: 16px; color: #fff; }
.gh-footer-nav { margin: 40px 0; font-family: var(--font-heading); font-weight: 600; }
.gh-footer-nav ul.nav { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 24px; }
.gh-footer-nav a { color: rgba(255,255,255,0.7); }
.gh-footer-nav a:hover { color: #fff; }
.gh-footer-copyright { color: rgba(255,255,255,0.4); font-size: 0.9rem; font-family: var(--font-heading); }

/* Paywall */
.gh-paywall { text-align: center; padding: 60px 24px; background: var(--bg-alt); border-radius: 16px; margin: 40px 0; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.gh-paywall h3 { font-size: 2rem; margin-bottom: 16px; }
.gh-paywall p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 768px) {
    .gh-header-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 16px; }
    .gh-nav { display: flex; width: 100%; justify-content: center; }
    .gh-nav ul.nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .gh-nav-actions { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .gh-hero-title { font-size: 2.5rem; }
    .gh-article-title { font-size: 2.5rem; }
    .gh-post-feed { grid-template-columns: 1fr; }
    .gh-footer-nav ul.nav { flex-wrap: wrap; }
}

/* Koenig Editor Required Styles */
.kg-width-wide { width: 100%; max-width: 1040px; margin: 0 auto; }
.kg-width-full { width: 100vw; position: relative; left: calc(-50vw + 50%); margin: 0; }
