/* ===================================
   The Wellness Journal - Core Stylesheet
   =================================== */

/* Reset + base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fafaf7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin: 2rem 0 0.8rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1.3em;
    font-size: 1rem;
}

a {
    color: #1d5a8f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

blockquote {
    border-left: 4px solid #d4a537;
    padding: 0.5em 0 0.5em 1.2em;
    margin: 1.8em 0;
    font-style: italic;
    color: #444;
    font-size: 1.05rem;
}

/* FTC / Editorial disclosure banner at top */
.ftc-banner {
    background: #fff8e6;
    border-bottom: 1px solid #e8dcb5;
    padding: 10px 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #6b5a20;
    text-align: center;
    line-height: 1.5;
}

.ftc-banner a {
    color: #6b5a20;
    font-weight: 500;
    text-decoration: underline;
}

/* Site header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e2d8;
    padding: 22px 20px;
    text-align: center;
}

.site-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.site-tagline {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    color: #777;
    font-style: italic;
    margin-top: 4px;
}

.main-nav {
    margin-top: 14px;
}

.main-nav a {
    margin: 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #1d5a8f;
    text-decoration: none;
}

/* Container widths */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px;
}

/* Article hero area */
.article-hero {
    margin-bottom: 28px;
}

.article-category {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.article-subtitle {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 24px;
}

.article-meta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    color: #777;
    padding: 12px 0;
    border-top: 1px solid #e5e2d8;
    border-bottom: 1px solid #e5e2d8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 8px;
    color: #bbb;
}

.article-meta-inline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin: 8px 0 16px;
}

.article-meta-inline span:not(:last-child)::after {
    content: '·';
    margin: 0 6px;
    color: #bbb;
}

/* Article body */
.article-body {
    font-size: 1rem;
}

.article-body h2 {
    margin: 2em 0 0.6em;
}

.article-body p {
    margin-bottom: 1.3em;
}

.article-body img {
    width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 2px;
}

.article-body figcaption {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

.article-body ol,
.article-body ul {
    margin: 0 0 1.3em 1.5em;
    font-size: 1rem;
}

.article-body li {
    margin-bottom: 0.5em;
}

/* CTA boxes */
.cta-box {
    background: #fff;
    border: 2px solid #1d5a8f;
    border-radius: 4px;
    padding: 26px 22px;
    margin: 32px 0;
    text-align: center;
}

.cta-box h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.cta-box p {
    color: #444;
    font-size: 0.95rem;
    margin: 0 0 18px;
}

.cta-button {
    display: inline-block;
    background: #1d5a8f;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 3px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #15466f;
    text-decoration: none;
}

/* Author box */
.author-box {
    background: #fff;
    border: 1px solid #e5e2d8;
    padding: 20px;
    margin: 36px 0 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-radius: 2px;
}

.author-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.author-text h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.author-role {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px !important;
}

.author-bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0 !important;
}

/* Homepage hero intro */
.hero-intro {
    text-align: center;
    padding: 30px 20px 40px;
    border-bottom: 1px solid #e5e2d8;
    margin-bottom: 40px;
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    max-width: 680px;
    margin: 0 auto 12px;
    line-height: 1.25;
}

.hero-sub {
    font-size: 1rem;
    color: #555;
    max-width: 560px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.5;
}

/* Featured article block on homepage */
.featured-article {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e2d8;
}

.featured-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    margin: 8px 0 14px;
    line-height: 1.2;
}

.featured-content h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: #1d5a8f;
}

.article-excerpt {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: #1d5a8f;
    font-weight: 500;
}

/* Article grid */
.article-grid-section {
    margin-bottom: 50px;
}

.section-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e2d8;
    font-weight: 500;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.article-card {
    background: #fff;
    padding: 24px;
    border: 1px solid #e5e2d8;
    border-radius: 2px;
}

.article-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    margin: 8px 0 10px;
    line-height: 1.3;
}

.article-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #1d5a8f;
}

.article-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

/* About author section on homepage */
.about-author-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e2d8;
    border-radius: 2px;
    margin-bottom: 40px;
}

.about-author-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.about-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.about-author-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.about-author-section p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: #2a2a2a;
    color: #aaa;
    padding: 40px 24px 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.7;
    margin-top: 60px;
}

.site-footer .container-wide {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 40px;
    padding: 0;
}

.site-footer h5 {
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-footer a {
    display: block;
    color: #aaa;
    text-decoration: none;
    padding: 2px 0;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-copyright {
    color: #777;
    font-size: 0.75rem;
    grid-column: span 4;
    padding-top: 24px;
    margin-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

/* Responsive */
@media (max-width: 760px) {
    html { font-size: 17px; }
    
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.4rem; }
    
    .container { padding: 28px 20px; }
    .container-wide { padding: 20px 16px; }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-content h2 { font-size: 1.5rem; }
    
    .main-nav a {
        margin: 0 6px;
        font-size: 0.7rem;
    }
    
    .site-footer .container-wide {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-copyright {
        grid-column: span 1;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-author-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-title { font-size: 1.4rem; }
    
    .cta-box { padding: 20px 16px; }
    .cta-box h3 { font-size: 1.1rem; }
    
    .hero-headline { font-size: 1.6rem; }
}
