/* =====================================================================
   MEADOW · Ghost theme · screen.css
   AI-powered investment education — calm editorial design
   Font: Bricolage Grotesque (display) + Public Sans (body) + JetBrains Mono (meta)
   ===================================================================== */

:root {
    /* core */
    --ink: #0F1A14;
    --ink-2: #2B362F;
    --ink-3: #5C6A5F;
    --ink-4: #8A9690;
    --paper: #F7F4EC;
    --paper-2: #EFEAD9;
    --bg: #FBFAF6;
    --line: #E6E1D2;
    --line-2: #D7CFB8;

    /* accents — overridden inline by Ghost custom settings */
    --green: #0E8A4A;
    --green-deep: #0A6B39;
    --green-soft: #DAEEDF;
    --lime: #C7F25C;
    --lime-deep: #B0DB45;

    /* category tints (slugified to match Ghost tag slugs) */
    --wealth: #F6D58A;       --wealth-soft: #FBEAB8;     --wealth-ink: #5C4310;
    --stock: #B7E5C9;        --stock-soft: #DEF2E5;      --stock-ink: #0E4D2A;
    --stock-spotlight: var(--stock); --stock-spotlight-soft: var(--stock-soft); --stock-spotlight-ink: var(--stock-ink);
    --edu: #C9DDF0;          --edu-soft: #E4EEF8;        --edu-ink: #1B3D63;
    --education: var(--edu); --education-soft: var(--edu-soft); --education-ink: var(--edu-ink);
    --financial-education: var(--edu); --financial-education-soft: var(--edu-soft); --financial-education-ink: var(--edu-ink);
    --retire: #DCD0F0;       --retire-soft: #ECE5F7;     --retire-ink: #3A2D5E;
    --retirement: var(--retire); --retirement-soft: var(--retire-soft); --retirement-ink: var(--retire-ink);
    --news: #F3C5BB;         --news-soft: #FADCD4;       --news-ink: #6B2A1C;

    --f-display: "Bricolage Grotesque", system-ui, sans-serif;
    --f-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--f-sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.site-main { padding-bottom: 80px; max-width: 1440px; margin: 0 auto; }

/* ============ UTIL ============ */
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.serif { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }

/* ============ COVER ARTWORK ============ */
.cover { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 14px; background: var(--green-soft); }
.cover.has-image img { width: 100%; height: 100%; object-fit: cover; }
.cover .shp { position: absolute; background: rgba(15,26,20,.7); }
.cover .shp.disc, .cover .shp:not(.bar):not(.pill) { border-radius: 50%; }
.cover .shp.bar { border-radius: 14px; }
.cover .shp.pill { border-radius: 999px; }
.cover.cat-wealth, .cover.cat-wealth-building { background: var(--wealth); } .cover.cat-wealth .shp, .cover.cat-wealth-building .shp { background: var(--wealth-ink); }
.cover.cat-stock, .cover.cat-stock-spotlight { background: var(--stock); } .cover.cat-stock .shp, .cover.cat-stock-spotlight .shp { background: var(--stock-ink); }
.cover.cat-edu, .cover.cat-education, .cover.cat-financial-education { background: var(--edu); } .cover.cat-edu .shp, .cover.cat-education .shp, .cover.cat-financial-education .shp { background: var(--edu-ink); }
.cover.cat-retire, .cover.cat-retirement { background: var(--retire); } .cover.cat-retire .shp, .cover.cat-retirement .shp { background: var(--retire-ink); }
.cover.cat-news { background: var(--news); } .cover.cat-news .shp { background: var(--news-ink); }

/* ============ PILL ============ */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: white; text-decoration: none; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: white; }
.pill.cat-wealth, .pill.cat-wealth-building { background: var(--wealth-ink); }
.pill.cat-stock, .pill.cat-stock-spotlight { background: var(--stock-ink); }
.pill.cat-edu, .pill.cat-education, .pill.cat-financial-education { background: var(--edu-ink); }
.pill.cat-retire, .pill.cat-retirement { background: var(--retire-ink); }
.pill.cat-news { background: var(--news-ink); }
.pill.tonal-wealth, .pill.tonal-wealth-building { background: var(--wealth-soft); color: var(--wealth-ink); }
.pill.tonal-stock, .pill.tonal-stock-spotlight { background: var(--stock-soft); color: var(--stock-ink); }
.pill.tonal-edu, .pill.tonal-education, .pill.tonal-financial-education { background: var(--edu-soft); color: var(--edu-ink); }
.pill.tonal-retire, .pill.tonal-retirement { background: var(--retire-soft); color: var(--retire-ink); }
.pill.tonal-news { background: var(--news-soft); color: var(--news-ink); }

/* ============ AI BADGE ============ */
.ai-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ai-badge .sparkle { width: 10px; height: 10px; display: inline-block; background: radial-gradient(circle, var(--green) 30%, transparent 32%) center/100% 4px no-repeat, radial-gradient(circle, var(--green) 30%, transparent 32%) center/4px 100% no-repeat; }

/* ============ NAV ============ */
.nav { display: flex; align-items: center; gap: 24px; padding: 22px 56px; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav .logo { font-family: var(--f-display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nav .logo .leaf { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(-30deg); display: inline-block; }
.nav .logo .logo-img { height: 36px; width: auto; display: block; }
.nav .links { display: flex; gap: 4px; margin-left: 28px; border-left: 1px solid var(--line); padding-left: 28px; }
.nav .links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s; }
.nav .links a:hover { background: var(--paper); }
.nav .links a.active { background: var(--ink); color: white; }
.nav .spacer { flex: 1; }
.nav .icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: white; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.nav .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), var(--green)); border: 2px solid white; box-shadow: 0 0 0 1px var(--line); }

/* ---- nav dropdown (Categories) ---- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: -10px; right: -10px; height: 12px; }
.nav-cat-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px); background: white; border: 1px solid var(--line); border-radius: 16px; padding: 6px; min-width: 210px; box-shadow: 0 8px 32px -8px rgba(15,26,20,0.14); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 100; }
.nav-dropdown:hover .nav-cat-menu, .nav-dropdown:focus-within .nav-cat-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-cat-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .12s; }
.nav-cat-item:hover { background: var(--bg); color: var(--ink); }
.nav-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--paper); border: 1.5px solid var(--line-2); }
.nav-cat-item.cat-wealth .nav-cat-dot, .nav-cat-item.cat-wealth-building .nav-cat-dot { background: var(--wealth); border-color: var(--wealth-ink); }
.nav-cat-item.cat-stock .nav-cat-dot, .nav-cat-item.cat-stock-spotlight .nav-cat-dot { background: var(--stock); border-color: var(--stock-ink); }
.nav-cat-item.cat-edu .nav-cat-dot, .nav-cat-item.cat-education .nav-cat-dot, .nav-cat-item.cat-financial-education .nav-cat-dot { background: var(--edu); border-color: var(--edu-ink); }
.nav-cat-item.cat-retire .nav-cat-dot, .nav-cat-item.cat-retirement .nav-cat-dot { background: var(--retire); border-color: var(--retire-ink); }
.nav-cat-item.cat-news .nav-cat-dot { background: var(--news); border-color: var(--news-ink); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 0; background: var(--ink); color: white; transition: transform .12s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--green); }
.btn.primary:hover { background: var(--green-deep); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--paper); }

/* ============ CHIP ============ */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: white; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.chip .count { font-family: var(--f-mono); font-size: 10px; opacity: .6; }

/* ============ ARTICLE CARD ============ */
.article-card { position: relative; transition: transform .2s; }
.article-card:hover { transform: translateY(-3px); }
.article-card .card-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.article-card .meta-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; margin-bottom: 8px; }
.article-card .pill,
.article-card .ai-badge { position: relative; z-index: 1; }
.article-card h4 { font-family: var(--f-display); font-size: 22px; font-weight: 400; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 8px; text-wrap: pretty; }
.article-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin: 0 0 12px; }
.article-card .card-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.article-card .card-footer .read { color: var(--green); font-weight: 600; }

/* ============ WELCOME ============ */
.welcome { margin: 28px 56px 0; padding: 28px 40px; background: var(--paper); border-radius: 22px; text-align: center; }
.welcome .eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); margin-bottom: 14px; }
.welcome h1 { font-family: var(--f-display); font-size: 38px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.welcome h1 em { font-style: italic; color: var(--green); }
.welcome h1 .lime-pop { background: var(--lime); padding: 0 8px; border-radius: 6px; font-style: italic; }

/* ============ HERO ============ */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin: 56px 56px 0; align-items: center; }
.hero .cover { aspect-ratio: 5/4; border-radius: 18px; }
.hero .meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero h2 { font-family: var(--f-display); font-size: 64px; font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
.hero h2 a { color: var(--ink); }
.hero .deck { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; max-width: 520px; }
.hero .footer-row { display: flex; align-items: center; gap: 14px; }
.hero .read-time { color: var(--green); font-weight: 600; font-size: 13px; }
.hero .dot-sep { color: var(--ink-4); }

/* ============ SECTION HEAD ============ */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 80px 56px 28px; }
.section-head h3 { font-family: var(--f-display); font-size: 42px; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.section-head .see-all, .see-all { color: var(--green); font-weight: 600; font-size: 14px; }

/* ============ GRID ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0 56px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin: 0 56px; }

/* ============ CATEGORIES ============ */
.categories { margin: 80px 56px 0; }
.categories .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.categories .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-bubble { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; transition: all .2s; display: block; color: var(--ink); }
.cat-bubble:hover { transform: translateY(-3px); border-color: var(--ink); }
.cat-bubble .badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 28px; font-weight: 400; margin-bottom: 16px; background: var(--paper); color: var(--ink); }
.cat-bubble .badge.cat-wealth, .cat-bubble .badge.cat-wealth-building { background: var(--wealth); color: var(--wealth-ink); }
.cat-bubble .badge.cat-stock, .cat-bubble .badge.cat-stock-spotlight { background: var(--stock); color: var(--stock-ink); }
.cat-bubble .badge.cat-edu, .cat-bubble .badge.cat-education, .cat-bubble .badge.cat-financial-education { background: var(--edu); color: var(--edu-ink); }
.cat-bubble .badge.cat-retire, .cat-bubble .badge.cat-retirement { background: var(--retire); color: var(--retire-ink); }
.cat-bubble .badge.cat-news { background: var(--news); color: var(--news-ink); }
.cat-bubble h5 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.cat-bubble .count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.cat-bubble .desc { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin-top: 12px; }

/* ============ DAILY DROP ============ */
.daily { margin: 80px 56px 0; background: var(--ink); color: white; border-radius: 24px; padding: 48px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; overflow: hidden; position: relative; }
.daily .stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--lime); text-transform: uppercase; margin-bottom: 16px; }
.daily h3 { font-family: var(--f-display); font-size: 48px; font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; }
.daily h3 em { color: var(--lime); font-style: italic; }
.daily p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.55; margin: 0 0 24px; max-width: 460px; }
.daily form { display: flex; gap: 8px; }
.daily input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: white; font-family: inherit; font-size: 14px; outline: none; }
.daily input::placeholder { color: rgba(255,255,255,.45); }
.daily input:focus { border-color: var(--lime); }
.daily .clock { width: 280px; height: 280px; border-radius: 50%; background: var(--green-deep); margin-left: auto; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; color: white; }
.daily .clock::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.25); }
.daily .clock .num { font-family: var(--f-display); font-size: 88px; font-weight: 400; line-height: 1; }
.daily .clock .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; margin-top: 8px; color: var(--lime); }
.daily .lime-blob { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--lime); top: -40px; right: 200px; opacity: .8; }

/* ============ LIBRARY ============ */
.library { margin: 80px 56px 0; }
.library .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.library .head h3 { font-family: var(--f-display); font-size: 36px; font-weight: 400; margin: 0; letter-spacing: -0.015em; }
.library .head .sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.library .bubbles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.lib-bubble { text-align: center; display: block; color: var(--ink); }
.lib-bubble .face { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); margin-bottom: 10px; overflow: hidden; border: 3px solid var(--green); padding: 4px; transition: transform .15s; }
.lib-bubble:hover .face { transform: translateY(-3px); }
.lib-bubble .face .inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 36px; overflow: hidden; }
.lib-bubble .face .inner img { width: 100%; height: 100%; object-fit: cover; }
.lib-bubble .face .inner.cat-wealth, .lib-bubble .face .inner.cat-wealth-building { background: var(--wealth); color: var(--wealth-ink); }
.lib-bubble .face .inner.cat-stock, .lib-bubble .face .inner.cat-stock-spotlight { background: var(--stock); color: var(--stock-ink); }
.lib-bubble .face .inner.cat-edu, .lib-bubble .face .inner.cat-education, .lib-bubble .face .inner.cat-financial-education { background: var(--edu); color: var(--edu-ink); }
.lib-bubble .face .inner.cat-retire, .lib-bubble .face .inner.cat-retirement { background: var(--retire); color: var(--retire-ink); }
.lib-bubble .face .inner.cat-news { background: var(--news); color: var(--news-ink); }
.lib-bubble .ttl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.lib-bubble .meta { font-family: var(--f-mono); font-size: 10px; color: var(--ink-4); margin-top: 2px; }

/* ============ FOOTER ============ */
.footer-mini { margin: 80px 56px 0; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.footer-mini .footer-links { display: flex; gap: 18px; }
.footer-mini a { color: var(--ink-3); }
.footer-mini a:hover { color: var(--ink); }

/* ============ POST PAGE ============ */
.progress { position: sticky; top: 0; height: 3px; background: var(--line); z-index: 50; }
.progress .bar { height: 100%; background: var(--green); width: 0; }
.crumb { margin: 24px 56px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--ink-3); } .crumb .sep { opacity: .4; }
.art-head { margin: 32px auto 0; max-width: 820px; padding: 0 24px; }
.art-head .meta-row { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.art-head h1 { font-family: var(--f-display); font-size: 72px; font-weight: 400; line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 24px; text-wrap: balance; }
.art-head h1 em { font-style: italic; color: var(--green); }
.art-head .deck { font-family: var(--f-display); font-size: 24px; line-height: 1.4; color: var(--ink-2); margin: 0 0 32px; text-wrap: pretty; }
.art-head .byline-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.art-head .author { display: flex; align-items: center; gap: 12px; }
.art-head .author .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), var(--green)); border: 2px solid white; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.art-head .author .nm { font-size: 14px; font-weight: 600; }
.art-head .author .rl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.art-head .actions { display: flex; gap: 8px; }
.art-head .actions button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: white; color: var(--ink-2); }
.art-head .actions button.saved { background: var(--green); color: white; }

.art-hero { margin: 40px auto 0; max-width: 820px; padding: 0 24px; }
.art-hero .cover { aspect-ratio: 16/8; border-radius: 24px; }
.art-hero .caption { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.art-body { margin: 56px auto 0; max-width: 1100px; padding: 0 24px; display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.art-left { grid-column: 1; position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.toc { font-size: 13px; }
.toc h6 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 8px 0 8px 12px; border-left: 2px solid var(--line); color: var(--ink-3); cursor: pointer; line-height: 1.4; }
.toc li.on { color: var(--ink); border-left-color: var(--green); font-weight: 600; }
.toc:empty { visibility: hidden; }

/* Prose / .gh-content */
.prose { grid-column: 2; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.72; color: var(--ink); }
.prose > * { margin: 0 0 22px; }
.prose > p:first-of-type { font-size: 22px; line-height: 1.55; color: var(--ink-2); }
.prose > p:first-of-type::first-letter { font-family: var(--f-display); font-size: 96px; line-height: 0.85; float: left; margin: 4px 12px 0 -2px; color: var(--green); font-weight: 400; }
.prose h2 { font-family: var(--f-display); font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 48px 0 16px; text-wrap: balance; }
.prose h3 { font-family: var(--f-display); font-size: 28px; font-weight: 500; letter-spacing: -0.015em; margin: 32px 0 12px; }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green); font-family: var(--f-display); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img, .prose figure { border-radius: 14px; overflow: hidden; }
.prose figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.85em; }

/* Koenig editor — wide & full images */
.gh-content .kg-width-wide,
.prose .kg-width-wide { max-width: 1100px; margin-inline: calc(50% - 50vw + 24px); margin-inline: max(calc(50% - 50vw + 24px), -200px); }
.gh-content .kg-width-wide img,
.prose .kg-width-wide img { width: 100%; border-radius: 14px; }
.gh-content .kg-width-full,
.prose .kg-width-full { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gh-content .kg-width-full img,
.prose .kg-width-full img { width: 100vw; border-radius: 0; }
.gh-content .kg-image-card figcaption,
.prose .kg-image-card figcaption { text-align: center; }
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: 0.75em; }
.gh-content .kg-gallery-row { display: flex; gap: 0.75em; }
.gh-content .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.gh-content .kg-bookmark-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gh-content .kg-callout-card { padding: 18px 22px; border-radius: 14px; background: var(--paper); }
.prose pre { background: var(--ink); color: white; padding: 20px 24px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: transparent; color: inherit; padding: 0; }

.aside-r { display: flex; flex-direction: column; gap: 16px; }
.save-pad { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.save-pad .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.save-pad .ti { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.save-pad .de { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 12px; }
.save-pad .aside-btn { display: block; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: var(--ink); color: white; font-weight: 600; font-size: 13px; text-align: center; }
.meta-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 12px; }
.meta-card .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.meta-card .row:last-child { border: 0; }
.meta-card .l { color: var(--ink-3); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.meta-card .v { font-weight: 600; color: var(--ink); }

.ai-strip { margin: 56px auto 0; max-width: 820px; padding: 24px 28px; background: var(--green-soft); border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.ai-strip .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; }
.ai-strip .ti { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 4px; }
.ai-strip .body { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ai-strip a { color: var(--green-deep); font-weight: 600; }

.related { margin: 96px 56px 0; }
.related .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.related h3 { font-family: var(--f-display); font-size: 42px; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.related h3 em { font-style: italic; color: var(--green); }
.related .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ============ CATEGORY / TAG PAGE ============ */
.cat-hero { margin: 24px 56px 0; padding: 56px; border-radius: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; background: var(--paper); }
.cat-hero.cat-wealth, .cat-hero.cat-wealth-building { background: var(--wealth); } .cat-hero.cat-stock, .cat-hero.cat-stock-spotlight { background: var(--stock); }
.cat-hero.cat-edu, .cat-hero.cat-education, .cat-hero.cat-financial-education { background: var(--edu); }
.cat-hero.cat-retire, .cat-hero.cat-retirement { background: var(--retire); } .cat-hero.cat-news { background: var(--news); }
.cat-hero .stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; margin-bottom: 18px; text-transform: uppercase; }
.cat-hero h1 { font-family: var(--f-display); font-size: 88px; font-weight: 400; line-height: 0.95; letter-spacing: -0.025em; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.cat-hero p { font-size: 18px; line-height: 1.55; margin: 0 0 28px; max-width: 540px; }
.cat-hero .stats { display: flex; gap: 48px; }
.cat-hero .stats .v { font-family: var(--f-display); font-size: 48px; line-height: 1; }
.cat-hero .stats .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.cat-hero .pic { aspect-ratio: 1; border-radius: 24px; background: rgba(255,255,255,.5); overflow: hidden; }
.cat-hero .pic img { width: 100%; height: 100%; object-fit: cover; }

.sub-tabs { margin: 56px 56px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-tabs .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-right: 12px; }

/* ============ AUTHOR PAGE ============ */
.author-hero { margin: 32px 56px 56px; padding: 48px; background: var(--paper); border-radius: 24px; }
.author-hero .author-meta { display: flex; align-items: center; gap: 32px; }
.author-hero .big-av { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), var(--green)); object-fit: cover; flex-shrink: 0; }
.author-hero h1 { font-family: var(--f-display); font-size: 64px; font-weight: 400; letter-spacing: -0.025em; margin: 8px 0 16px; line-height: 1; }
.author-hero .stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--green); }
.author-hero .deck { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 600px; margin: 0 0 18px; }
.author-hero .author-stats { display: flex; gap: 18px; font-size: 13px; color: var(--ink-3); }
.author-hero .author-stats a { color: var(--green); }

/* ============ STATIC PAGE ============ */
.static-page .art-head, .static-page .page-body { max-width: 820px; margin-inline: auto; padding-inline: 24px; }
.static-page .page-body { margin-top: 40px; }

/* ============ ERROR ============ */
.error-page { max-width: 720px; margin: 120px auto; padding: 0 24px; text-align: center; }
.error-page .error-stamp { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--green); margin-bottom: 18px; }
.error-page h1 { font-family: var(--f-display); font-size: 72px; font-weight: 400; letter-spacing: -0.025em; line-height: 1; margin: 0 0 16px; }
.error-page .deck { font-size: 18px; color: var(--ink-3); margin-bottom: 32px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 56px 56px 0; }
.pagination a, .pagination .page-number { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.pagination .page-number { background: var(--ink); color: white; border-color: var(--ink); }

/* ============ COMMENTS ============ */
.comments-section { max-width: 820px; margin: 64px auto 0; padding: 0 24px; }

/* ============ FORM ERROR ============ */
.form-error { color: var(--news-ink); background: var(--news-soft); padding: 10px 14px; border-radius: 8px; margin-top: 10px; font-size: 13px; }
.form-error[hidden] { display: none; }

/* ============ NEWSLETTER PAGE ============ */

.news-hero {
    margin: 28px 56px 0;
    background: var(--paper);
    border-radius: 28px;
    padding: 64px 64px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: end;
    overflow: hidden;
    position: relative;
}
.news-hero .eyebrow {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--green);
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.news-hero .eyebrow .live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(14,138,74,0.18);
}
.news-hero h1 {
    font-family: var(--f-display);
    font-size: 96px;
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    color: var(--ink);
    text-wrap: balance;
}
.news-hero h1 .underline {
    background-image: linear-gradient(to right, var(--lime), var(--lime));
    background-size: 100% 38%;
    background-repeat: no-repeat;
    background-position: 0 88%;
    padding: 0 6px;
}
.news-hero .deck {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 520px;
    margin: 0 0 36px;
}
.signup-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 1px 0 rgba(15,26,20,0.04), 0 24px 60px -30px rgba(15,26,20,0.18);
}
.signup-card .label {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--ink-3);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.signup-row { display: flex; gap: 10px; margin-bottom: 12px; }
.signup-row input {
    flex: 1;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 14px 20px;
    font-family: var(--f-sans);
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color .15s, background .15s;
}
.signup-row input:focus { border-color: var(--green); background: white; }
.signup-row input::placeholder { color: var(--ink-4); }
.signup-row button {
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    border: 0;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.signup-row button:hover { background: var(--green); }
.signup-row button:active { transform: translateY(1px); }
.signup-card .fine { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0; }
.check-bubble {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}
.signup-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.signup-meta strong { color: var(--ink); font-weight: 600; }

.envelope-stage { position: relative; aspect-ratio: 1; align-self: stretch; margin-bottom: -24px; }
.ns-sun {
    position: absolute;
    width: 48%; aspect-ratio: 1;
    border-radius: 50%;
    background: var(--lime);
    top: 4%; right: 4%;
    z-index: 0;
}
.ns-horizon {
    position: absolute;
    left: -4%; right: -4%; bottom: 13%;
    border-top: 1px dashed var(--ink);
    opacity: 0.35;
    z-index: 1;
}
.ns-issue {
    position: absolute;
    width: 30%; aspect-ratio: 3 / 4;
    left: 50%; bottom: 14%; margin-left: -15%;
    background: #FFFEF4;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    transform-origin: 50% 96%;
    overflow: hidden;
}
.ns-issue::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 26%;
    background: var(--paper);
    border-bottom: 1.5px solid var(--ink);
}
.ns-issue::after {
    content: "";
    position: absolute;
    top: 7%; right: 10%;
    width: 11%; aspect-ratio: 1;
    background: var(--ink);
    border-radius: 50%;
}
.ns-issue .l {
    position: absolute;
    left: 10%; height: 3.5%;
    background: var(--ink);
    opacity: 0.45;
    border-radius: 3px;
}
.ns-issue .l1 { top: 36%; width: 72%; }
.ns-issue .l2 { top: 46%; width: 58%; }
.ns-issue .l3 { top: 56%; width: 44%; }
.ns-issue .l4 { top: 68%; width: 64%; opacity: 0.22; }
.ns-issue .l5 { top: 76%; width: 50%; opacity: 0.22; }
.ns-i1 { transform: rotate(-22deg); z-index: 2; }
.ns-i1::before { background: var(--wealth); }
.ns-i2 { transform: rotate(-11deg) translateY(-4%); z-index: 3; }
.ns-i2::before { background: var(--retire); }
.ns-i4 { transform: rotate(11deg) translateY(-4%); z-index: 3; }
.ns-i4::before { background: var(--stock); }
.ns-i5 { transform: rotate(22deg); z-index: 2; }
.ns-i5::before { background: var(--news); }
.ns-i3 { transform: translateY(-10%); z-index: 6; box-shadow: 0 24px 60px -30px rgba(15,26,20,0.2); }
.ns-i3::before { background: var(--green); }
.ns-i3::after { background: var(--lime); }

.benefits { margin: 80px 56px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: white; }
.benefit .num {
    font-family: var(--f-display);
    font-size: 56px;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--green);
    margin-bottom: 18px;
    font-weight: 400;
}
.benefit h4 {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.012em;
    margin: 0 0 8px;
    line-height: 1.15;
    color: var(--ink);
}
.benefit p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

.inside { margin: 100px 56px 0; }
.inside-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.inside-head h2 {
    font-family: var(--f-display);
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1;
}
.inside-head .right { text-align: right; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.letter-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.letter-preview {
    background: #FFFEF4;
    border: 1px solid var(--line-2);
    border-radius: 16px 16px 4px 4px;
    padding: 36px 36px 48px;
    box-shadow: 0 24px 60px -30px rgba(15,26,20,0.2);
    position: relative;
}
.letter-preview::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px; height: 16px;
    background: repeating-linear-gradient(135deg, transparent 0 8px, var(--ink) 8px 9px), var(--news);
    border-radius: 0 0 4px 4px;
    opacity: .6;
}
.letter-preview .stamp {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--ink-3);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.letter-preview .from {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px dashed var(--line-2);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.letter-preview .from .av {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lime), var(--green));
    flex-shrink: 0;
}
.letter-preview .from .who { font-size: 13px; }
.letter-preview .from .who strong { display: block; color: var(--ink); }
.letter-preview .from .who span { color: var(--ink-3); font-size: 12px; }
.letter-preview .from .when { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.letter-preview h3 {
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
}
.letter-preview p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.letter-preview .lp-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--ink);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.archive { border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.archive-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
}
.archive-head h4 { font-family: var(--f-display); font-size: 20px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.archive-head .filter { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.archive-row {
    display: grid;
    grid-template-columns: 100px 1fr 130px 100px 70px;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
}
.archive-row:last-child { border-bottom: 0; }
.archive-row:hover { background: var(--paper); }
.archive-row .date { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.archive-row .title { font-weight: 500; color: var(--ink); }
.archive-row .title small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.archive-row .pill { font-size: 10px; }
.archive-row .read { font-size: 12px; color: var(--ink-3); }
.archive-row .open { font-size: 12px; color: var(--green); font-weight: 600; }

.how {
    margin: 100px 56px 0;
    background: var(--ink);
    color: white;
    border-radius: 28px;
    padding: 64px;
    overflow: hidden;
    position: relative;
}
.how .eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lime); margin-bottom: 28px; text-transform: uppercase; }
.how h2 {
    font-family: var(--f-display);
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: -0.025em;
    font-weight: 400;
    margin: 0 0 56px;
    max-width: 880px;
    text-wrap: balance;
}
.how h2 .lime { color: var(--lime); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.how-step { border-right: 1px solid rgba(255,255,255,0.14); padding: 28px 24px 0 0; }
.how-step:last-child { border-right: 0; padding-right: 0; }
.how-step .num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lime); margin-bottom: 14px; text-transform: uppercase; }
.how-step h5 { font-family: var(--f-display); font-size: 24px; font-weight: 500; letter-spacing: -0.012em; margin: 0 0 10px; line-height: 1.15; color: white; }
.how-step p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.7); margin: 0; }

.personalize { margin: 100px 56px 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.personalize h2 { font-family: var(--f-display); font-size: 56px; font-weight: 400; letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1; }
.personalize > div:first-child > p { font-size: 16px; line-height: 1.55; color: var(--ink-3); margin: 0 0 24px; max-width: 380px; }
.pref-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.pref-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.pref-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.pref-section .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 14px; text-transform: uppercase; display: block; }
.cat-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 9px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--line-2);
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.cat-toggle .swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.cat-toggle .check {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: white; color: var(--ink);
    display: none;
    align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
}
.cat-toggle.on { background: var(--ink); color: white; border-color: var(--ink); }
.cat-toggle.on .swatch { display: none; }
.cat-toggle.on .check { display: flex; }
.freq-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.freq-opt {
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    background: white;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.freq-opt strong { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: -0.012em; margin-bottom: 4px; }
.freq-opt span { font-size: 12px; color: var(--ink-3); }
.freq-opt.on { border-color: var(--ink); background: var(--paper); }
.freq-opt.on strong { color: var(--green); }

.quote { margin: 100px 56px 0; text-align: center; }
.quote .stars { font-size: 14px; color: var(--green); letter-spacing: 0.3em; margin-bottom: 18px; }
.quote blockquote {
    font-family: var(--f-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 auto 28px;
    max-width: 1000px;
    color: var(--ink);
    text-wrap: balance;
    border: 0; padding: 0; font-style: normal;
}
.quote blockquote .lime { background: var(--lime); padding: 0 6px; border-radius: 4px; }
.quote .who { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.quote .who .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--retire), var(--retire-ink)); }

.footer-cta {
    margin: 100px 56px 0;
    background: var(--lime);
    border-radius: 28px;
    padding: 72px 64px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
}
.footer-cta h2 { font-family: var(--f-display); font-size: 72px; font-weight: 400; letter-spacing: -0.03em; line-height: 0.98; margin: 0 0 12px; color: var(--ink); }
.footer-cta > div:first-child > p { font-size: 16px; color: var(--ink-2); margin: 0; max-width: 480px; }
.signup-card-2 { background: var(--ink); color: white; padding: 24px; border-radius: 18px; }
.signup-card-2 input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 0;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--f-sans);
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
    display: block;
}
.signup-card-2 input::placeholder { color: rgba(255,255,255,0.5); }
.signup-card-2 input:focus { background: rgba(255,255,255,0.15); }
.signup-card-2 button {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 0;
    background: var(--lime);
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    display: block;
}
.signup-card-2 .small { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.6); text-align: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .nav { padding: 18px 24px; gap: 14px; }
    .nav .links { display: none; }
    .welcome, .hero, .section-head, .grid-4, .feed-grid, .categories, .daily, .library, .footer-mini, .crumb, .cat-hero, .sub-tabs, .author-hero, .related, .pagination { margin-inline: 24px; }
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero h2 { font-size: 44px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .feed-grid { grid-template-columns: repeat(2, 1fr); }
    .categories .strip { grid-template-columns: repeat(2, 1fr); }
    .library .bubbles { grid-template-columns: repeat(4, 1fr); }
    .daily { grid-template-columns: 1fr; padding: 32px 24px; }
    .daily .clock { width: 200px; height: 200px; margin: 0 auto; }
    .daily .clock .num { font-size: 64px; }
    .art-body { grid-template-columns: 1fr; gap: 32px; padding: 0 16px; }
    .art-left { position: static; }
    .art-head h1 { font-size: 44px; }
    .cat-hero { grid-template-columns: 1fr; padding: 32px; }
    .cat-hero h1 { font-size: 56px; }
    .related .grid { grid-template-columns: 1fr; }
    .footer-mini { flex-direction: column; gap: 12px; align-items: flex-start; }

    /* newsletter */
    .news-hero { grid-template-columns: 1fr; padding: 40px 32px 40px; margin-inline: 24px; }
    .envelope-stage { display: none; }
    .news-hero h1 { font-size: 64px; }
    .benefits { grid-template-columns: repeat(2, 1fr); margin-inline: 24px; }
    .inside { margin-inline: 24px; }
    .inside-head { flex-direction: column; gap: 8px; align-items: start; }
    .inside-head .right { text-align: left; }
    .letter-grid { grid-template-columns: 1fr; }
    .how { padding: 40px 32px; margin-inline: 24px; }
    .how h2 { font-size: 44px; margin-bottom: 36px; }
    .how-steps { grid-template-columns: repeat(2, 1fr); }
    .how-step:nth-child(2) { border-right: 0; }
    .personalize { grid-template-columns: 1fr; margin-inline: 24px; }
    .personalize h2 { font-size: 40px; }
    .quote { margin-inline: 24px; }
    .quote blockquote { font-size: 32px; }
    .footer-cta { grid-template-columns: 1fr; padding: 40px 32px; margin-inline: 24px; }
    .footer-cta h2 { font-size: 48px; }
}

@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
    .feed-grid { grid-template-columns: 1fr; }
    .categories .strip { grid-template-columns: 1fr; }
    .library .bubbles { grid-template-columns: repeat(3, 1fr); }
    .welcome h1 { font-size: 28px; }
    .hero h2 { font-size: 36px; }
    .art-head h1 { font-size: 36px; }
    .daily h3 { font-size: 32px; }

    /* newsletter */
    .benefits { grid-template-columns: 1fr; }
    .news-hero h1 { font-size: 44px; }
    .inside-head h2, .how h2, .personalize h2 { font-size: 36px; }
    .quote blockquote { font-size: 24px; }
    .footer-cta h2 { font-size: 36px; }
    .freq-row { grid-template-columns: 1fr; }
    .archive-row { grid-template-columns: 90px 1fr auto; }
    .archive-row .pill, .archive-row .read { display: none; }
    .signup-row { flex-direction: column; }
    .signup-row button { justify-content: center; }
}

/* =====================================================================
   Meadow · All categories page styles
   ===================================================================== */

/* ===== Categories hero ===== */
.cats-hero { margin: 28px 56px 0; padding: 56px 64px; background: var(--paper); border-radius: 28px; overflow: hidden; position: relative; }
.cats-hero .eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--green); text-transform: uppercase; margin-bottom: 18px; }
.cats-hero h1 { font-family: var(--f-display); font-size: 88px; font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.cats-hero h1 em { font-style: italic; color: var(--green); }
.cats-hero p { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; max-width: 540px; }
.cats-hero .legend { display: flex; gap: 18px; flex-wrap: wrap; }
.cats-hero .legend .item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cats-hero .legend .dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); }

/* swatches — one rule per known slug */
.cat-wealth-swatch, .cat-wealth-building-swatch { background: var(--wealth); }
.cat-stock-swatch, .cat-stock-spotlight-swatch { background: var(--stock); }
.cat-edu-swatch, .cat-education-swatch, .cat-financial-education-swatch { background: var(--edu); }
.cat-retire-swatch, .cat-retirement-swatch { background: var(--retire); }
.cat-news-swatch { background: var(--news); }

/* ===== Anchor nav (sticky) ===== */
.anchor-nav { position: sticky; top: 0; z-index: 20; margin: 32px 56px 0; padding: 14px 20px; background: rgba(251, 250, 246, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.anchor-nav .label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.anchor-nav a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .15s; display: inline-flex; align-items: center; gap: 8px; }
.anchor-nav a:hover { background: white; }
.anchor-nav a .swatch { width: 10px; height: 10px; border-radius: 50%; }
.anchor-nav .right { margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); }

/* ===== Compare strip ===== */
.compare { margin: 56px 56px 0; }
.compare-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.compare-head h2 { font-family: var(--f-display); font-size: 44px; font-weight: 400; letter-spacing: -0.02em; margin: 0; line-height: 1; }
.compare-head h2 em { font-style: italic; color: var(--green); }
.compare-head .sub { color: var(--ink-3); font-size: 14px; max-width: 320px; text-align: right; }
.compare-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.compare-cell { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, border-color .15s; color: var(--ink); }
.compare-cell:hover { transform: translateY(-3px); border-color: var(--ink); }
.compare-cell .num { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.compare-cell .glyph { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 28px; }
.compare-cell .glyph.cat-wealth, .compare-cell .glyph.cat-wealth-building { background: var(--wealth); color: var(--wealth-ink); }
.compare-cell .glyph.cat-stock, .compare-cell .glyph.cat-stock-spotlight { background: var(--stock); color: var(--stock-ink); }
.compare-cell .glyph.cat-edu, .compare-cell .glyph.cat-education, .compare-cell .glyph.cat-financial-education { background: var(--edu); color: var(--edu-ink); }
.compare-cell .glyph.cat-retire, .compare-cell .glyph.cat-retirement { background: var(--retire); color: var(--retire-ink); }
.compare-cell .glyph.cat-news { background: var(--news); color: var(--news-ink); }
.compare-cell h3 { font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -0.015em; margin: 0; line-height: 1.05; }
.compare-cell .for { font-size: 13px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.compare-cell .stat { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 12px; border-top: 1px solid var(--line); }
.compare-cell .stat strong { color: var(--ink); font-weight: 600; }

/* ===== Per-category sections ===== */
.cat-section { margin: 48px 56px 0; border-radius: 24px; padding: 36px 40px 32px; overflow: hidden; position: relative; scroll-margin-top: 100px; }
.cat-section.cat-wealth, .cat-section.cat-wealth-building { background: var(--wealth); color: var(--wealth-ink); }
.cat-section.cat-stock, .cat-section.cat-stock-spotlight { background: var(--stock); color: var(--stock-ink); }
.cat-section.cat-edu, .cat-section.cat-education, .cat-section.cat-financial-education { background: var(--edu); color: var(--edu-ink); }
.cat-section.cat-retire, .cat-section.cat-retirement { background: var(--retire); color: var(--retire-ink); }
.cat-section.cat-news { background: var(--news); color: var(--news-ink); }
.cat-section .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(15,26,20,.15); }
.cat-section .head .stamp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px; opacity: .75; }
.cat-section .head h2 { font-family: var(--f-display); font-size: 44px; font-weight: 400; line-height: 1; letter-spacing: -0.022em; margin: 0; }
.cat-section .head h2 em { font-style: italic; }
.cat-section .head .meta { text-align: right; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: inherit; opacity: .75; line-height: 1.6; }
.cat-section .head .meta strong { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; text-transform: none; opacity: 1; font-weight: 500; margin-right: 4px; }
.cat-section .desc { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: center; margin-bottom: 22px; }
.cat-section .desc p { font-size: 15px; line-height: 1.55; margin: 0; opacity: .9; }
.cat-section .desc .who { font-size: 13px; line-height: 1.5; padding: 10px 14px; background: rgba(255,255,255,.55); border-radius: 12px; }
.cat-section .desc .who strong { font-weight: 600; }
.cat-section .desc .browse { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; font-weight: 600; font-size: 13px; transition: transform .12s, background .15s; white-space: nowrap; }
.cat-section .desc .browse:hover { transform: translateY(-1px); background: var(--green); }
.cat-section .rows { background: rgba(255,255,255,.55); border-radius: 14px; overflow: hidden; }
.cat-section .article { display: grid; grid-template-columns: 110px 1fr 110px 90px; align-items: center; gap: 24px; padding: 14px 20px; border-bottom: 1px solid rgba(15,26,20,.08); transition: background .15s; color: inherit; }
.cat-section .article:last-child { border-bottom: 0; }
.cat-section .article:hover { background: rgba(255,255,255,.85); }
.cat-section .article .date { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cat-section .article .ti { font-family: var(--f-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.cat-section .article .read { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.cat-section .article .open { font-size: 12px; font-weight: 600; color: var(--green); text-align: right; }

html { scroll-behavior: smooth; }

@media (max-width: 1100px) {
    .cats-hero, .anchor-nav, .compare, .cat-section { margin-inline: 24px; }
    .cats-hero { padding: 32px; }
    .cats-hero h1 { font-size: 56px; }
    .compare-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-section { padding: 24px; }
    .cat-section .head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .cat-section .head h2 { font-size: 32px; }
    .cat-section .desc { grid-template-columns: 1fr; }
    .cat-section .article { grid-template-columns: 1fr; gap: 6px; }
    .cat-section .article .open { text-align: left; }
}
@media (max-width: 640px) {
    .compare-grid { grid-template-columns: 1fr; }
    .cats-hero h1 { font-size: 40px; }
}

/* ============ ARCHIVE PAGE ============ */
.archive-hero { margin: 28px 56px 0; padding: 56px; background: var(--paper); border-radius: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; overflow: hidden; position: relative; }
.archive-hero .eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--green); text-transform: uppercase; margin-bottom: 18px; }
.archive-hero h1 { font-family: var(--f-display); font-size: 88px; font-weight: 400; line-height: 0.96; letter-spacing: -0.03em; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.archive-hero h1 em { font-style: italic; color: var(--green); }
.archive-hero p { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 520px; }
.archive-hero .stats { display: flex; gap: 48px; flex-wrap: wrap; }
.archive-hero .stats .v { font-family: var(--f-display); font-size: 56px; line-height: 1; font-weight: 400; letter-spacing: -0.02em; }
.archive-hero .stats .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.archive-viz { position: relative; aspect-ratio: 1; max-width: 360px; margin-left: auto; }
.archive-viz .sheet { position: absolute; background: white; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 24px 60px -30px rgba(15,26,20,0.2); }
.archive-viz .s1 { inset: 12% 20% 28% 8%; transform: rotate(-4deg); background: var(--stock); border-color: var(--stock-ink); }
.archive-viz .s2 { inset: 18% 8% 22% 18%; transform: rotate(3deg); background: var(--wealth); border-color: var(--wealth-ink); }
.archive-viz .s3 { inset: 26% 14% 14% 12%; transform: rotate(-1deg); background: white; }
.archive-viz .s3::before, .archive-viz .s3::after { content: ''; position: absolute; left: 14%; right: 14%; height: 4%; background: var(--ink); opacity: .8; border-radius: 2px; }
.archive-viz .s3::before { top: 22%; opacity: .9; height: 7%; }
.archive-viz .s3::after  { top: 38%; right: 30%; }
.archive-viz .lime-dot { position: absolute; width: 14%; aspect-ratio: 1; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 50%; top: 10%; right: 10%; }
.archive-viz .star { position: absolute; bottom: 6%; left: 18%; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }

.filter-bar { position: sticky; top: 0; z-index: 20; margin: 32px 56px 0; padding: 16px 20px; background: rgba(251, 250, 246, 0.9); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-bar .group-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.filter-bar .search-wrap { position: relative; margin-left: auto; }
.filter-bar .search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.filter-bar input[type="search"] { border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px 9px 40px; font-family: var(--f-sans); font-size: 13px; color: var(--ink); background: white; outline: none; width: 240px; transition: border-color .15s, width .25s; }
.filter-bar input[type="search"]:focus { border-color: var(--green); width: 300px; }
.filter-bar .sort-wrap { display: flex; background: var(--paper); border-radius: 999px; padding: 3px; gap: 2px; }
.filter-bar .sort-wrap button { padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; font-family: inherit; }
.filter-bar .sort-wrap button.on { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.results-meta { margin: 32px 56px 24px; display: flex; justify-content: space-between; align-items: end; }
.results-meta .heading { font-family: var(--f-display); font-size: 28px; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.results-meta .heading em { font-style: italic; color: var(--green); }

.archive-grid { margin: 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.article-card-wrap { display: contents; }

.empty-state { display: none; margin: 64px 56px; padding: 64px; text-align: center; border: 1px dashed var(--line-2); border-radius: 22px; background: var(--paper); }
.empty-state.on { display: block; }
.empty-state h3 { font-family: var(--f-display); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 12px; }
.empty-state p { color: var(--ink-3); margin: 0 0 18px; }

@media (max-width: 1100px) {
    .archive-hero { margin-inline: 24px; }
    .filter-bar { margin-inline: 24px; border-radius: 16px; }
    .results-meta { margin-inline: 24px; }
    .archive-grid { margin-inline: 24px; grid-template-columns: repeat(2, 1fr); }
    .empty-state { margin-inline: 24px; }
}
@media (max-width: 640px) {
    .archive-hero { grid-template-columns: 1fr; padding: 32px 24px; }
    .archive-hero h1 { font-size: 56px; }
    .archive-viz { display: none; }
    .archive-grid { grid-template-columns: 1fr; }
    .filter-bar input[type="search"] { width: 140px; }
    .filter-bar input[type="search"]:focus { width: 180px; }
}

/* ===============================================================
   Meadow — Homepage styles (updated hero + mini-TOC + stat strip)
   =============================================================== */

/* ===== Welcome strip ===== */
.welcome { margin: 28px 56px 0; padding: 28px 40px; background: var(--paper); border-radius: 22px; text-align: center; }
.welcome .eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; }
.welcome h1 { font-family: var(--f-display); font-size: 38px; font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.welcome h1 em { font-style: italic; color: var(--green); }
.welcome h1 .lime-pop { background: var(--lime); padding: 0 8px; border-radius: 6px; font-style: italic; }

/* ===== Hero feature ===== */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin: 40px 56px 0; align-items: stretch; }
.hero .hero-cover-link { display: block; }
.hero .cover { aspect-ratio: 5 / 3.4; border-radius: 18px; }
.hero .hero-body { display: flex; flex-direction: column; }
.hero .cover.has-image { background: var(--paper); }
.hero .cover.has-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.hero .cover-figcap { position: absolute; left: 24px; bottom: 20px; font-family: var(--f-mono); font-size: 11px; color: var(--stock-ink); letter-spacing: 0.16em; text-transform: uppercase; }
.hero .meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero h2 { font-family: var(--f-display); font-size: 38px; font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
.hero h2 a { color: inherit; text-decoration: none; }
.hero .deck { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.hero .deck p { margin: 0; }
.hero .footer-row { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; }

/* "Inside this piece" mini-TOC */
.hero .toc { margin: 10px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0 4px; }
.hero .toc-head { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hero .toc-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hero .toc-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.hero .toc-row:first-of-type { border-top: 0; }
.hero .toc-row .n { font-family: var(--f-mono); font-size: 11px; color: var(--green); font-weight: 600; }
.hero .toc-row .t { font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.hero .toc-row .m { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; }

/* Stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.hero-stats .stat { background: var(--paper); border-radius: 10px; padding: 8px 12px; }
.hero-stats .stat .v { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.015em; line-height: 1; }
.hero-stats .stat .v .unit { font-size: 12px; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.hero-stats .stat .l { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; margin-top: 6px; }

/* ===== Section header ===== */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 80px 56px 28px; }
.section-head h3 { font-family: var(--f-display); font-size: 42px; font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.section-head .see-all, .see-all { color: var(--green); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ===== Latest 4-up grid ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0 56px; }

/* ===== Categories strip ===== */
.categories { margin: 80px 56px 0; }
.categories .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.categories .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-bubble { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; transition: all .2s; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.cat-bubble:hover { transform: translateY(-3px); border-color: var(--ink); }
.cat-bubble .badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 28px; font-weight: 400; margin-bottom: 16px; background: var(--paper); color: var(--ink); }
.cat-bubble .badge.cat-wealth, .cat-bubble .badge.cat-wealth-building { background: var(--wealth); color: var(--wealth-ink); }
.cat-bubble .badge.cat-stock, .cat-bubble .badge.cat-stock-spotlight { background: var(--stock); color: var(--stock-ink); }
.cat-bubble .badge.cat-education, .cat-bubble .badge.cat-financial-education { background: var(--edu); color: var(--edu-ink); }
.cat-bubble .badge.cat-retirement { background: var(--retire); color: var(--retire-ink); }
.cat-bubble .badge.cat-news { background: var(--news); color: var(--news-ink); }
.cat-bubble h5 { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.cat-bubble .count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.cat-bubble .desc { font-size: 13px; line-height: 1.45; color: var(--ink-3); margin-top: 12px; }

/* ===== Starter library ===== */
.library { margin: 80px 56px 0; }
.library .head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.library .head h3 { font-family: var(--f-display); font-size: 36px; font-weight: 400; margin: 0; letter-spacing: -0.015em; }
.library .head .sub { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.library .bubbles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.lib-bubble { text-align: center; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.lib-bubble .face { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); margin-bottom: 10px; overflow: hidden; border: 3px solid var(--green); padding: 4px; transition: transform .15s; }
.lib-bubble:hover .face { transform: translateY(-3px); }
.lib-bubble .face .inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 36px; overflow: hidden; }
.lib-bubble .face .inner img { width: 100%; height: 100%; object-fit: cover; }
.lib-bubble .ttl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.lib-bubble .meta { font-family: var(--f-mono); font-size: 10px; color: var(--ink-4); margin-top: 2px; }

/* Responsive overrides for hero + homepage sections */
@media (max-width: 1100px) {
    .welcome, .hero, .section-head, .grid-4, .categories, .library { margin-inline: 24px; }
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero h2 { font-size: 44px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .categories .strip { grid-template-columns: repeat(2, 1fr); }
    .library .bubbles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
    .categories .strip { grid-template-columns: 1fr; }
    .library .bubbles { grid-template-columns: repeat(3, 1fr); }
    .welcome h1 { font-size: 28px; }
    .hero h2 { font-size: 36px; }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */

/* Fix 1: Welcome strip — reduce padding so text has room to breathe */
@media (max-width: 640px) {
    .welcome { padding: 20px 20px; }
    .welcome .eyebrow { font-size: 10px; letter-spacing: 0.12em; }
}

/* Fix 2: Nav logo — smaller on mobile */
@media (max-width: 640px) {
    .nav { padding: 12px 16px; gap: 10px; }
    .nav .logo { font-size: 22px; }
    .nav .logo .logo-img { height: 24px; }
}

/* Fix 3: Categories anchor-nav — scroll horizontally instead of wrapping */
.anchor-nav { z-index: 30; }
@media (max-width: 768px) {
    .anchor-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        scrollbar-width: none;
        border-radius: 16px;
    }
    .anchor-nav::-webkit-scrollbar { display: none; }
    .anchor-nav a { flex-shrink: 0; white-space: nowrap; }
    .anchor-nav .right { flex-shrink: 0; white-space: nowrap; margin-left: auto; }
}

/* Fix 4: Article mobile layout — reorder: TOC → meta info → content → save */
@media (max-width: 1100px) {
    .art-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }
    /* Dissolve art-left so its children become direct flex items */
    .art-left { display: contents; }
    .art-body .toc     { order: 1; }
    .art-body .meta-card { order: 2; }
    .art-body .prose   { order: 3; }
    .art-body .aside-r { order: 4; }
}

/* Fix 5: Article body font size — slightly smaller on all screen sizes */
.prose { font-size: 17px; line-height: 1.68; }
.prose > p:first-of-type { font-size: 19px; line-height: 1.55; }
.prose > p:first-of-type::first-letter { font-size: 82px; }

/* Fix 6: Mobile nav strip — shown only on mobile, hidden on desktop */
.mobile-strip { display: none; }

@media (max-width: 1100px) {
    .mobile-strip {
        display: flex;
        gap: 8px;
        padding: 10px 16px 10px;
        overflow-x: auto;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
        scrollbar-width: none;
    }
    .mobile-strip::-webkit-scrollbar { display: none; }
    .mobile-strip a {
        flex-shrink: 0;
        padding: 8px 16px;
        border-radius: 999px;
        border: 1px solid var(--line-2);
        background: white;
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-2);
        white-space: nowrap;
        text-decoration: none;
        transition: background .12s, border-color .12s;
    }
    .mobile-strip a:hover,
    .mobile-strip a.active { background: var(--ink); color: white; border-color: var(--ink); }
}

/* Fix 7: Daily drop — compact on small mobile */
@media (max-width: 640px) {
    .daily { padding: 24px 20px; gap: 0; }
    .daily h3 { font-size: 24px; margin-bottom: 12px; }
    .daily p { font-size: 14px; margin-bottom: 16px; max-width: none; }
    .daily form { flex-direction: column; gap: 10px; }
    .daily .clock { display: none; }
}

/* Fix 8: Prose h2 and blockquote — smaller on mobile */
@media (max-width: 1100px) {
    .prose h2 { font-size: 28px; margin: 36px 0 12px; }
    .prose h3 { font-size: 22px; }
    .prose blockquote { font-size: 19px; }
}
@media (max-width: 640px) {
    .prose h2 { font-size: 23px; margin: 28px 0 10px; }
    .prose h3 { font-size: 19px; }
    .prose blockquote { font-size: 16px; }
}

/* ============================================================
   WELCOME SECTION — design reference
   ============================================================ */

/* Soft mint gradient background */
.welcome {
    background: linear-gradient(135deg, #B8E4CA 0%, #D2EEE0 28%, #E8F7F0 60%, var(--bg) 100%);
}

/* Eyebrow — short decorative lines each side */
.welcome .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.welcome .eyebrow::before,
.welcome .eyebrow::after {
    content: '';
    width: 44px;
    height: 1px;
    background: var(--ink-3);
    opacity: 0.45;
    flex-shrink: 0;
}

/* Display heading */
.welcome h1 { font-size: 50px; font-weight: 500; }

/* "school" — italic bold green, no strikethrough */
.welcome h1 .school {
    font-style: italic;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
}

/* "given you" — italic with lime underline highlight */
.welcome h1 .underline {
    font-style: italic;
    background-image: linear-gradient(to right, var(--lime), var(--lime));
    background-size: 100% 36%;
    background-repeat: no-repeat;
    background-position: 0 94%;
    padding: 0 5px;
}

/* Subtitle paragraph */
.welcome .sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-3);
    margin: 18px auto 0;
    max-width: 520px;
}
.welcome .sub strong { color: var(--ink); font-weight: 600; }

/* Responsive: tablet */
@media (max-width: 1100px) {
    .welcome h1 { font-size: 38px; }
    .welcome .sub { font-size: 15px; max-width: 100%; }
    /* Hide decorative lines — eyebrow text wraps on tablet */
    .welcome .eyebrow::before,
    .welcome .eyebrow::after { display: none; }
}

/* Responsive: phone */
@media (max-width: 640px) {
    .welcome h1 { font-size: 26px; font-weight: 500; }
    .welcome .sub { font-size: 14px; margin-top: 14px; }
    .welcome h1 .underline { padding: 0 3px; }
}

/* Fix 3 & 5: Disable sticky filter-bar and anchor-nav on mobile */
@media (max-width: 1100px) {
    .filter-bar { position: static; border-radius: 12px; }
    .anchor-nav  { position: static; }
}

/* Fix 4: Archive hero stats — 2-column grid on mobile, "10 AM" readable */
@media (max-width: 640px) {
    .archive-hero .stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }
    .archive-hero .stats .v { font-size: 36px; }
}
