/* ==========================================================================
   SHE Invests Ghost Theme — style.css
   Design system: Coral · Periwinkle · Sage · Gold · Cream
   Typography: DM Sans
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */

:root {
    /* Brand colors */
    --coral:            #FA8972;
    --coral-light:      #fba99a;
    --periwinkle:       #93A7EB;
    --periwinkle-light: #b3c2f2;
    --sage:             #657B5A;
    --sage-light:       #7d9470;
    --gold:             #EEBA2B;
    --gold-light:       #f2cc5e;
    --cream:            #FAF6EE;
    --brown-dark:       #2C2416;
    --brown:            #4A3F2F;

    /* Typography */
    --font-sans: 'DM Sans', sans-serif;

    /* Layout */
    --max-width:     1200px;
    --max-width-narrow: 800px;
    --padding-x:     5%;
    --radius-card:   20px;
    --radius-btn:    50px;
    --radius-image:  16px;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

body {
    background: var(--cream);
    color: var(--brown);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

a:hover {
    color: var(--coral-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */

.si-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--padding-x);
    padding-right: var(--padding-x);
}

.si-container--narrow {
    max-width: var(--max-width-narrow);
}

.si-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .si-section {
        padding: 5rem 0;
    }
}


/* --------------------------------------------------------------------------
   4. HEADER / NAVBAR
   -------------------------------------------------------------------------- */

.si-header {
    background: var(--periwinkle);
    position: sticky;
    top: 0;
    z-index: 50;
}

.si-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;  /* h-24 = 6rem = 96px */
}

.si-header-logo img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.si-header-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.si-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .si-nav {
        display: flex;
    }
}

.si-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.si-nav-link {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.2s;
}

.si-nav-link:hover {
    opacity: 0.8;
    color: #fff;
}

.si-nav-link--active {
    opacity: 1;
    border-bottom: 2px solid #fff;
}

/* Mobile toggle */
.si-mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .si-mobile-toggle {
        display: none;
    }
}

/* Mobile nav */
.si-mobile-nav {
    background: var(--periwinkle);
    padding: 0 var(--padding-x) 1rem;
}

@media (min-width: 768px) {
    .si-mobile-nav {
        display: none !important;
    }
}

.si-mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.si-mobile-nav-link {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
}


/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.si-btn {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.si-btn:hover {
    opacity: 0.9;
}

.si-btn--coral {
    background: var(--coral);
    color: #fff;
}

.si-btn--coral:hover {
    color: #fff;
}

.si-btn--sage {
    background: var(--sage);
    color: #fff;
}

.si-btn--full {
    display: block;
    width: 100%;
}


/* --------------------------------------------------------------------------
   6. COLOR BAR
   -------------------------------------------------------------------------- */

.si-color-bar {
    display: flex;
    height: 12px;
}

.si-color-bar__strip {
    flex: 1;
}

.si-color-bar__strip--coral      { background: var(--coral); }
.si-color-bar__strip--periwinkle { background: var(--periwinkle); }
.si-color-bar__strip--sage       { background: var(--sage); }
.si-color-bar__strip--gold       { background: var(--gold); }


/* --------------------------------------------------------------------------
   7. SECTION HERO (Journal listing header)
   -------------------------------------------------------------------------- */

.si-section--hero {
    background: linear-gradient(180deg, var(--periwinkle) 0%, var(--cream) 100%);
    text-align: center;
    padding: 4rem 0 3rem;
}

.si-section__label {
    color: var(--coral);
    font-style: italic;
    font-size: 18px;
    margin-bottom: 0.5rem;
}

.si-section__heading {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .si-section__heading {
        font-size: 42px;
    }
}

.si-section__subtext {
    color: var(--brown);
    font-size: 17px;
    line-height: 1.75;
    max-width: 500px;
    margin: 0 auto;
}


/* --------------------------------------------------------------------------
   8. POST GRID (Index / Tag / Author pages)
   -------------------------------------------------------------------------- */

.si-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .si-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .si-post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --------------------------------------------------------------------------
   9. POST CARD
   -------------------------------------------------------------------------- */

.si-post-card__link {
    text-decoration: none;
    display: block;
}

.si-post-card__image-wrap {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 5;
    background: #fff;
    position: relative;
}

.si-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.si-post-card__link:hover .si-post-card__image {
    transform: scale(1.05);
}

.si-post-card__content {
    padding: 0;
}

.si-post-card__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
}

/* Category color variants — use Ghost tag slugs */
.si-tag--my-journey          { color: var(--coral); }
.si-tag--mindset-empowerment { color: var(--periwinkle); }
.si-tag--investment-education { color: var(--sage); }
.si-tag--community           { color: var(--gold); }

.si-post-card__title {
    color: var(--brown-dark);
    font-size: 20px;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.si-post-card__link:hover .si-post-card__title {
    color: var(--coral);
}

.si-post-card__excerpt {
    color: var(--brown);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --------------------------------------------------------------------------
   10. PAGINATION
   -------------------------------------------------------------------------- */

.si-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 63, 47, 0.1);
}

.si-pagination__btn {
    color: var(--brown-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.si-pagination__btn:hover {
    color: var(--coral);
}

.si-pagination__info {
    color: var(--brown);
    font-size: 15px;
}


/* --------------------------------------------------------------------------
   11. POST DETAIL (single post page)
   -------------------------------------------------------------------------- */

/* Post hero header — gradient matching index hero */
.si-section--hero-post {
    text-align: left;
    padding: 2.5rem 0 3rem;
}

.si-post__back--hero {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.si-post__back--hero:hover {
    color: #fff;
}

.si-post__title--hero {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .si-post__title--hero {
        font-size: 42px;
    }
}

.si-post__meta--hero {
    color: rgba(255, 255, 255, 0.7);
}

.si-post {
    padding: 3rem 0 4rem;
}

.si-post__back {
    display: inline-block;
    color: var(--brown-dark);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.si-post__back:hover {
    color: var(--coral);
}

.si-post__header {
    margin-bottom: 2rem;
}

.si-post__title {
    color: var(--brown-dark);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .si-post__title {
        font-size: 42px;
    }
}

.si-post__meta {
    color: var(--brown);
    font-size: 15px;
    opacity: 0.7;
}

.si-post__reading-time {
    opacity: 0.7;
}

.si-post__feature-image {
    margin-bottom: 2.5rem;
}

.si-post__feature-image img {
    border-radius: var(--radius-image);
    width: 100%;
}

.si-post__feature-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--brown);
    opacity: 0.6;
    margin-top: 0.75rem;
}

.si-post__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 63, 47, 0.1);
}


/* --------------------------------------------------------------------------
   12. POST CONTENT (Ghost-rendered HTML)
   -------------------------------------------------------------------------- */

.si-post__content h1 {
    color: var(--brown-dark);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.si-post__content h2 {
    color: var(--brown-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.si-post__content h3 {
    color: var(--brown-dark);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.si-post__content p {
    color: var(--brown);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.si-post__content a {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.si-post__content a:hover {
    color: var(--coral-light);
}

.si-post__content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.si-post__content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.si-post__content li {
    color: var(--brown);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.si-post__content blockquote {
    border-left: 4px solid var(--periwinkle);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(74, 63, 47, 0.8);
    font-size: 18px;
    line-height: 1.8;
}

.si-post__content hr {
    border: none;
    border-top: 1px solid rgba(74, 63, 47, 0.1);
    margin: 2.5rem 0;
}

.si-post__content img {
    border-radius: var(--radius-image);
    margin: 2rem 0;
    width: 100%;
}

.si-post__content figure {
    margin: 2rem 0;
}

.si-post__content figure img {
    margin: 0;
}

.si-post__content figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--brown);
    opacity: 0.6;
    margin-top: 0.75rem;
}

/* Ghost editor card styles */
.si-post__content .kg-card {
    margin: 2rem 0;
}

.si-post__content .kg-image-card img {
    border-radius: var(--radius-image);
}

.si-post__content .kg-width-wide {
    max-width: 1000px;
    margin-left: calc(50% - 500px);
    margin-right: calc(50% - 500px);
}

@media (max-width: 1040px) {
    .si-post__content .kg-width-wide {
        margin-left: calc(-1 * var(--padding-x));
        margin-right: calc(-1 * var(--padding-x));
    }
}

.si-post__content .kg-width-full {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.si-post__content .kg-bookmark-card {
    border: 1px solid rgba(74, 63, 47, 0.15);
    border-radius: var(--radius-image);
    overflow: hidden;
}

.si-post__content .kg-bookmark-card a {
    text-decoration: none;
}

.si-post__content .kg-callout-card {
    background: rgba(147, 167, 235, 0.1);
    border-radius: var(--radius-image);
    padding: 1.25rem 1.5rem;
}


/* --------------------------------------------------------------------------
   13. PAGE (static pages)
   -------------------------------------------------------------------------- */

.si-page {
    padding: 3rem 0 4rem;
}

.si-page__title {
    color: var(--brown-dark);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .si-page__title {
        font-size: 42px;
    }
}


/* --------------------------------------------------------------------------
   14. AUTHOR PAGE
   -------------------------------------------------------------------------- */

.si-author__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #fff;
}


/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */

.si-footer {
    background: linear-gradient(180deg, var(--cream) 0%, var(--periwinkle) 100%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 2.5rem 0;
}

.si-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
    text-align: center;
}

.si-footer-inner p {
    margin-bottom: 0.75rem;
}

.si-footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.si-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.si-footer-links a:hover {
    color: #fff;
}

.si-footer-divider {
    opacity: 0.4;
}


/* --------------------------------------------------------------------------
   16. CATEGORY SECTIONS (Index page — sectioned by tag)
   -------------------------------------------------------------------------- */

.si-category-section {
    border-top: 1px solid rgba(74, 63, 47, 0.1);
}

.si-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.si-category-title {
    color: var(--brown-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .si-category-title {
        font-size: 32px;
    }
}

.si-category-title--coral      { color: var(--coral); }
.si-category-title--sage       { color: var(--sage); }
.si-category-title--periwinkle { color: var(--periwinkle); }
.si-category-title--gold       { color: var(--gold); }

.si-category-more {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.si-category-more:hover {
    opacity: 0.7;
}

.si-category-more--coral      { color: var(--coral); }
.si-category-more--sage       { color: var(--sage); }
.si-category-more--periwinkle { color: var(--periwinkle); }
.si-category-more--gold       { color: var(--gold); }


/* --------------------------------------------------------------------------
   17. CATEGORY GRID (1 large + 2 small)
   -------------------------------------------------------------------------- */

.si-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .si-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Large card spans full width on top */
    .si-category-grid .si-post-card--large {
        grid-column: 1 / -1;
    }
}


/* --------------------------------------------------------------------------
   18. POST CARD — LARGE VARIANT
   -------------------------------------------------------------------------- */

.si-post-card__link--large {
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .si-post-card__link--large {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
        align-items: center;
    }
}

.si-post-card__image-wrap--large {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .si-post-card__image-wrap--large {
        margin-bottom: 0;
    }
}

.si-post-card__content--large {
    padding: 0;
}

.si-post-card__title--large {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .si-post-card__title--large {
        font-size: 28px;
    }
}

.si-post-card__excerpt--large {
    font-size: 16px;
    line-height: 1.75;
    -webkit-line-clamp: 4;
    margin-bottom: 0.75rem;
}

.si-post-card__meta {
    color: var(--brown);
    font-size: 14px;
    opacity: 0.6;
    margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   19. UTILITIES
   -------------------------------------------------------------------------- */

/* Ghost notification bar override — match brand */
.gh-notification {
    background: var(--periwinkle) !important;
    font-family: var(--font-sans) !important;
}
