:root {
    --blog-ink: #1b2b22;
    --blog-muted: #5d6e62;
    --blog-forest: #2d6a4f;
    --blog-forest-dark: #1b4332;
    --blog-sage: #84a98c;
    --blog-cream: #f5f0e6;
    --blog-paper: #fcfaf5;
    --blog-purple: #8b65c8;
    --blog-line: rgba(27, 67, 50, 0.14);
}

html { scroll-behavior: smooth; }
body.learning-blog { background: var(--blog-paper); color: var(--blog-ink); }
.learning-blog a { color: inherit; }

.learning-blog #navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(252, 250, 245, 0.9);
    border-bottom: 1px solid var(--blog-line);
    backdrop-filter: blur(14px);
}
.learning-blog .nav-container {
    width: min(1160px, calc(100% - 40px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.learning-blog .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.learning-blog .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.learning-blog .nav-links { display: flex; align-items: center; gap: 26px; }
.learning-blog .nav-links a { color: var(--blog-muted); font-size: .9rem; font-weight: 600; }
.learning-blog .nav-links a:hover, .learning-blog .nav-links a.active { color: var(--blog-forest-dark); }
.learning-blog .nav-cta {
    padding: 10px 17px;
    color: #fff !important;
    background: var(--blog-forest-dark);
    border-radius: 999px;
}

.blog-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.blog-hero { padding: 150px 0 72px; position: relative; overflow: hidden; }
.blog-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: 40px;
    border-radius: 50%;
    background: rgba(132, 169, 140, .16);
    filter: blur(4px);
    pointer-events: none;
}
.blog-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--blog-forest);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.blog-kicker::before { content: ""; width: 22px; height: 2px; background: var(--blog-purple); }
.blog-hero h1 { max-width: 790px; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.blog-hero h1 em { color: var(--blog-forest); font-style: normal; }
.blog-hero p { max-width: 660px; margin-top: 25px; color: var(--blog-muted); font-size: 1.13rem; line-height: 1.75; }

.category-bar { position: sticky; top: 68px; z-index: 50; background: rgba(252,250,245,.94); border-block: 1px solid var(--blog-line); backdrop-filter: blur(12px); }
.category-list { display: flex; gap: 8px; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-button {
    border: 1px solid var(--blog-line);
    background: transparent;
    color: var(--blog-muted);
    border-radius: 999px;
    padding: 9px 15px;
    font: 650 .84rem/1 Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}
.category-button:hover, .category-button.active { border-color: var(--blog-forest); background: var(--blog-forest); color: #fff; }

.featured-section { padding: 64px 0 34px; }
.featured-card { display: grid; grid-template-columns: 1.18fr 1fr; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 28px; background: #fff; }
.featured-card img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.featured-copy { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; color: #7a897e; font-size: .8rem; }
.post-category { color: var(--blog-forest-dark); background: #e8f0e8; border-radius: 999px; padding: 6px 10px; font-weight: 750; }
.featured-copy h2 { margin: 18px 0 14px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; }
.featured-copy p { color: var(--blog-muted); line-height: 1.7; }
.text-link { display: inline-flex; margin-top: 24px; color: var(--blog-forest); font-weight: 750; }

.posts-section { padding: 34px 0 84px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { font-size: 1.7rem; letter-spacing: -.025em; }
.section-heading p { color: var(--blog-muted); font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 22px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(27,43,34,.09); }
.post-card[hidden] { display: none; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-copy { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.post-card h3 { margin: 14px 0 10px; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.02em; }
.post-card p { color: var(--blog-muted); font-size: .9rem; line-height: 1.65; }
.post-card .read-link { margin-top: auto; padding-top: 18px; color: var(--blog-forest); font-size: .86rem; font-weight: 750; }

.publication-note { padding: 55px 0; background: var(--blog-cream); border-block: 1px solid var(--blog-line); }
.publication-note .blog-shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; align-items: start; }
.publication-note h2 { font-size: 1.65rem; }
.publication-note p { color: var(--blog-muted); line-height: 1.75; }

.article-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 128px 0 76px; }
.breadcrumbs { margin-bottom: 34px; color: #718076; font-size: .84rem; }
.breadcrumbs a:hover { color: var(--blog-forest); }
.article-header h1 { margin: 18px 0 22px; font-size: clamp(2.25rem, 5vw, 4.15rem); line-height: 1.04; letter-spacing: -.05em; }
.article-dek { max-width: 720px; color: var(--blog-muted); font-size: 1.16rem; line-height: 1.7; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--blog-muted); font-size: .88rem; }
.byline-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blog-forest-dark); color: #fff; font-weight: 800; }
.article-hero { margin: 42px 0; overflow: hidden; border-radius: 26px; background: var(--blog-cream); }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.article-body { color: #33483b; font-size: 1.08rem; line-height: 1.82; }
.article-body > p:first-child { color: var(--blog-ink); font-size: 1.2rem; }
.article-body p { margin: 0 0 1.5rem; }
.article-body h2 { scroll-margin-top: 94px; margin: 3.4rem 0 1.25rem; color: var(--blog-ink); font-size: 1.78rem; line-height: 1.22; letter-spacing: -.025em; }
.article-body h3 { margin: 2.35rem 0 .85rem; color: var(--blog-ink); font-size: 1.28rem; }
.article-body ul, .article-body ol { margin: 0 0 1.65rem; padding-left: 1.35rem; }
.article-body li { margin-bottom: .7rem; padding-left: .25rem; }
.article-body a { color: var(--blog-forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body strong { color: var(--blog-ink); }
.article-body blockquote { margin: 2rem 0; padding: 18px 22px; border-left: 4px solid var(--blog-purple); background: #f3eef9; color: #493d57; border-radius: 0 14px 14px 0; }
.quick-plan { margin: 2rem 0; padding: 24px; border: 1px solid var(--blog-line); border-radius: 18px; background: var(--blog-cream); }
.quick-plan h3 { margin-top: 0; }
.quick-plan p:last-child, .quick-plan ul:last-child, .quick-plan ol:last-child { margin-bottom: 0; }
.tool-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 3rem 0; padding: 22px; border-radius: 20px; background: var(--blog-forest-dark); color: #fff; }
.tool-card img { width: 54px; height: 54px; border-radius: 13px; }
.tool-card strong { display: block; color: #fff; margin-bottom: 4px; }
.tool-card span { color: rgba(255,255,255,.76); font-size: .89rem; line-height: 1.45; }
.tool-card a { padding: 10px 14px; border-radius: 999px; background: #fff; color: var(--blog-forest-dark); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sources { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--blog-line); }
.sources h2 { margin-top: 0; font-size: 1.35rem; }
.sources li { font-size: .88rem; line-height: 1.55; }
.article-end { margin-top: 44px; padding: 30px; border-radius: 22px; text-align: center; background: var(--blog-cream); }
.article-end h2 { margin: 0 0 10px; font-size: 1.45rem; }
.article-end p { margin-bottom: 18px; color: var(--blog-muted); }
.store-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.store-row a { padding: 11px 16px; border-radius: 999px; background: var(--blog-ink); color: #fff; font-size: .84rem; font-weight: 750; }
.reading-progress { position: fixed; inset: 68px auto auto 0; z-index: 1001; width: 0; height: 3px; background: var(--blog-purple); }

.blog-footer { padding: 46px 0; border-top: 1px solid var(--blog-line); background: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; color: var(--blog-muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--blog-forest); }

@media (max-width: 920px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card img { min-height: 0; aspect-ratio: 16/9; }
    .publication-note .blog-shell { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 680px) {
    .learning-blog .nav-container, .blog-shell, .article-wrap { width: min(100% - 28px, 1160px); }
    .learning-blog .nav-links a:not(.nav-cta) { display: none; }
    .blog-hero { padding: 124px 0 52px; }
    .blog-hero h1 { font-size: 2.72rem; }
    .post-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: start; flex-direction: column; gap: 5px; }
    .article-wrap { padding-top: 108px; }
    .article-header h1 { font-size: 2.42rem; }
    .article-body { font-size: 1rem; }
    .tool-card { grid-template-columns: auto 1fr; }
    .tool-card a { grid-column: 1 / -1; text-align: center; }
    .footer-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .post-card { transition: none; }
}
