/*
 * Blog (2026): the post page, the list of posts, and the boxes the rc_ shortcodes print.
 * Loaded after home-2026.css and pages-2026.css.
 * Written phone-first; wider layouts are added in the min-width block.
 */

/* ---------- The line under a post's headline ---------- */

.eyebrow a {
    color: inherit;
}

.post-meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--soft);
}

.post-meta span {
    padding: 0 6px;
    color: var(--dash);
}

/* ---------- A post's featured image, set into the foot of the dark headline area ---------- */

.hero-over-image .hero-in {
    padding-bottom: 96px;
}

.post-with-image {
    padding-top: 0;
}

.post-figure {
    position: relative;
    z-index: 2;
    margin: -56px 0 32px;
}

.post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--ink);
    background: var(--light);
}

/* ---------- The post itself ---------- */

.post-body {
    max-width: 46em;
}

.post-body > * + * {
    margin-top: 1.15em;
}

.post-body p,
.post-body li {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--body2);
}

.post-body h2 {
    margin-top: 1.7em;
    font-size: 2rem;
    line-height: 1.05;
}

.post-body h3 {
    margin-top: 1.5em;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
}

.post-body h2 + *,
.post-body h3 + * {
    margin-top: 0.6em;
}

.post-body strong {
    color: var(--ink);
    font-weight: 600;
}

.post-body a:not(.btn) {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
    padding-left: 1.25em;
}

.post-body li + li {
    margin-top: 0.4em;
}

/* ---------- Boxes printed by the shortcodes ---------- */

.bx {
    padding: 18px;
    border: 1px solid var(--ink);
    background: var(--white);
}

.bx-title {
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 0.75rem !important;
    letter-spacing: 0.06em;
    line-height: 1.4 !important;
    text-transform: uppercase;
    color: var(--muted) !important;
}

.bx-takeaways {
    border-top: 6px solid var(--gold);
}

.bx-takeaways ul {
    padding-left: 0;
    list-style: none;
}

.bx-takeaways li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
}

.bx-takeaways li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: 10px;
    background: var(--gold);
}

.bx-note {
    border-left: 6px solid var(--gold);
}

.bx-warn {
    border-left: 6px solid var(--ink);
}

.bx-body > * + * {
    margin-top: 0.8em;
}

/* A row of big figures. Big ones only: see the note in the project's CLAUDE.md. */
.bx-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--ink);
    background: var(--white);
}

.bx-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    padding: 14px 16px;
}

.bx-stat:nth-child(even) {
    border-left: 1px solid var(--rule);
}

.bx-stat:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
}

.bx-stat-label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--muted);
}

.bx-stat-value {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.125rem;
    line-height: 1;
    color: var(--ink);
}

/* The ledger itself is styled in pages-2026.css. */
.post-body .ledger-rows dt,
.post-body .ledger-rows dd {
    color: var(--ink);
}

.post-body .ledger-foot {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted);
}

.bx-steps {
    padding-left: 0 !important;
    border-bottom: 1px solid var(--ink);
    list-style: none;
    counter-reset: step;
}

.bx-steps li {
    display: flex;
    gap: 14px;
    margin-top: 0 !important;
    padding: 18px 0;
    border-top: 1px solid var(--ink);
    counter-increment: step;
}

.bx-steps li::before {
    content: counter(step, decimal-leading-zero);
    flex: 0 0 auto;
    padding-top: 4px;
    font-family: var(--mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.bx-steps h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.5rem;
    color: var(--ink);
}

.bx-quote {
    margin-left: 0;
    margin-right: 0;
    padding: 4px 0 4px 18px;
    border-left: 6px solid var(--gold);
}

.bx-quote blockquote p {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.bx-quote figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
}

.bx-quote cite {
    font-style: normal;
    font-weight: 600;
}

.bx-quote figcaption span {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.bx-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
    background: var(--ink);
    color: var(--white);
}

.bx-cta h3 {
    margin-top: 0;
    font-size: 1.875rem;
    line-height: 1;
    color: var(--white);
}

.bx-cta p {
    margin-top: 0;
    color: var(--light);
}

.bx-cta .btn {
    width: 100%;
    margin-top: 4px;
}

.bx-img {
    margin-left: 0;
    margin-right: 0;
}

.bx-img img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ink);
}

.bx-img figcaption {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted);
}

/* ---------- The newest post, shown large at the top of the blog page ---------- */

.post-feature-in {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.post-feature-title {
    max-width: 16em;
    font-size: clamp(2.125rem, 9vw, 3rem);
    line-height: 1;
}

.post-feature-title a {
    color: var(--ink);
    text-decoration: none;
}

.post-feature-title a:hover {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
}

.post-feature .lede {
    max-width: 40em;
}

.post-feature .btn {
    width: 100%;
    margin-top: 6px;
}

.post-list-head {
    margin-bottom: 20px;
}

.post-feature-media {
    display: block;
    width: 100%;
}

.post-feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.post-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--ink);
    background: var(--light);
}

.post-row-media {
    display: none;
}

/* ---------- The list of posts ---------- */

.post-list {
    display: grid;
    border-bottom: 1px solid var(--ink);
}

.post-row {
    display: grid;
    gap: 8px;
    padding: 22px 0;
    border-top: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
}

.post-date {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-row-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.05;
    text-wrap: balance;
}

.post-row-title a {
    color: var(--ink);
    text-decoration: none;
}

.post-row-title a:hover,
a.post-row:hover .post-row-title {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.post-row p {
    max-width: 46em;
    font-size: 0.9375rem;
    color: var(--body2);
}

.post-more {
    font-weight: 600;
    color: var(--ink);
}

.more-posts h2 {
    margin-bottom: 20px;
}

/* ---------- Tablets and desktop: 900px and up ---------- */

@media (min-width: 900px) {
    .post-meta {
        font-size: 0.8125rem;
    }

    .post-body p,
    .post-body li {
        font-size: 1.125rem;
    }

    .post-body h2 {
        font-size: 2.5rem;
    }

    .post-body h3 {
        font-size: 1.75rem;
    }

    .bx {
        padding: 24px;
    }

    .bx-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bx-stat {
        gap: 6px;
        padding: 18px 20px;
    }

    .bx-stat:nth-child(n + 3) {
        border-top: 0;
    }

    .bx-stat + .bx-stat {
        border-left: 1px solid var(--rule);
    }

    .bx-stat-value {
        font-size: 2.375rem;
    }

    .bx-steps li {
        gap: 18px;
        padding: 22px 0;
    }

    .bx-steps h3 {
        font-size: 1.75rem;
    }

    .bx-quote {
        padding-left: 24px;
    }

    .bx-quote blockquote p {
        font-size: 1.4375rem;
    }

    .bx-cta {
        padding: 32px;
    }

    .bx-cta h3 {
        font-size: 2.375rem;
    }

    .bx-cta .btn {
        width: auto;
    }

    .hero-over-image .hero-in {
        padding-bottom: 170px;
    }

    .post-figure {
        margin: -110px 0 48px;
    }

    .post-figure .post-image {
        aspect-ratio: 21 / 9;
    }

    .post-feature-in {
        gap: 18px;
    }

    .post-feature-pic .post-feature-in {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 56px;
    }

    .post-feature-pic .post-feature-media {
        order: 2;
    }

    .post-feature-text {
        gap: 18px;
    }

    .post-list-full .post-row-pic {
        grid-template-columns: 170px minmax(0, 1fr) 220px;
    }

    .post-list-full .post-row-pic .post-row-media {
        display: block;
        grid-column: 3;
        grid-row: 1 / span 4;
        align-self: center;
    }

    .post-feature-title {
        font-size: clamp(2.75rem, 4.6vw, 4.25rem);
        line-height: 0.98;
    }

    .post-feature .btn {
        width: auto;
    }

    .post-list-head {
        margin-bottom: 28px;
    }

    .post-row {
        padding: 28px 0;
    }

    .post-list-full .post-row {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 8px 24px;
    }

    .post-list-full .post-row > * {
        grid-column: 2;
    }

    .post-list-full .post-date {
        grid-column: 1;
        grid-row: 1;
        padding-top: 8px;
    }

    .post-date {
        font-size: 0.8125rem;
    }

    .post-row-title {
        font-size: 2.125rem;
    }

    .post-row p {
        font-size: 1rem;
    }

    .more-posts h2 {
        margin-bottom: 28px;
    }
}
