/* ================================ */
/* == Client builds (/builds/)   == */
/* ================================ */
/* Loaded after style.css on /builds/ only. It reuses the tokens and the
   homepage's project, ladder and contact patterns, and adds the poster,
   the measured result and the price line. */

/* == Page head == */
.builds-head {
    max-width: var(--page);
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 0;
}

.builds-head__title {
    font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
    font-weight: 800;
    font-stretch: 125%;
    line-height: 0.97;
    letter-spacing: -0.035em;
}

.builds-head .hero__summary {
    max-width: var(--measure);
}

/* == One build == */
.build {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
}

.build__result {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem 1rem;
    background-color: var(--paper-raised);
    border-radius: 6px;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.build__figure {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
    font-weight: 700;
    font-stretch: 112%;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.build__price {
    margin-top: 1rem;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.build__price strong {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
}

.build__concept {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--ink-faint);
}

.build__shot {
    justify-self: end;
    width: 100%;
    margin-top: 0.35rem;
}

.build__shot img {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 6px;
}

/* == How I work: the homepage's ladder, four steps wide == */
.steps.ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 60rem;
    margin: 0;
}

.steps .ladder__when {
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.steps p {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.steps__note {
    max-width: 44rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 1.0625rem;
    color: var(--ink-soft);
}

/* == Responsive == */
@media (max-width: 900px) {
    .build {
        grid-template-columns: minmax(0, 1fr);
    }

    .build__shot {
        justify-self: start;
        max-width: 36rem;
        margin-top: 0;
    }

    /* Four steps don't fit across a tablet, so the ladder runs down the page. */
    .steps.ladder {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        max-width: 38rem;
    }

    .steps.ladder::before {
        top: 0.375rem;
        bottom: 0.375rem;
        left: 0.3125rem;
        right: auto;
        width: 2px;
        height: auto;
    }

    .steps.ladder li {
        padding: 0 0 0 1.6rem;
    }
}

@media print {
    .build {
        break-inside: avoid;
    }
}
