/* Compact keyword pages (/website-in-a-week …), rendered by
   handler/compactpage: one reading column of copy, a call button under the
   heading and after the copy, then related work. Prose values follow the
   blog post body (pages/blog.css) so long-form copy reads the same. */

.cp-column {
    /* About 70 characters a line at the copy's size. */
    max-width: 38rem;
    margin: 0 auto;
}

.cp-hero {
    text-align: left;
    padding-bottom: 16px;
}

.cp-hero h1.page-title {
    margin: 0 0 28px;
    text-align: left;
}

.cp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--text-muted);
}

.cp-crumbs li + li::before {
    content: "›";
    margin-right: 6px;
    color: var(--text-muted);
}

.cp-crumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.cp-crumbs a:hover {
    color: var(--accent);
}

/* Touch screens: a 44px tall hit area on each crumb link without moving
   the row. */
@media (pointer: coarse) {
    .cp-crumbs a {
        display: inline-block;
        padding-block: 14px;
        margin-block: -14px;
    }
}

.cp-body {
    padding-top: 24px;
}

.cp-copy {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.cp-copy h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.cp-copy h2:first-child {
    margin-top: 0;
}

.cp-copy p {
    margin: 0 0 18px;
    text-wrap: pretty;
}

.cp-copy a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Links stay violet on hover (one hue, one meaning: pink is not a link). */
.cp-copy a:hover {
    color: var(--accent-text);
}

.cp-call svg {
    flex: none;
}

.cp-call-end {
    margin-top: 28px;
}

.cp-work {
    padding-top: 0;
}

/* Related work sits in the reading column, one card per row. */
.cp-work .work-grid {
    grid-template-columns: 1fr;
}

.cp-work-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

/* Up to 780px the site-wide sticky call bar (components/mobile-call.css)
   is always on screen, so the hero button would be a second identical
   call to action in the same view. Only then: signed-in visitors get no
   bar (layout.templ), so they keep the hero button. The one after the copy
   always stays: the copy points at it ("click the button below"). */
@media (max-width: 780px) {
    body:has(.mobile-call) .cp-hero .cp-call {
        display: none;
    }

    body:has(.mobile-call) .cp-hero h1.page-title {
        margin-bottom: 8px;
    }
}

/* Phones: the call button spans the column, an easy thumb target, and
   its label wraps rather than spilling out of the pill on narrow ones. */
@media (max-width: 600px) {
    .cp-call {
        width: 100%;
        white-space: normal;
        text-align: center;
        text-wrap: balance;
        line-height: 1.3;
    }

    .cp-copy h2 {
        font-size: 1.4rem;
    }
}
