/*
 * The home page, the tests index and a topic's page (architect/tasks/
 * 04-home-and-catalog.md, mock-ups catalog-r1/home.html and catalog.html +
 * catalog.css). The same skin and thread as the test page, container 1200.
 *
 * The thread itself and the button row are in css/base.css; the card, the
 * chips and the blocks are here.
 */

.stillnormal-home-hero,
.stillnormal-sec,
.stillnormal-cat-head,
.stillnormal-filter .stillnormal-container,
.stillnormal-listing,
.stillnormal-author-band-in {
    --wrap: 1200px;
}

/* On these pages the thread fades out at its foot. */
.stillnormal-home-hero .stillnormal-tthread::before,
.stillnormal-cat-head .stillnormal-tthread::before {
    background: linear-gradient(180deg, var(--amber) 0%, var(--amber) 85%, rgba(179, 114, 31, 0) 100%);
}

.stillnormal-tstep:last-child {
    margin-bottom: 0;
}

/*
 * On the home page the thread starts at the headline (Lex, 2026-09-29): its
 * dot sits level with the middle of the H1's first line.
 */
.stillnormal-home-hero {
    --h1-size: clamp(40px, 5vw, 68px);
}

.stillnormal-home-hero .stillnormal-tthread::after {
    top: calc(var(--h1-size) * .51 - 8px);
}

.stillnormal-home-hero .stillnormal-tthread::before {
    top: calc(var(--h1-size) * .51);
}

/* The dot is the headline's stitch: no second stroke above it. */
.stillnormal-home-hero .stillnormal-tstep:first-child::before {
    display: none;
}

.stillnormal-bigtitle {
    margin: 0;
    font-family: var(--display);
    font-size: var(--h1-size, clamp(40px, 5vw, 68px));
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.stillnormal-bigtitle em {
    font-style: italic;
    font-weight: 300;
    color: var(--amber);
}

/* ---------- the home page's first screen ---------- */

.stillnormal-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 20px;
}

.stillnormal-home-lead {
    max-width: 30em;
    font-family: var(--display);
    font-size: clamp(19px, 1.8vw, 24px);
    font-style: italic;
    font-weight: 300;
    line-height: 1.35;
    color: var(--amber-deep);
}

.stillnormal-home-lead p {
    margin: 0 0 .5em;
}

.stillnormal-home-lead p:last-child {
    margin-bottom: 0;
}

/* The newest test: the cover, the label on it, a paper caption under it. */
.stillnormal-feature {
    position: relative;
    display: block;
    min-width: 0;
    margin-bottom: 76px;
    color: inherit;
    text-decoration: none;
}

.stillnormal-feature-pic {
    display: block;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: 26px;
    background: var(--sand-deep);
}

.stillnormal-feature-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stillnormal-feature-label {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    background: var(--dark);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
}

.stillnormal-feature-cap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -76px;
    display: block;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(58, 42, 28, .14);
}

.stillnormal-feature-cap .stillnormal-card-topic {
    margin: 0 0 4px;
}

.stillnormal-feature-title {
    display: block;
    font-family: var(--display);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
}

.stillnormal-feature-excerpt {
    margin: 6px 0 0;
}

/* ---------- sections ---------- */

.stillnormal-sec {
    padding-top: 56px;
    padding-bottom: 8px;
}

.stillnormal-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.stillnormal-sec-head .stillnormal-h2 {
    margin: 0;
}

/* "All tests ->": the arrow is decoration, not text. */
.stillnormal-sec-link {
    flex: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--amber-deep);
}

.stillnormal-sec-link::after {
    content: " \2192";
}

/* ---------- the card: no paper, the cover rounded ---------- */

.stillnormal-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.stillnormal-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.stillnormal-card-figure {
    display: block;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    border-radius: 20px;
    background: var(--sand-deep);
}

.stillnormal-card-figure img,
.stillnormal-card-figure picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.stillnormal-card-topic {
    display: block;
    margin: 14px 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
}

.stillnormal-card-title {
    display: block;
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    transition: color .2s;
}

.stillnormal-card-excerpt {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stillnormal-card-meta {
    margin-top: auto;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink-soft);
}

/* ---------- topic chips ---------- */

.stillnormal-chips {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
}

.stillnormal-chip {
    display: inline-flex;
    align-items: baseline;
    max-width: 100%;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--paper);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
}

.stillnormal-chip small {
    margin-left: 6px;
    font-size: 13px;
    color: var(--ink-soft);
}

.stillnormal-chip.is-on {
    background: var(--dark);
    color: var(--cream);
}

.stillnormal-chip.is-on small {
    color: rgba(243, 231, 214, .7);
}

/* ---------- the catalogue ---------- */

.stillnormal-cat-head {
    padding-top: 18px;
    padding-bottom: 6px;
}

.stillnormal-cat-count {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink-soft);
}

.stillnormal-cat-lead {
    max-width: 40em;
    font-size: 16.5px;
    line-height: 1.6;
}

.stillnormal-cat-lead p {
    margin: 0 0 .6em;
}

.stillnormal-cat-lead p:last-child {
    margin-bottom: 0;
}

/* The topics stay at the top while the list scrolls. */
.stillnormal-filter {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(239, 226, 207, .96);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .stillnormal-filter {
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

.stillnormal-listing {
    padding-top: 22px;
    padding-bottom: 24px;
}

.stillnormal-pager {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.stillnormal-empty {
    max-width: 36em;
    color: var(--ink-soft);
}

/* ---------- the dark strip about the author ---------- */

.stillnormal-author-band {
    margin-top: 56px;
    background: var(--dark);
    color: var(--cream);
}

.stillnormal-author-band + .stillnormal-footer {
    margin-top: 0;
}

.stillnormal-author-band-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 28px;
    row-gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.stillnormal-author-band p {
    max-width: 34em;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 300;
    line-height: 1.3;
}

.stillnormal-author-band a:not(.stillnormal-btn) {
    color: var(--amber-light);
    text-decoration: none;
}

.stillnormal-author-band em {
    font-style: italic;
    color: var(--amber-light);
}

/* ---------- phone ---------- */

@media (max-width: 900px) {
    .stillnormal-home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-top: 6px;
    }

    .stillnormal-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    /* One line of chips that scrolls sideways, to the screen's edge. */
    .stillnormal-chips.is-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: calc(-1 * var(--gutter));
        padding-right: var(--gutter);
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .stillnormal-chips.is-scroll::-webkit-scrollbar {
        display: none;
    }

    .stillnormal-chips.is-scroll .stillnormal-chip {
        flex: none;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .stillnormal-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- hover, only on a real pointer ---------- */

@media (hover: hover) and (pointer: fine) {
    .stillnormal-card:hover .stillnormal-card-figure img {
        transform: scale(1.03);
    }

    .stillnormal-card:hover .stillnormal-card-title,
    .stillnormal-feature:hover .stillnormal-feature-title,
    .stillnormal-sec-link:hover {
        color: var(--amber-deep);
    }

    .stillnormal-chip:not(.is-on):hover {
        border-color: var(--outline);
    }

    .stillnormal-author-band a:not(.stillnormal-btn):hover {
        color: var(--cream);
    }
}

@media (prefers-reduced-motion: reduce) {
    .stillnormal-card-figure img {
        transition: none;
    }
}
