/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --text-primary: #1a1a1a;
    --text-secondary: #505050;
    --text-tertiary: #888;
    --accent: #c0392b;
    --accent-hover: #a93226;
    --bg: #fafaf8;
    --bg-card: #ffffff;
    --border: #e8e6e1;
    --border-light: #f0eeea;
    --max-width: 640px;
}
body { font-family: 'Lora', Georgia, serif; background: var(--bg); color: var(--text-primary); line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ========== HEADER ========== */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.site-title { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--text-primary); text-decoration: none; }
.site-title span { color: var(--accent); }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s; }
.header-nav a:hover, .header-nav a.nav-current { color: var(--text-primary); }
.search-trigger { display: flex; align-items: center; gap: 5px; border: none; background: none; padding: 0; font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; letter-spacing: 0.3px; transition: color 0.2s; }
.search-trigger:hover { color: var(--text-primary); }
.search-trigger svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.subscribe-btn { font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600; color: white !important; background: var(--accent); padding: 7px 18px; border-radius: 4px; text-decoration: none; letter-spacing: 0.4px; text-transform: uppercase; transition: background 0.2s; }
.subscribe-btn:hover { background: var(--accent-hover); color: white !important; }

/* ========== MAIN ========== */
main { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========== LANDING PAGE ========== */
.landing { padding: 80px 0 60px; text-align: center; }
.landing-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; border: 3px solid var(--border); }
.landing h1 { font-family: 'Lora', Georgia, serif; font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.25; }
.landing .landing-desc { font-size: 18px; color: var(--text-secondary); line-height: 1.65; max-width: 520px; margin: 0 auto 32px; }
.cta-button-large { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 600; padding: 14px 36px; background: var(--accent); color: white; border: none; border-radius: 4px; cursor: pointer; letter-spacing: 0.4px; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.cta-button-large:hover { background: var(--accent-hover); color: white; }
.cta-sub { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: var(--text-tertiary); margin-top: 12px; }
.social-proof { padding: 40px 0; border-top: 1px solid var(--border-light); }
.social-proof-label { font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px; text-align: center; }
.testimonial { max-width: 480px; margin: 0 auto 24px; text-align: center; }
.testimonial blockquote { font-size: 16px; font-style: italic; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; border: none; padding: 0; }
.testimonial cite { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: var(--text-tertiary); font-style: normal; }
.landing-what { padding: 40px 0; border-top: 1px solid var(--border-light); text-align: left; }
.landing-what h2 { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 600; margin-bottom: 16px; text-align: center; }
.what-item { margin-bottom: 16px; font-size: 16.5px; color: var(--text-secondary); line-height: 1.65; }
.what-item strong { color: var(--text-primary); }

/* ========== POST LIST ========== */
.post-list { padding-top: 40px; }
.post-item { padding: 32px 0; border-bottom: 1px solid var(--border-light); }
.post-item:first-child { padding-top: 0; }
.post-meta { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.post-meta .category { color: var(--accent); font-weight: 600; }
.post-item h2 { font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.35; margin-bottom: 10px; letter-spacing: -0.3px; }
.post-item h2 a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.post-item h2 a:hover { color: var(--accent); }
.post-excerpt { font-size: 16.5px; color: var(--text-secondary); line-height: 1.65; }
.tag-header { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.tag-header h1 { font-family: 'Lora', Georgia, serif; font-size: 28px; font-weight: 700; }
.tag-description { font-size: 16px; color: var(--text-secondary); margin-top: 8px; }

/* ========== SINGLE POST ========== */
.post-single { padding-top: 48px; padding-bottom: 60px; }
.post-single .post-meta { margin-bottom: 14px; }
.post-single h1 { font-family: 'Lora', Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 20px; }
.post-subtitle { font-family: 'Lora', Georgia, serif; font-size: 18px; font-style: italic; color: var(--text-secondary); line-height: 1.55; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }

/* ========== POST BODY ========== */
.post-body p { font-size: 17px; line-height: 1.75; margin-bottom: 24px; }
.post-body h2 { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 600; margin-top: 40px; margin-bottom: 16px; }
.post-body h3 { font-family: 'Lora', Georgia, serif; font-size: 19px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: 28px 0; padding: 4px 0 4px 24px; font-style: italic; color: var(--text-secondary); }
.post-body blockquote p { font-size: 16.5px; color: var(--text-secondary); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--accent-hover); }
.post-body img { max-width: 100%; margin: 28px 0; border-radius: 2px; }
.post-body ul, .post-body ol { margin-bottom: 24px; padding-left: 24px; }
.post-body li { font-size: 17px; line-height: 1.75; margin-bottom: 8px; }
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.kg-card { margin: 28px 0; }
.kg-image-card img { max-width: 100%; border-radius: 2px; }

/* ========== PAGE CONTENT ========== */
.page-content { padding-top: 48px; padding-bottom: 60px; }
.page-content h1 { font-family: 'Lora', Georgia, serif; font-size: 30px; font-weight: 700; margin-bottom: 24px; }

/* ========== SUBSCRIBE CTA ========== */
.subscribe-cta { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 36px 32px; text-align: center; margin: 48px 0; }
.subscribe-cta h3 { font-family: 'Lora', Georgia, serif; font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.subscribe-cta p { font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }
.cta-button { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 600; padding: 10px 24px; background: var(--accent); color: white; border: none; border-radius: 4px; cursor: pointer; letter-spacing: 0.4px; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.cta-button:hover { background: var(--accent-hover); color: white; }

/* ========== SEARCH OVERLAY ========== */
.search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(250,250,248,0.98); z-index: 1000; overflow-y: auto; }
.search-overlay.active { display: block; }
.search-overlay-inner { max-width: 700px; margin: 0 auto; padding: 40px 24px; }
.search-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.search-input { font-family: 'Lora', Georgia, serif; font-size: 22px; border: none; outline: none; background: transparent; flex: 1; color: var(--text-primary); }
.search-input::placeholder { color: var(--text-tertiary); }
.search-close { font-family: 'Source Sans 3', sans-serif; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--text-tertiary); line-height: 1; transition: color 0.15s; }
.search-close:hover { color: var(--text-primary); }
.search-results-count { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.search-result-item { padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.search-result-item h3 { font-family: 'Lora', Georgia, serif; font-size: 20px; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.search-result-item h3 a { color: var(--text-primary); text-decoration: none; transition: color 0.15s; }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-excerpt { font-family: 'Lora', Georgia, serif; font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: space-between; padding: 32px 0; border-top: 1px solid var(--border-light); }
.pagination-link { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.pagination-link:hover { color: var(--accent-hover); }

/* ========== FOOTER ========== */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 20px; text-align: center; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-inner p { font-family: 'Source Sans 3', sans-serif; font-size: 13px; color: var(--text-tertiary); line-height: 1.8; }
.footer-inner a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.footer-inner a:hover { color: var(--accent); }

/* ========== PORTAL OVERRIDES ========== */
.gh-portal-triggerbtn-iframe { display: none !important; }

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .header-inner { padding: 14px 16px; }
    .header-nav { gap: 14px; }
    .landing h1 { font-size: 28px; }
    .landing .landing-desc { font-size: 16px; }
    .post-single h1 { font-size: 28px; }
    .post-item h2 { font-size: 21px; }
    .subscribe-cta { padding: 28px 20px; }
    .search-overlay-inner { padding: 24px 16px; }
    .search-input { font-size: 18px; }
}
