/* ============================================================
   LSM Writes — custom design layer over TryGhost/Source theme
   Palette pulled from the bees2/bees5 hand-painted artwork:
     Sage green (bg)    #B8C49A
     Powder blue (dots) #7BA4C0
     Navy (bees)        #23204A
     Blush pink (wings) #E8B4C0
     Cream              #F5F2E8
   ============================================================ */

/* 1. Design tokens
/* ---------------------------------------------------------- */
:root {
    color-scheme: light only;   /* disable OS dark-mode entirely for this site */
    /* LSM brand colours */
    --lsm-sage:         #B8C49A;
    --lsm-sage-light:   #D4DFB8;
    --lsm-sage-muted:   #9AA888;
    --lsm-navy:         #23204A;
    --lsm-navy-light:   #3A3770;
    --lsm-blue:         #292465;
    --lsm-blue-light:   #827bd5;
    --lsm-blush:        #E8B4C0;
    --lsm-cream:        #a099d8;
    --lsm-cream-warm:   #EDE8D8;

    /* Override Source theme tokens */
    --background-color: var(--lsm-cream);
    --color-primary-text:    var(--lsm-navy);
    --color-secondary-text:  #5A5870;
    --color-border:          rgb(35 32 74 / 0.10);
    --color-dark-border:     rgb(35 32 74 / 0.30);

    /* Accent colour Ghost uses for nav & buttons — override in Ghost Design panel too */
    --ghost-accent-color: var(--lsm-blue);
}

/* 2. Page background
/* ---------------------------------------------------------- */
/*
   The bee pattern tile is loaded via Ghost's image storage.
   After uploading art/patterns/bees2_final.png in Ghost Admin → Settings → Design
   → Custom Header image (or any media upload), copy the URL here:
      --lsm-pattern-url: url('/content/images/2026/05/bees_pattern_v3.png');
   Leave the fallback solid colour if the tile is not yet uploaded.
*/
:root {
    --lsm-pattern-url: url('/content/images/2026/05/bees_pattern_v3.png');
}

body {
    background-color: var(--lsm-sage-light);
    background-image: var(--lsm-pattern-url);
    background-repeat: repeat;
    background-size: 472px 410px;   /* bees_pattern_v3.png: 472×410 native, 4 bees × 4 rotations */
}

/* 3. Typography
/* ---------------------------------------------------------- */
body {
    --font-sans:  "Nunito", "Quicksand", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Lora", "EB Garamond", Georgia, Times, serif;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--lsm-navy);
    letter-spacing: -0.01em;
}

/* 4. Navigation bar
/* ---------------------------------------------------------- */
.gh-navigation {
    background-color: var(--lsm-cream);
    border-bottom: 2px solid var(--lsm-sage);
}

/* Force logo-on-left layout regardless of Ghost Design setting */
.gh-navigation-inner {
    grid-template-columns: auto 1fr auto !important;
}
.gh-navigation-brand {
    grid-column-start: 1 !important;   /* logo always in the first column */
}
@media (min-width: 992px) {
    .gh-navigation-menu {
        margin-left: 16px !important;
        margin-right: 0 !important;
    }
}

.gh-navigation .gh-nav-logo,
.gh-navigation .gh-nav-site-icon {
    filter: none;
}

.gh-head-link,
.gh-nav-link {
    color: var(--lsm-navy);
    font-weight: 600;
}

.gh-head-link:hover,
.gh-nav-link:hover {
    color: var(--lsm-blue);
    text-decoration: none;
}

/* 5. Cards and content containers
/* ---------------------------------------------------------- */
.gh-card {
    background: var(--lsm-cream);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgb(35 32 74 / 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--lsm-sage);
}

.gh-card:hover {
    box-shadow: 0 6px 24px rgb(35 32 74 / 0.12);
    transform: translateY(-2px);
}

/* Card tag labels */
.gh-card-tag {
    color: var(--lsm-blue);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 6. Site header — strip the purple gradient / cover image background
/* ---------------------------------------------------------- */

/* Remove cover image entirely */
.gh-header-image { display: none !important; }

/* Reduce default 160px top/bottom padding on the landing header */
.gh-header.is-classic { padding-block: 60px !important; }

/* Remove the dark overlay Ghost adds over the image */
.gh-header.is-classic.has-image::before { display: none !important; }

/* Give the header the page cream/pattern background instead */
.gh-header.is-classic,
.gh-header.is-classic.has-image {
    background: transparent;
    margin-top: 0;
}

/* Make sure text stays readable (was white on dark image) */
.gh-header.is-classic.has-image .gh-header-inner { color: var(--lsm-navy); }
.gh-header.is-classic.has-image .gh-form { background-color: var(--lsm-cream); }
.gh-header.is-classic.has-image .gh-form-input,
.gh-header.is-classic.has-image button.gh-form-input,
.gh-header.is-classic.has-image .gh-form > svg { color: var(--lsm-navy); }

/* gh-form-input colours */
.gh-form-input {
    background-color: #847bcc !important;
    color: #eeecff !important;
}
.gh-form-input::placeholder {
    color: #eeecff !important;
    opacity: 1;
}

/* 6b. Featured post / hero
/* ---------------------------------------------------------- */
.gh-container.is-hero {
    background: var(--lsm-cream-warm);
    border-radius: 16px;
    padding: clamp(32px, 5vw, 64px);
    border: 2px solid var(--lsm-sage);
}

/* 7. Post / page body
/* ---------------------------------------------------------- */
.gh-content {
    background: var(--lsm-cream);
    border-radius: 14px;
    padding: clamp(32px, 5vw, 64px);
    box-shadow: 0 2px 16px rgb(35 32 74 / 0.06);
    border: 1px solid var(--lsm-sage);
}

/* Article typography */
.gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--lsm-navy);
}

.gh-content a {
    color: var(--lsm-navy-light);
    text-decoration: underline;
    text-decoration-color: var(--lsm-blue-light);
    text-underline-offset: 3px;
}

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

/* 8. Buttons and CTAs
/* ---------------------------------------------------------- */
.gh-btn,
.kg-signup-card-button,
.gh-subscribe-btn {
    background: var(--lsm-navy);
    color: var(--lsm-cream) !important;
    border-radius: 24px;
    border: none;
    font-weight: 700;
    padding: 0.65em 1.8em;
    transition: background 0.2s ease, transform 0.15s ease;
}

.gh-btn:hover,
.kg-signup-card-button:hover {
    background: var(--lsm-navy-light);
    transform: translateY(-1px);
}

/* Newsletter subscribe accent */
.gh-portal-trigger {
    background: var(--lsm-blue) !important;
}

/* 9. Tags / category chips
/* ---------------------------------------------------------- */
.gh-article-tag {
    background: var(--lsm-blue-light);
    color: var(--lsm-navy);
    border-radius: 20px;
    padding: 0.2em 0.9em;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* 10. Footer
/* ---------------------------------------------------------- */
.gh-footer {
    background-color: var(--lsm-navy);
    color: var(--lsm-cream);
    border-top: 4px solid var(--lsm-sage);
}

.gh-footer a {
    color: var(--lsm-blue-light);
}

.gh-footer a:hover {
    color: var(--lsm-cream);
}

/* Footer site name */
.gh-footer-title {
    color: var(--lsm-cream);
}

/* 11. Custom page class — child-development reference pages
/* ---------------------------------------------------------- */
.lsm-piaget-page,
.lsm-milestones-page,
.lsm-kohlberg-page,
.lsm-play-page,
.lsm-resilience-page {
    max-width: 800px;
    margin: 0 auto;
}

.lsm-piaget-page h2,
.lsm-milestones-page h2,
.lsm-kohlberg-page h2,
.lsm-play-page h2,
.lsm-resilience-page h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--lsm-sage);
    color: var(--lsm-navy);
}

.lsm-piaget-page h3,
.lsm-milestones-page h3,
.lsm-kohlberg-page h3,
.lsm-play-page h3,
.lsm-resilience-page h3 {
    color: var(--lsm-navy-light);
    margin-top: 1.8rem;
}

/* Development reference tables */
.lsm-play-page table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95em;
    margin: 1.5rem 0;
}

.lsm-play-page th {
    background: var(--lsm-navy);
    color: var(--lsm-cream);
    padding: 10px 14px;
    text-align: left;
}

.lsm-play-page td {
    border: 1px solid var(--lsm-sage);
    padding: 9px 14px;
    vertical-align: top;
}

.lsm-play-page tr:nth-child(even) td {
    background: var(--lsm-sage-light);
}

/* 12. Resilience page book lists
/* ---------------------------------------------------------- */
.lsm-resilience-page em {
    color: var(--lsm-navy-light);
    font-style: italic;
}

/* 13. About / author page accents
/* ---------------------------------------------------------- */
.lsm-about-page .lsm-badge {
    display: inline-block;
    background: var(--lsm-sage-light);
    border: 1px solid var(--lsm-sage);
    border-radius: 20px;
    padding: 0.3em 1em;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--lsm-navy);
    margin: 0.25em;
}

/* 14. Contact form styling
/* ---------------------------------------------------------- */
.lsm-contact input,
.lsm-contact textarea,
.lsm-contact select {
    width: 100%;
    border: 1.5px solid var(--lsm-sage);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 1rem;
    background: white;
    color: var(--lsm-navy);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.lsm-contact input:focus,
.lsm-contact textarea:focus {
    outline: none;
    border-color: var(--lsm-blue);
    box-shadow: 0 0 0 3px rgb(123 164 192 / 0.2);
}

.lsm-contact button[type=submit] {
    background: var(--lsm-navy);
    color: var(--lsm-cream);
    border: none;
    border-radius: 24px;
    padding: 0.7em 2.2em;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.lsm-contact button[type=submit]:hover {
    background: var(--lsm-navy-light);
    transform: translateY(-1px);
}

/* 15. Homepage feature strip
/* ---------------------------------------------------------- */
.lsm-feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 0 auto 3rem;
    padding: 0 max(var(--gh-gap, 4vw), 1.5rem);
    max-width: var(--gh-content-width, 1200px);
}

.lsm-feature {
    background: var(--lsm-cream);
    border: 1.5px solid var(--lsm-sage);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
}

.lsm-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(35 32 74 / 0.10);
}

.lsm-feature-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }

.lsm-feature h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--lsm-navy);
}

.lsm-feature p {
    font-size: 0.9rem;
    color: var(--color-secondary-text, #5A5870);
    margin-bottom: 0.9rem;
    line-height: 1.55;
}

.lsm-feature a {
    color: var(--lsm-blue);
    font-weight: 700;
    text-decoration: none;
}

.lsm-feature a:hover { text-decoration: underline; }

/* 15. Bee accent divider
/* ---------------------------------------------------------- */
.lsm-bee-divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--lsm-sage-muted);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
}

.lsm-bee-divider::before {
    content: "✦ 🐝 ✦";
    font-size: 1.2rem;
}
