/* === FELT REAL — Shared Styles === */

:root {
    --bone-white: #F5F0EB;
    --warm-charcoal: #2D2926;
    --muted-terracotta: #C4796B;
    --soft-sage: #A3B18A;
    --dusty-rose: #D4A5A5;
    --deep-slate: #4A5568;
    --card-bg: white;
    --border-alpha: rgba(45,41,38,0.1);
    --card-border: rgba(45,41,38,0.08);
    --editor-note-bg: rgba(196, 121, 107, 0.04);
}

/* Dark mode — auto + manual toggle */
@media (prefers-color-scheme: dark) {
    :root:not(.light) {
        --bone-white: #1a1816;
        --warm-charcoal: #E8E2DC;
        --deep-slate: #9CA3AF;
        --card-bg: #242120;
        --border-alpha: rgba(245,240,235,0.08);
        --card-border: rgba(245,240,235,0.06);
        --editor-note-bg: rgba(196, 121, 107, 0.08);
    }
}
:root.dark {
    --bone-white: #1a1816;
    --warm-charcoal: #E8E2DC;
    --deep-slate: #9CA3AF;
    --card-bg: #242120;
    --border-alpha: rgba(245,240,235,0.08);
    --card-border: rgba(245,240,235,0.06);
    --editor-note-bg: rgba(196, 121, 107, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bone-white);
    color: var(--warm-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- TOP NAV (blog articles + about) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-alpha);
}
.header-wordmark {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--warm-charcoal);
    text-decoration: none;
    flex-shrink: 0;
}
.header-wordmark:hover { color: var(--muted-terracotta); }
.header-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.header-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--deep-slate);
    text-decoration: none;
    transition: color 0.3s ease;
}
.header-nav a:hover { color: var(--muted-terracotta); }
@media (max-width: 600px) {
    .header-nav { display: none; }
}

/* --- BREADCRUMB --- */
.breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--deep-slate);
    margin-bottom: 1.8rem;
    opacity: 0.65;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; color: var(--muted-terracotta); }
.breadcrumb .sep { margin: 0 0.5rem; }

/* --- ARTICLE --- */
article {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
article h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 2rem;
}
article h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
article h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}
article p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--warm-charcoal);
}
article ul, article ol {
    margin: 0 0 1.5rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}
article li { margin-bottom: 0.5rem; }
article strong { color: var(--warm-charcoal); }
article a { color: var(--muted-terracotta); text-decoration: underline; }
article a:hover { color: var(--warm-charcoal); }

.article-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--deep-slate);
    font-style: italic;
    margin-bottom: 2rem;
}

/* --- ARTICLE HEADER IMAGE --- */
.article-hero-img {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-bottom: 2.5rem;
    aspect-ratio: 21/9;
    object-fit: cover;
    filter: contrast(0.95) saturate(0.9);
}
@media (max-width: 600px) {
    .article-hero-img {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
    }
}

.article-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--deep-slate);
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
    opacity: 0.7;
}

.article-divider {
    text-align: center;
    padding: 2rem 0;
}
.article-divider span {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--muted-terracotta);
}

/* --- EDITOR NOTE --- */
.editor-note {
    border-left: 2px solid var(--muted-terracotta);
    padding: 1rem 1.2rem;
    margin-bottom: 2.5rem;
    background: var(--editor-note-bg);
}
.editor-note p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--deep-slate);
    margin-bottom: 0;
}
.editor-note .note-sig {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-terracotta);
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
}

/* --- RELATED ARTICLES --- */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-alpha);
}
.related-articles h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    margin-top: 0;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.related-card {
    background: var(--card-bg);
    padding: 1.2rem;
    text-decoration: none;
    color: var(--warm-charcoal);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45,41,38,0.08);
    border-color: var(--muted-terracotta);
}
.related-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}
.related-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--deep-slate);
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* --- INLINE CTA (mid-article) --- */
.inline-cta {
    border: 1px solid var(--border-alpha);
    padding: 1.8rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
    background: var(--card-bg);
}
.inline-cta p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--warm-charcoal);
}
.inline-cta .substack-wrap {
    margin: 0 auto;
}

/* --- ARTICLE CTA --- */
.article-cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-alpha);
    margin-top: 3rem;
}
.article-cta p {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.article-cta a {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--bone-white);
    background: var(--warm-charcoal);
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-cta a:hover { background: var(--muted-terracotta); }

/* --- SUBSTACK FORM --- */
.substack-wrap,
.substack-embed-wrap {
    margin: 2rem auto 0 auto;
    max-width: 480px;
}
.substack-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}
.substack-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--warm-charcoal);
    background: var(--card-bg);
    border: 1px solid var(--border-alpha);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s ease;
}
.substack-form input[type="email"]::placeholder {
    color: var(--deep-slate);
    opacity: 0.6;
}
.substack-form input[type="email"]:focus {
    border-color: var(--muted-terracotta);
}
.substack-form button {
    padding: 0.9rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #F5F0EB;
    background: var(--muted-terracotta);
    border: 1px solid var(--muted-terracotta);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.substack-form button:hover {
    background: var(--warm-charcoal);
    border-color: var(--warm-charcoal);
}
@media (max-width: 480px) {
    .substack-form {
        flex-direction: column;
    }
}
.substack-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--deep-slate);
    text-align: center;
    margin-top: 0.9rem;
    opacity: 0.65;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-alpha);
}
footer .footer-wordmark {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
footer .footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--deep-slate);
    letter-spacing: 0.05em;
}
footer .footer-links { margin-top: 1.5rem; }
footer .footer-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--deep-slate);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}
footer .footer-links a:hover { color: var(--muted-terracotta); }

/* --- THEME TOGGLE --- */
.theme-toggle {
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--deep-slate);
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    padding: 0.3rem 0.6rem;
}
.theme-toggle:hover { opacity: 1; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    article { padding: 3rem 1.5rem; }
}
