/* Shared styles for EmoCare blog & content pages */

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

:root {
    --sage: #A8B5A0;
    --sage-deep: #6B7B5C;
    --terracotta: #D4856B;
    --terracotta-deep: #B8674E;
    --peach: #F4C2A1;
    --cream: #FBF7F2;
    --ink: #1F2A24;
    --ink-muted: #5C6B62;
    --ink-soft: #8A9489;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

/* Subtle blob accents */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 5% 5%, rgba(168, 181, 160, 0.18), transparent 40%),
        radial-gradient(circle at 95% 90%, rgba(244, 194, 161, 0.18), transparent 40%);
    pointer-events: none;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Top nav */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(31, 42, 36, 0.08);
}

.brand-text {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand-text em {
    font-style: italic;
    color: var(--sage-deep);
    font-weight: 500;
}

.topnav a:not(.brand-text) {
    color: var(--sage-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.3s var(--ease);
}

.topnav a:not(.brand-text):hover { color: var(--terracotta-deep); }

/* Article header */
.eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sage-deep);
    margin-bottom: 16px;
    padding: 5px 12px;
    background: rgba(168, 181, 160, 0.14);
    border-radius: 999px;
}

h1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: var(--ink);
}

.article-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 36px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.article-meta .sep { opacity: 0.5; }

.article-lead {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--ink-muted);
    margin-bottom: 40px;
    font-style: italic;
}

/* Body content */
article h2 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    margin-top: 44px;
    margin-bottom: 14px;
    color: var(--ink);
}

article h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: -0.015em;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--ink);
}

article p {
    margin-bottom: 18px;
    color: var(--ink-muted);
    font-size: 1.02rem;
}

article ul,
article ol {
    margin-bottom: 20px;
    padding-left: 22px;
    color: var(--ink-muted);
}

article li { margin-bottom: 8px; line-height: 1.7; }

article strong { color: var(--ink); font-weight: 600; }
article em { font-style: italic; }

article a {
    color: var(--sage-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s var(--ease);
}

article a:hover { color: var(--terracotta-deep); }

article blockquote {
    border-left: 3px solid var(--sage-deep);
    padding: 4px 0 4px 20px;
    margin: 26px 0;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.55;
}

/* Callouts */
.callout {
    background: rgba(168, 181, 160, 0.12);
    border-left: 3px solid var(--sage-deep);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 26px 0;
    color: var(--ink);
    font-size: 0.97rem;
    line-height: 1.65;
}

.callout.warn {
    background: rgba(184, 103, 78, 0.08);
    border-left-color: var(--terracotta-deep);
}

.callout strong { color: var(--ink); }

/* CTA card */
.cta-card {
    margin: 56px 0 24px;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 20px 40px -20px rgba(31, 42, 36, 0.18);
    text-align: center;
}

.cta-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.cta-card p {
    color: var(--ink-muted);
    font-size: 0.98rem;
    margin-bottom: 22px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--sage-deep), #4a5c43);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.98rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 10px 24px -8px rgba(107, 123, 92, 0.45);
}

.cta-btn:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 14px 32px -10px rgba(107, 123, 92, 0.55);
}

.cta-btn svg { width: 16px; height: 16px; }

/* Related / index post cards */
.related-section {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
}

.related-section h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 1.3rem;
}

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

.post-card {
    display: block;
    padding: 22px 22px 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: 0 8px 20px -12px rgba(31, 42, 36, 0.15);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -14px rgba(31, 42, 36, 0.22);
}

.post-card .eyebrow {
    margin-bottom: 12px;
    font-size: 0.66rem;
}

.post-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.post-card p {
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Footer */
footer.site-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(31, 42, 36, 0.08);
    color: var(--ink-soft);
    font-size: 0.85rem;
    text-align: center;
}

footer.site-footer p { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.85rem; }

footer.site-footer a {
    color: var(--sage-deep);
    text-decoration: none;
    font-weight: 500;
}

footer.site-footer a:hover { color: var(--terracotta-deep); }

footer.site-footer small {
    display: block;
    margin-top: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    font-size: 0.78rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .container { padding: 28px 18px 60px; }
    h1 { font-size: 1.9rem; }
    article h2 { font-size: 1.35rem; }
    article p { font-size: 0.98rem; }
    .cta-card { padding: 26px 22px; }
}
