/* Photography index: use the existing Atelier palette and typefaces. */
body.home {
    --at-soft: #706e67;
}

body.home .site-wrapper {
    max-width: 1440px;
    padding: 0 clamp(24px, 4.45vw, 64px);
}

body.home .site-header {
    margin-bottom: 0;
    padding-top: 32px;
    padding-bottom: 32px;
}

body.home .site-header::after {
    display: none;
}

body.home .menu-toggle {
    margin-left: auto;
}

.work-index {
    padding: 44px 0 96px;
}

.work-index [hidden] {
    display: none !important;
}

.work-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--at-line);
}

.work-intro h1 {
    margin: 0;
    font-size: clamp(44px, 5.2vw, 72px);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.025em;
}

.work-intro-note {
    margin: 0;
    font-size: 18px;
    font-style: italic;
    color: var(--at-soft);
}

.work-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 23px 0 34px;
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.work-filters button {
    appearance: none;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    padding: 2px 0 5px;
    background: transparent;
    color: var(--at-soft);
    font: 400 17px/1.3 var(--at-lat);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.work-filters button[aria-pressed="true"] {
    color: var(--at-ink);
    border-bottom-color: currentColor;
}

.work-filters button:hover {
    color: var(--at-ink);
}

.work-count {
    flex-shrink: 0;
    color: var(--at-soft);
    font-size: 15px;
    font-style: italic;
}

.work-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 4.5vw, 64px);
    row-gap: 64px;
}

.work-entry {
    min-width: 0;
}

.work-card {
    display: block;
    color: var(--at-ink);
}

.work-card:hover {
    color: var(--at-ink);
}

.work-picture {
    margin: 0;
    overflow: hidden;
    background: transparent;
}

.work-index .work-cover {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: none;
    transition: opacity .3s ease;
}

.work-card:hover .work-cover {
    opacity: .9;
}

.work-caption {
    padding-top: 18px;
}

.work-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
    color: var(--at-soft);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .025em;
}

.work-meta-divider {
    color: var(--at-line);
}

.work-caption h2 {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0;
}

.work-title-en {
    display: block;
    font: 400 clamp(25px, 2.3vw, 32px)/1.15 var(--at-lat);
    text-wrap: balance;
}

.work-title-zh {
    display: block;
    margin-top: 8px;
    font: 400 17px/1.55 var(--at-cn);
    letter-spacing: .06em;
}

.work-open {
    display: inline-flex;
    align-items: baseline;
    gap: 20px;
    margin-top: 35px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--at-line);
    font-size: 17px;
}

.work-open span {
    display: inline-block;
    transition: transform .2s ease;
}

.work-card:hover .work-open span {
    transform: translateX(3px);
}

.work-entry.is-featured {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--at-line);
}

.is-featured .work-card {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(28px, 4vw, 58px);
}

.is-featured .work-caption {
    padding: 0 0 4px;
}

.is-featured .work-title-en {
    font-size: clamp(36px, 4.1vw, 58px);
    line-height: 1;
    letter-spacing: -.02em;
}

.is-featured .work-title-zh {
    margin-top: 19px;
    font-size: 25px;
}

.is-featured .work-meta {
    margin-bottom: 20px;
    font-size: 15px;
}

.work-index button:focus-visible,
.work-card:focus-visible {
    outline: 1px solid var(--at-ink);
    outline-offset: 7px;
}

@media (prefers-reduced-motion: no-preference) {
    .work-intro,
    .work-toolbar,
    .work-entry.is-featured {
        animation: work-enter .55s ease-out both;
    }

    .work-toolbar { animation-delay: .06s; }
    .work-entry.is-featured { animation-delay: .12s; }

    @keyframes work-enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 960px) {
    .is-featured .work-card {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        column-gap: 28px;
    }

    .work-filters { gap: 8px 22px; }
    .work-open { margin-top: 24px; }
}

@media (max-width: 760px) {
    body.home .site-wrapper { padding: 0 20px; }
    body.home .site-header { padding: 22px 0; }
    .work-index { padding: 30px 0 64px; }
    .work-intro { align-items: end; padding-bottom: 22px; gap: 14px; }
    .work-intro h1 { font-size: 48px; }
    .work-intro-note { max-width: 110px; font-size: 15px; text-align: right; }
    .work-toolbar { gap: 12px; padding: 18px 0 28px; }
    .work-filters { gap: 8px 17px; }
    .work-filters button { font-size: 16px; min-height: 36px; }
    .work-count { display: none; }
    .work-catalog { grid-template-columns: minmax(0, 1fr); row-gap: 42px; }
    .work-entry.is-featured { margin: 0; padding-bottom: 36px; }
    .is-featured .work-card { display: block; }
    .is-featured .work-caption { padding: 20px 0 0; }
    .is-featured .work-meta { margin-bottom: 10px; font-size: 14px; }
    .is-featured .work-title-en { font-size: 38px; line-height: 1.08; }
    .is-featured .work-title-zh { margin-top: 8px; font-size: 20px; }
    .work-open { margin-top: 18px; font-size: 16px; }
    .work-caption { padding-top: 15px; }
    .work-title-en { font-size: 29px; }
    .work-title-zh { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .work-index * { transition: none !important; }
}
