/* Ledger & Light — Ghost Theme Override
   Brand colors derived from Sahara theme palette
   Loads after Casper's screen.css */

:root {
    /* Brand palette — Sahara */
    --ll-bg: #f5f0e8;
    --ll-bg2: #ffffff;
    --ll-bg-alt: #f9f6f0;
    --ll-header-bg: #e8e0d0;
    --ll-text: #5a4e3c;
    --ll-text-secondary: #8b7d6b;
    --ll-accent: #6b8f6b;
    --ll-accent2: #c4886b;
    --ll-accent3: #d4c5a9;
    --ll-link: #6b8f6b;
    --ll-link-hover: #567456;

    /* Override Casper defaults */
    --color-darkgrey: #5a4e3c;
    --color-midgrey: #8b7d6b;
    --color-lightgrey: #f5f0e8;
    --color-secondary-text: #8b7d6b;
    --color-border: #e8e0d0;
    --color-wash: #f9f6f0;

    /* Font: warm, readable serif body + clean sans headers */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: 'Lora', Georgia, Times, serif;
}

/* Load Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');


/* ---- Global ---- */

body {
    background: var(--ll-bg);
    color: var(--ll-text);
}

a {
    color: var(--ll-link);
}

a:hover {
    color: var(--ll-link-hover);
}


/* ---- Site Header ---- */

.site-header {
    background: var(--ll-header-bg);
    color: var(--ll-text);
}

.site-header-cover {
    opacity: 1;
}

/* Override ALL of Casper's .has-cover white text + accent overlays */
.has-cover .site-header-content,
.has-cover .site-header-content.left-aligned {
    background-color: transparent;
    color: var(--ll-text);
}

.site-header-content {
    color: var(--ll-text);
}

.has-cover .site-description,
.has-cover :is(.site-logo, .site-title) + .site-description,
.site-header-content .site-description {
    color: var(--ll-text-secondary);
}

.site-title,
.has-cover .site-title,
.site-header-content .site-logo + .site-description {
    color: var(--ll-text);
}

/* ---- Navigation: override .has-cover white nav ---- */

.has-cover:not(.home-template) .gh-head,
:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
    background-color: var(--ll-bg2);
    color: var(--ll-text);
}

.has-cover .gh-head a,
.has-cover .gh-head-menu .nav a {
    color: var(--ll-text);
}

.has-cover .gh-head a:hover,
.has-cover .gh-head-menu .nav a:hover {
    color: var(--ll-accent);
}


/* ---- Navigation ---- */

.gh-head {
    background: var(--ll-bg2);
    border-bottom: 1px solid var(--ll-header-bg);
}

.gh-head a {
    color: var(--ll-text);
}

.gh-head a:hover {
    color: var(--ll-accent);
}

.gh-head-logo img {
    max-height: 50px;
}

.gh-head-menu .nav a {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.gh-head-actions .gh-head-button {
    background: var(--ll-accent);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.gh-head-actions .gh-head-button:hover {
    background: var(--ll-link-hover);
}


/* ---- Post Feed (homepage cards) ---- */

.post-feed {
    gap: 3.2vmin;
}

.post-card {
    background: var(--ll-bg2);
    border: 1px solid var(--ll-header-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    box-shadow: 0 4px 20px rgba(90, 78, 60, 0.1);
    transform: translateY(-2px);
}

.post-card-image-link {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.post-card-content {
    padding: 2rem;
}

.post-card-title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ll-text);
}

.post-card-excerpt {
    font-family: var(--font-serif);
    color: var(--ll-text-secondary);
    line-height: 1.6;
}

.post-card-primary-tag {
    color: var(--ll-accent);
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.post-card-meta-date,
.post-card-meta-length {
    color: var(--ll-text-secondary);
    font-family: var(--font-sans);
}


/* ---- Single Post ---- */

.article-title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ll-text);
}

.article-excerpt {
    font-family: var(--font-serif);
    color: var(--ll-text-secondary);
    font-style: italic;
}

.gh-content {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--ll-text);
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ll-text);
}

.gh-content a {
    color: var(--ll-accent);
    text-decoration: underline;
    text-decoration-color: rgba(107, 143, 107, 0.3);
    text-underline-offset: 3px;
}

.gh-content a:hover {
    text-decoration-color: var(--ll-accent);
}

.gh-content blockquote {
    border-left: 3px solid var(--ll-accent);
    color: var(--ll-text-secondary);
    font-style: italic;
}

.gh-content code {
    background: var(--ll-bg-alt);
    border: 1px solid var(--ll-header-bg);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}

.gh-content pre {
    background: var(--ll-bg-alt);
    border: 1px solid var(--ll-header-bg);
    border-radius: 8px;
}


/* ---- Article Byline ---- */

.article-byline-content {
    color: var(--ll-text-secondary);
    font-family: var(--font-sans);
}

.author-name a {
    color: var(--ll-text);
}


/* ---- Tag Page ---- */

.post-card-primary-tag a {
    color: var(--ll-accent);
}

.tag-template .site-header-content {
    background: var(--ll-header-bg);
}


/* ---- Footer ---- */

.site-footer {
    background: var(--ll-header-bg);
    color: var(--ll-text);
    padding-top: 4vmin;
    padding-bottom: 4vmin;
    border-top: 1px solid rgba(90, 78, 60, 0.1);
}

.site-footer a {
    color: var(--ll-text-secondary);
}

.site-footer a:hover {
    color: var(--ll-accent);
}

.site-footer .copyright {
    color: var(--ll-text-secondary);
    font-family: var(--font-sans);
}

/* Custom CTA banner for Etsy */
.ll-etsy-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--ll-bg-alt);
    border-top: 1px solid var(--ll-header-bg);
    border-bottom: 1px solid var(--ll-header-bg);
    margin-top: 4vmin;
}

.ll-etsy-cta p {
    font-family: var(--font-sans);
    color: var(--ll-text-secondary);
    font-size: 1.5rem;
    margin: 0 0 1.2rem;
}

.ll-etsy-cta a.ll-cta-button {
    display: inline-block;
    background: var(--ll-accent);
    color: #fff;
    padding: 1rem 2.4rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ll-etsy-cta a.ll-cta-button:hover {
    background: var(--ll-link-hover);
    color: #fff;
}


/* ---- Subscribe / CTA ---- */

.footer-cta {
    background: var(--ll-bg-alt);
    border-top: 1px solid var(--ll-header-bg);
}

.footer-cta-title {
    font-family: var(--font-sans);
    color: var(--ll-text);
}


/* ---- Read More ---- */

.read-more-wrap {
    background: var(--ll-bg-alt);
    border-top: 1px solid var(--ll-header-bg);
}


/* ---- Responsive ---- */

@media (max-width: 767px) {
    .post-card-content {
        padding: 1.4rem;
    }

    .gh-content {
        font-size: 1.7rem;
    }
}


/* ---- Remove dark mode (brand is always light) ---- */

html.dark-mode body,
html.dark-mode .site-header,
html.dark-mode .gh-head {
    background: var(--ll-bg);
    color: var(--ll-text);
}
