/* The collection page (/). The layout follows docs/mocks/landing.png. */

/* Hero: the offer beside the kit */

.hero {
    padding-block: clamp(40px, 5vw, 64px) clamp(48px, 6vw, 80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
    align-items: center;
    gap: 40px 64px;
}

/* Breaks like the mock: "For people who / build great teams." (8.5em) */
.hero h1 {
    max-width: 9em;
}

.hero h1 em {
    font-style: normal;
    color: var(--green-ink);
}

.hero-lead {
    margin-top: 24px;
    max-width: 30ch;
    font-size: var(--text-lead);
    color: var(--ink-soft);
}

.hero-pick {
    margin-top: 12px;
    font-weight: 600;
}

.hero .btn-primary {
    margin-top: 32px;
}

.hero-terms {
    margin-top: 16px;
    max-width: 46ch;
    font-size: var(--text-legal);
    color: var(--ink-muted);
}

.kit-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--linen);
}

.kit-frame img {
    width: 100%;
}

/* The kit photo is 16:9. Cropped to 4:3 it stands about as tall as the copy beside it, and the
   focus point keeps the whole box in frame. Recheck both if the photo changes. */
.kit-photo {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 30% 50%;
}

/* Where the sticker sheet sits in the mock's kit shot */
.kit-placeholder {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: 38%;
    aspect-ratio: 3 / 4;
}

.kit-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 16px;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--ink-soft);
}

/* Value strip */

.value-strip {
    background: var(--wash-mint);
}

.value-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 56px;
    padding-block: 14px;
    list-style: none;
    font-size: var(--text-small);
    font-weight: 600;
}

.value-strip li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.value-strip .icon {
    width: 18px;
    height: 18px;
    color: var(--green-ink);
}

/* The collection: filters and the shirt grid */

.collection {
    padding-block: clamp(56px, 7vw, 96px);
}

.collection-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 32px;
}

.collection-head h2 + p {
    margin-top: 8px;
    color: var(--ink-soft);
}

.collection-count {
    font-size: var(--text-small);
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

/* The chips need collection.js; without it every shirt shows */
html:not(.js) .chips {
    display: none;
}

.shirt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 28px;
    margin-top: 32px;
    list-style: none;
}

.shirt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shirt-card-media {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--linen);
}

.shirt-card-media img {
    width: 100%;
    transition: transform 0.5s var(--ease-out);
}

.shirt-card:hover .shirt-card-media img {
    transform: scale(1.03);
}

.tag-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--paper-white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.shirt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.shirt-card h3 {
    margin-top: 10px;
}

.shirt-card-subline {
    margin-block: 4px 18px;
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--ink-soft);
}

.btn-pick {
    align-self: stretch;
    justify-content: space-between;
    margin-top: auto;
}

/* The whole card picks the shirt; the button keeps the focus ring */
.btn-pick::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Filtering reflows the grid through a view transition (collection.js) */
::view-transition-group(*) {
    animation-duration: 0.35s;
    animation-timing-function: var(--ease-out);
}

/* Stickers */

.stickers {
    padding-bottom: clamp(56px, 7vw, 96px);
}

.stickers-panel {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    gap: 32px clamp(32px, 6vw, 80px);
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-card);
    background: var(--wash-mint);
}

.stickers-art {
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--linen);
}

.stickers-art.placeholder {
    aspect-ratio: 4 / 5;
    background: var(--wash-warm);
}

.stickers-copy h2 {
    max-width: 14ch;
}

.stickers-copy p {
    margin-top: 16px;
    max-width: 46ch;
    color: var(--ink-soft);
}

.stickers-copy .stickers-note {
    margin-top: 24px;
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--green-ink);
}

/* Fine print */

.fine-print {
    padding-block: 28px;
    background: var(--wash-warm);
}

.fine-print h2 {
    font-size: var(--text-small);
    line-height: 1.4;
    letter-spacing: 0;
}

.fine-print p {
    margin-top: 6px;
    max-width: 62ch;
    font-size: var(--text-small);
    color: var(--ink-soft);
}

@media (max-width: 959px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-kit {
        max-width: 640px;
    }

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

@media (max-width: 599px) {
    .value-strip ul {
        gap: 8px 24px;
    }

    /* One row that scrolls sideways, running to the screen edges so it reads as more */
    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 20px -24px 0;
        padding: 8px 24px;
        scrollbar-width: none;
    }

    .chip {
        flex: none;
    }

    .shirt-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stickers-panel {
        grid-template-columns: 1fr;
    }
}
