/*
 * The blog (Blog/Index, Blog/Post): the site's square corners and strong rules with a red accent. A list of whole-card links,
 * and a post whose text is the post's own HTML: screenshots, numbered steps, a box for what we claim, buttons.
 */

.blog-shell {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    padding-bottom: 1.5rem;
}

.blog-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

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

.blog-crumbs a:hover,
.blog-crumbs a:focus-visible {
    color: var(--news-accent);
    text-decoration: underline;
}

.blog-hero {
    display: grid;
    gap: 0.6rem;
    padding: 1.75rem 2rem;
    border: 1px solid var(--news-rule);
    border-top: 4px solid var(--news-accent);
    background: var(--panel);
}

.blog-kicker {
    margin: 0;
    color: var(--news-accent);
    font-family: var(--news-font-head);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 24ch;
    margin: 0;
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.06;
}

.blog-lead {
    max-width: 48rem;
    margin: 0;
    color: var(--news-soft-ink);
    font-size: 1.12rem;
    line-height: 1.6;
}

/* ---- The cards ---- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    min-width: 0;
    border: 1px solid var(--news-rule);
    border-top: 3px solid var(--news-ink);
    background: var(--panel);
    transition: border-color 0.15s ease;
}

.blog-card:hover,
.blog-card:focus-within {
    border-top-color: var(--news-accent);
}

.blog-card-link {
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--news-rule);
    object-fit: cover;
    object-position: top center;
}

.blog-card-copy {
    display: grid;
    align-content: start;
    gap: 0.5rem;
    padding: 1rem 1.15rem 1.2rem;
}

.blog-card-title {
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.16;
    transition: color 0.15s ease;
}

.blog-card-link:hover .blog-card-title,
.blog-card-link:focus-visible .blog-card-title {
    color: var(--news-accent);
}

.blog-card-text {
    color: var(--news-soft-ink);
    font-size: 0.98rem;
    line-height: 1.5;
}

.blog-card small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.blog-card.is-lead {
    grid-column: 1 / -1;
    border-top-color: var(--news-accent);
}

.blog-card.is-lead .blog-card-link {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: auto;
}

.blog-card.is-lead .blog-card-image {
    height: 100%;
    border-right: 1px solid var(--news-rule);
    border-bottom: 0;
}

.blog-card.is-lead .blog-card-copy {
    align-content: center;
    gap: 0.7rem;
    padding: 1.5rem 1.75rem;
}

.blog-card.is-lead .blog-card-title {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem);
    line-height: 1.1;
}

.blog-card.is-lead .blog-card-text {
    font-size: 1.05rem;
}

/* ---- A post ---- */

.blog-post {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-post-meta > :first-child {
    color: var(--news-ink);
    font-weight: 800;
}

.blog-post-picture {
    margin: 0;
    border: 1px solid var(--news-rule);
    background: var(--panel);
}

.blog-post-picture img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2rem;
}

.blog-main {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
    padding: 0.5rem 0 0;
}

.blog-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.blog-contents {
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--news-rule);
    border-top: 3px solid var(--news-ink);
    background: var(--panel);
}

.blog-contents strong {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: 1.02rem;
    font-weight: 900;
}

.blog-contents ol {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-contents a {
    color: var(--news-soft-ink);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.blog-contents a:hover,
.blog-contents a:focus-visible {
    color: var(--news-accent);
    text-decoration: underline;
}

/* ---- The post's text ---- */

.blog-body {
    min-width: 0;
    color: var(--news-ink);
    font-size: 1.07rem;
    line-height: 1.7;
}

.blog-body > * {
    margin: 0;
}

.blog-body > * + * {
    margin-top: 1.05rem;
}

.blog-body h2 {
    margin-top: 2.25rem;
    padding-top: 0.8rem;
    border-top: 3px solid var(--news-ink);
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
    font-weight: 900;
    line-height: 1.16;
    scroll-margin-top: 5rem;
}

.blog-body > h2:first-child {
    margin-top: 0;
}

.blog-body h3 {
    margin-top: 1.5rem;
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.25;
}

.blog-body h3 + p {
    margin-top: 0.35rem;
}

.blog-body a:not(.blog-button) {
    color: var(--news-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.blog-body a:not(.blog-button):hover,
.blog-body a:not(.blog-button):focus-visible {
    color: var(--news-ink);
}

.blog-body ul {
    display: grid;
    gap: 0.4rem;
    padding-left: 1.2rem;
}

.blog-body ul li::marker {
    color: var(--news-accent);
}

.blog-shot {
    margin: 1.6rem 0;
}

.blog-body > .blog-shot {
    margin: 1.6rem 0;
}

.blog-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--news-rule);
    background: var(--panel);
}

.blog-shot figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* The steps: a square red number beside each. */
.blog-body .blog-steps {
    display: grid;
    gap: 0.95rem;
    padding: 0;
    list-style: none;
    counter-reset: blog-step;
}

.blog-steps > li {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0.85rem;
    counter-increment: blog-step;
}

.blog-steps > li::before {
    content: counter(blog-step);
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: #ffffff;
    background: var(--news-accent);
    font-family: var(--news-font-head);
    font-size: 1.05rem;
    font-weight: 900;
}

.blog-steps > li > div {
    align-self: center;
}

.blog-steps strong {
    color: var(--news-ink);
    font-weight: 800;
}

/* Text with a phone's picture beside it. */
.blog-with-phone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14.5rem;
    align-items: start;
    gap: 1.5rem;
}

.blog-with-phone > div > * {
    margin: 0;
}

.blog-with-phone > div > * + * {
    margin-top: 1.05rem;
}

.blog-with-phone .blog-shot {
    margin: 0;
}

/* The box for what we claim, and why. */
.blog-note {
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--news-rule);
    border-left: 6px solid var(--news-accent);
    background: var(--panel);
}

.blog-note > * {
    margin: 0;
}

.blog-note > * + * {
    margin-top: 0.6rem;
}

.blog-note strong:first-child {
    display: block;
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.25;
}

.blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    list-style: none;
}

.blog-body .blog-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 2.3rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--news-rule);
    color: var(--news-ink);
    background: var(--panel);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-body .blog-chips a:hover,
.blog-body .blog-chips a:focus-visible {
    border-color: var(--news-accent);
    color: var(--news-accent);
}

.blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.blog-body > .blog-actions {
    margin-top: 1.75rem;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.55rem 1.25rem;
    border: 2px solid var(--news-accent);
    color: #ffffff;
    background: var(--news-accent);
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-button:hover,
.blog-button:focus-visible {
    border-color: #8f1b12;
    color: #ffffff;
    background: #8f1b12;
}

.blog-button.is-outline {
    border-color: var(--news-ink);
    color: var(--news-ink);
    background: var(--panel);
}

.blog-button.is-outline:hover,
.blog-button.is-outline:focus-visible {
    border-color: var(--news-accent);
    color: var(--news-accent);
    background: var(--panel);
}

.blog-more {
    display: grid;
    gap: 0.9rem;
}

.blog-more h2 {
    margin: 0;
    padding-top: 0.8rem;
    border-top: 3px solid var(--news-ink);
    color: var(--news-ink);
    font-family: var(--news-font-head);
    font-size: 1.5rem;
    font-weight: 900;
}

/* ---- Narrower ---- */

@media (max-width: 991.98px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-grid.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card.is-lead .blog-card-link {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-card.is-lead .blog-card-image {
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--news-rule);
    }
}

@media (max-width: 639.98px) {
    .blog-hero {
        padding: 1.25rem;
    }

    .blog-grid,
    .blog-grid.is-three {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-card.is-lead .blog-card-copy {
        padding: 1rem 1.15rem 1.2rem;
    }

    .blog-with-phone {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-with-phone .blog-shot {
        width: min(16rem, 100%);
        margin: 0 auto;
    }

    .blog-actions .blog-button {
        flex: 1 1 100%;
    }
}
