:root {
    --blog-bg: #f5f1e8;
    --blog-ink: #18202a;
    --blog-muted: #5d6a79;
    --blog-accent: #0b84d8;
    --blog-accent-dark: #0662a2;
    --blog-paper: rgba(255, 253, 248, 0.92);
    --blog-line: rgba(24, 32, 42, 0.08);
    --blog-shadow: 0 20px 50px rgba(24, 32, 42, 0.08);
    --blog-max: 1180px;
    --article-max: 940px;
    --card-width: 350px;
    --card-height: 500px;
    --card-heading: #dfe9ef;
    --card-accent: #d0bb57;
    --card-text: #edf2f6;
}

* {
    box-sizing: border-box;
}

body.blog-page {
    margin: 0;
    color: var(--blog-ink);
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    background: #fff;
}

.blog-page a {
    color: inherit;
}

.blog-page img {
    display: block;
    max-width: 100%;
}

.blog-shell {
    min-height: 100vh;
}

.blog-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    background: rgba(8, 14, 24, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-header-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), 1400px);
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
}

.blog-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: lowercase;
}

.blog-brand img {
    width: 42px;
    height: auto;
}

.blog-home-link {
    display: none !important;
}

.blog-hero,
.blog-grid,
.blog-article-shell {
    width: min(calc(100% - 2rem), var(--blog-max));
    margin: 0 auto;
}

.blog-hero {
    display: grid;
    gap: 0.85rem;
    width: min(calc(100% - 2rem), 740px);
    padding: calc(5rem + 72px) 0 2rem;
    text-align: center;
}

.blog-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    color: var(--blog-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-hero-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.blog-hero h1 {
    margin: 0;
    max-width: 12ch;
    margin-inline: auto;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.blog-hero p {
    margin: 0;
    max-width: 620px;
    margin-inline: auto;
    color: var(--blog-muted);
    font-size: 1rem;
}

.blog-section {
    padding: calc(5rem + 72px) 0 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 1.6rem;
}

.blog-post-card {
    position: relative;
    width: min(100%, var(--card-width));
    min-height: var(--card-height);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 3px 3px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    text-decoration: none;
    background: var(--card-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.blog-post-card .color-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 17, 25, 0.24);
    transition: background 0.3s cubic-bezier(.33, .66, .66, 1);
}

.blog-post-card .gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.78) 100%);
}

.blog-post-card:hover .card-info,
.blog-post-card:focus-visible .card-info {
    opacity: 1;
    bottom: 120px;
}

.blog-post-card:hover .color-overlay,
.blog-post-card:focus-visible .color-overlay {
    background: rgba(10, 17, 25, 0.56);
}

.blog-post-card .title-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    margin: 70px 0 0;
    padding: 0 1.3rem;
    text-align: center;
}

.blog-post-card h3 {
    margin: 0;
    color: var(--card-heading);
    font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
}

.blog-post-card hr {
    width: 50px;
    height: 3px;
    margin: 20px auto;
    border: 0;
    background: var(--card-accent);
}

.blog-post-card .card-info {
    position: absolute;
    z-index: 3;
    bottom: 100px;
    left: 0;
    width: 100%;
    padding: 0 2.3rem;
    color: var(--card-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s cubic-bezier(.33, .66, .66, 1);
}

.blog-post-card .card-cta {
    position: absolute;
    z-index: 3;
    bottom: 68px;
    left: 0;
    width: 100%;
    padding: 0 2.3rem;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s cubic-bezier(.33, .66, .66, 1);
}

.blog-post-card .animated-arrow {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-card .animated-arrow .main {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.blog-post-card .animated-arrow .text {
    margin-right: 16px;
    color: inherit;
    font-family: "Roboto", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.blog-post-card .the-arrow {
    width: 1px;
    transition: all 0.2s ease;
}

.blog-post-card .the-arrow.-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.blog-post-card .the-arrow.-left > .shaft {
    width: 0;
    background-color: currentColor;
}

.blog-post-card .the-arrow.-left > .shaft::before,
.blog-post-card .the-arrow.-left > .shaft::after {
    width: 0;
    background-color: currentColor;
}

.blog-post-card .the-arrow.-left > .shaft::before {
    transform: rotate(0);
}

.blog-post-card .the-arrow.-left > .shaft::after {
    transform: rotate(0);
}

.blog-post-card .the-arrow.-right {
    position: relative;
    top: 1px;
}

.blog-post-card .the-arrow.-right > .shaft {
    width: 1px;
    transition-delay: 0.2s;
}

.blog-post-card .the-arrow.-right > .shaft::before,
.blog-post-card .the-arrow.-right > .shaft::after {
    width: 8px;
    transition: all 0.5s ease;
    transition-delay: 0.3s;
}

.blog-post-card .the-arrow.-right > .shaft::before {
    transform: rotate(40deg);
}

.blog-post-card .the-arrow.-right > .shaft::after {
    transform: rotate(-40deg);
}

.blog-post-card .the-arrow > .shaft {
    display: block;
    position: relative;
    height: 1px;
    background-color: currentColor;
    transition: all 0.2s ease;
    will-change: transform;
}

.blog-post-card .the-arrow > .shaft::before,
.blog-post-card .the-arrow > .shaft::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 1px;
    background-color: currentColor;
    transition: all 0.2s ease;
}

.blog-post-card .the-arrow > .shaft::before {
    transform-origin: top right;
}

.blog-post-card .the-arrow > .shaft::after {
    transform-origin: bottom right;
}

.blog-post-card .utility-info {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
}

.blog-post-card .utility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0;
    padding: 0 1.25rem 1.7rem;
    list-style: none;
}

.blog-post-card .utility-list li {
    display: inline-flex;
    align-items: center;
    color: var(--card-text);
    font-family: "Roboto", sans-serif;
    font-size: 0.86rem;
}

.blog-post-card .utility-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--card-accent);
    box-shadow: 0 0 0 4px rgba(208, 187, 87, 0.12);
}

.blog-post-card .utility-list .reading-time::before {
    background: #62b0ff;
    box-shadow: 0 0 0 4px rgba(98, 176, 255, 0.14);
}

.blog-post-card .utility-list .topic-tag::before {
    background: var(--tag-color, var(--card-accent));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tag-color, var(--card-accent)) 18%, transparent);
}

.blog-post-card:hover .card-cta,
.blog-post-card:focus-visible .card-cta {
    opacity: 1;
    bottom: 72px;
}

.blog-post-card .card-cta:hover .animated-arrow,
.blog-post-card .card-cta:focus-visible .animated-arrow {
    color: rgba(255, 255, 255, 0.72);
}

.blog-post-card .card-cta:hover .animated-arrow .main,
.blog-post-card .card-cta:focus-visible .animated-arrow .main {
    transform: translateX(80px);
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-left > .shaft,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-left > .shaft {
    width: 64px;
    transition-delay: 0.1s;
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-left > .shaft::before,
.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-left > .shaft::after,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-left > .shaft::before,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-left > .shaft::after {
    width: 8px;
    transition-delay: 0.1s;
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-left > .shaft::before,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-left > .shaft::before {
    transform: rotate(40deg);
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-left > .shaft::after,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-left > .shaft::after {
    transform: rotate(-40deg);
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-right > .shaft,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-right > .shaft {
    width: 0;
    transform: translateX(200%);
    transition-delay: 0s;
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-right > .shaft::before,
.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-right > .shaft::after,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-right > .shaft::before,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-right > .shaft::after {
    width: 0;
    transition: all 0.1s ease;
    transition-delay: 0s;
}

.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-right > .shaft::before,
.blog-post-card .card-cta:hover .animated-arrow .the-arrow.-right > .shaft::after,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-right > .shaft::before,
.blog-post-card .card-cta:focus-visible .animated-arrow .the-arrow.-right > .shaft::after {
    transform: rotate(0);
}

.blog-article-shell {
    display: block;
    max-width: var(--article-max);
    padding: calc(6rem + 72px) 0 5rem;
}

.article-progress {
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    background: rgba(7, 12, 20, 0.08);
    box-shadow:
        inset 0 -1px rgba(255, 255, 255, 0.08);
}

.article-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #74b6ff, #218dff);
    box-shadow:
        0 0 10px rgba(33, 141, 255, 0.18);
    transition: width 0.08s linear;
}

.blog-article {
    min-width: 0;
}

.blog-article-header {
    position: relative;
    margin-bottom: 2rem;
    min-height: clamp(320px, 44vw, 500px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 64px rgba(17, 18, 22, 0.2);
    background: #1a1d21;
}

.article-backlink {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
    color: var(--blog-muted);
    text-decoration: none;
}

.article-backlink:hover,
.article-backlink:focus-visible {
    color: var(--blog-accent);
}

.article-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

.blog-article-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(18, 19, 24, 0.34) 0%, rgba(18, 19, 24, 0.3) 28%, rgba(18, 19, 24, 0.76) 100%),
        linear-gradient(90deg, rgba(18, 19, 24, 0.76) 0%, rgba(18, 19, 24, 0.46) 44%, rgba(18, 19, 24, 0.18) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: clamp(320px, 44vw, 500px);
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 3vw, 2.3rem);
    color: #f8f8f6;
}

.article-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.article-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.2;
}

.article-meta::after {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 1.75px solid currentColor;
    border-radius: 50%;
    opacity: 0.82;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 50% 50%, currentColor 0 1px, transparent 1.2px),
        linear-gradient(currentColor, currentColor) 50% 34% / 1.5px 0.24rem no-repeat,
        linear-gradient(currentColor, currentColor) 62% 50% / 0.22rem 1.5px no-repeat;
}

.article-meta span + span {
    display: none;
}

.article-hero-copy {
    display: grid;
    align-content: end;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
}

.article-taxonomy {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.article-taxonomy::before {
    content: "";
    width: 1rem;
    height: 0.75rem;
    border-radius: 0.15rem;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(0 50%, 22% 0, 100% 0, 100% 100%, 22% 100%);
    opacity: 0.9;
}

.article-hero-copy .article-taxonomy {
    display: none;
}

.blog-article-header h1 {
    margin: 0;
    max-width: 100%;
    color: #f5f3f1;
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.blog-article-header > p,
.article-hero-copy > p {
    margin: 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.65vw, 1.14rem);
    line-height: 1.5;
}

.article-inline-cta {
    display: none;
}

.blog-article-body {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.blog-article-body h2,
.blog-article-body h3 {
    margin: 1rem 0 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.blog-article-body h2 {
    font-size: 1.7rem;
}

.blog-article-body h3 {
    font-size: 1.2rem;
}

.blog-article-body p,
.blog-article-body li {
    color: #33404f;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0;
    padding-left: 1.2rem;
}

.blog-article-body strong {
    color: var(--blog-ink);
}

.article-callout {
    padding: 1.2rem 1.25rem;
    border-left: 3px solid var(--blog-accent);
    border-radius: 16px;
    background: rgba(247, 242, 232, 0.98);
}

.article-end-cta {
    margin-top: 1rem;
    padding: 1.6rem;
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--blog-line);
}

.article-end-cta h2 {
    margin: 0 0 0.65rem;
    font-size: 1.3rem;
}

.article-end-cta p {
    margin: 0;
}

.article-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--blog-accent), #3d9be6);
    font-weight: 700;
}

.blog-footer {
    margin-top: 1rem;
    padding: 2rem 1rem 2.5rem;
    background: #111;
    color: #fff;
}

.blog-footer-inner {
    width: min(calc(100% - 2rem), var(--article-max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-footer-inner p {
    margin: 0;
}

.blog-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.blog-footer-links a:hover,
.blog-footer-links a:focus-visible {
    color: #fff;
}

@media (max-width: 980px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .blog-header-inner,
    .blog-footer-inner {
        align-items: start;
        flex-direction: column;
    }

    .blog-header-inner {
        min-height: 76px;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        padding: 1rem 1.25rem;
    }

    .article-progress {
        top: 78px;
    }

    .blog-hero {
        padding-top: calc(4rem + 72px);
    }

    .blog-section {
        padding-top: calc(4rem + 72px);
    }

    .blog-hero h1,
    .blog-article-header h1 {
        max-width: none;
    }

    .blog-article-header {
        min-height: 380px;
    }

    .article-hero-content {
        min-height: 380px;
        padding: 1.4rem;
    }

    .article-hero-top {
        gap: 0.75rem;
        flex-direction: column;
    }

    .article-meta {
        justify-content: flex-start;
    }

    .blog-post-card,
    .article-end-cta {
        border-radius: 22px;
    }

    .blog-post-card {
        width: 100%;
        min-height: 460px;
    }

    .blog-post-card .card-info {
        padding: 0 1.5rem;
    }

    .blog-post-card .card-cta {
        padding: 0 1.5rem;
    }

    .blog-post-card .title-content {
        margin-top: 58px;
    }
}
