:root {
    --blog-green: #17483d;
    --blog-red: #b52a33;
    --blog-cream: #f6f0e3;
    --blog-line: rgba(23, 72, 61, .14);
    --blog-shadow: 0 18px 46px rgba(23, 72, 61, .12);
}

.baer-blog {
    color: #24342f;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.blog-hero {
    margin: 32px 0 28px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--blog-line);
    border-radius: 32px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .93),
        rgba(234, 241, 227, .88)
    );
    box-shadow: var(--blog-shadow);
    text-align: center;
}

.blog-eyebrow,
.blog-date {
    color: var(--blog-red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.blog-hero h1 {
    margin: .3rem 0 .55rem;
    color: var(--blog-green);
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.04;
}

.blog-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.08rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );
    gap: 24px;
    margin-bottom: 48px;
}

.blog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, .96),
        rgba(247, 242, 228, .9)
    );
    box-shadow: var(--blog-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(23, 72, 61, .17);
}

.blog-card__media {
    display: flex;
    height: 280px;
    padding: 22px;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 50% 35%,
        #fff 0,
        #f3f6ed 68%,
        #e8eee1 100%
    );
}

.blog-card__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.blog-card h2 {
    margin: .55rem 0 .7rem;
    color: var(--blog-green);
    font-size: 1.4rem;
    line-height: 1.2;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card p {
    margin: 0 0 22px;
    line-height: 1.65;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: max-content;
    max-width: 100%;
    margin-top: auto;
    padding: 12px 19px;
    border: 0;
    border-radius: 999px;
    background: var(--blog-green);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .16s ease, background .16s ease;
}

.blog-button:hover {
    background: #0f392f;
    transform: translateY(-1px);
}

.blog-empty {
    margin: 40px 0;
    padding: 42px;
    border-radius: 28px;
    background: var(--blog-cream);
    text-align: center;
}

.blog-back {
    display: inline-block;
    margin: 30px 0 18px;
    color: var(--blog-green);
    font-weight: 800;
    text-decoration: none;
}

.blog-article {
    max-width: 900px;
    margin: 0 auto 56px;
}

.blog-article__header {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--blog-line);
    border-radius: 30px;
    background: linear-gradient(145deg, #fff, #f6f0e3);
    box-shadow: var(--blog-shadow);
}

.blog-article__header h1 {
    margin: .45rem 0 1rem;
    color: var(--blog-green);
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.08;
}

.blog-lead {
    font-size: 1.16rem;
    line-height: 1.7;
}

.blog-lead > :first-child,
.blog-content > :first-child {
    margin-top: 0;
}

.blog-lead > :last-child,
.blog-content > :last-child {
    margin-bottom: 0;
}

.blog-article__hero {
    display: flex;
    max-height: 620px;
    margin: 26px 0;
    padding: 28px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px;
    background: #f0f4e9;
}

.blog-article__hero img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.blog-content {
    margin: 26px 0;
    padding: clamp(25px, 5vw, 52px);
    border: 1px solid var(--blog-line);
    border-radius: 30px;
    background: #fffdf8;
    box-shadow: 0 13px 36px rgba(23, 72, 61, .08);
    font-size: 1.06rem;
    line-height: 1.78;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--blog-green);
    line-height: 1.2;
}

.blog-content h2 {
    margin-top: 2rem;
    font-size: 1.65rem;
}

.blog-content h3 {
    margin-top: 1.7rem;
    font-size: 1.35rem;
}

.blog-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 1.5rem auto;
    border-radius: 18px;
}

.blog-content a {
    color: var(--blog-green);
    font-weight: 700;
    text-underline-offset: 3px;
}

.blog-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.3rem;
    border-left: 4px solid var(--blog-red);
    border-radius: 0 14px 14px 0;
    background: #faf1e9;
}

.blog-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-content th,
.blog-content td {
    padding: .65rem;
    border: 1px solid var(--blog-line);
}

/* Responsive YouTube embeds from Shopware blog articles */
.blog-youtube {
    width: min(100%, 800px);
    aspect-ratio: 16 / 9;
    margin: 28px auto;
    overflow: hidden;
    border-radius: 18px;
    background: #101010;
}

.blog-youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-article__footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.blog-button--light {
    background: #e8efe7;
    color: var(--blog-green);
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .blog-hero {
        border-radius: 24px;
    }

    .blog-grid {
        gap: 16px;
    }

    .blog-card {
        border-radius: 22px;
    }

    .blog-card__media {
        height: 220px;
        padding: 16px;
    }

    .blog-card__body {
        padding: 20px;
    }

    .blog-article__header,
    .blog-content {
        border-radius: 22px;
    }

    .blog-article__hero {
        max-height: 440px;
        padding: 16px;
        border-radius: 22px;
    }

    .blog-article__hero img {
        max-height: 408px;
    }

    .blog-youtube {
        margin: 22px auto;
        border-radius: 14px;
    }
}
