body.works-page {
    --accent: #ed164a;
    background: #F1F2EC;
    color: #111;
}
.works-page .header-nav { padding-inline: clamp(24px, 5.6vw, 95px); }
.works-page .header-btn { letter-spacing: 3px; }
.works-page main {
    padding: 108px clamp(13px, 2.2vw, 34px) 48px;
}
.works-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 38px;
}
.works-filter {
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    min-width: 76px;
    background: #fafafa;
    color: #ed164a;
    font: 12px/1.2 'Space Mono', monospace;
    cursor: pointer;
    box-shadow: 0 0 14px #f5b8d366;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.works-filter[data-work-filter="interaction"] { min-width: 138px; }
.works-filter:hover,
.works-filter:focus-visible,
.works-filter.is-active {
    background: #ed164a;
    color: #fff;
    transform: translateY(-1px);
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
    transition: opacity 80ms ease, transform 80ms ease;
}
.works-grid.is-filtering {
    opacity: .45;
    transform: translateY(4px);
}
.works-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.works-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
    background: #f7f7f7;
    transition: opacity 220ms ease, transform 220ms ease;
}
.works-book-cover { position: relative; overflow: hidden; aspect-ratio: 1.45; background: #f7f7f7; }
.works-book-cover img { position: absolute; width: 200%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.works-book-cover--right img { right: 0; }
.works-book-cover--left img { left: 0; }
.works-placeholder-image {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.45;
    background: #f4f4f1;
    color: #9a9a92;
    font-size: 12px;
    letter-spacing: 1px;
}
.works-card:hover img,
.works-card:focus-visible img {
    opacity: .82;
    transform: scale(.99);
}
.works-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 0;
    font-size: 15px;
    line-height: 1.35;
}
.works-card-meta span:last-child {
    color: #777;
    text-align: right;
}
.works-card-placeholder .works-card-meta {
    color: #777;
}
.works-empty {
    grid-column: 1 / -1;
    margin: 20px 0;
    color: #777;
    font-size: 13px;
}
.works-page :focus-visible {
    outline: 2px solid #ed164a;
    outline-offset: 4px;
}
@media (max-width: 700px) {
    .works-page main { padding-top: 88px; }
    .works-filters { gap: 8px; margin-bottom: 26px; }
    .works-filter { padding: 7px 12px; font-size: 10px; }
    .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; }
    .works-card-meta { padding-inline: 4px; font-size: 12px; gap: 8px; }
}
@media (max-width: 600px) {
    .works-page .header-nav { padding-inline: 20px; gap: 0; }
    .works-page .header-nav li + li { margin-left: 14px; }
    .works-page .header-btn { letter-spacing: 1px; font-size: 12px; }
}
@media (max-width: 430px) {
    .works-grid { grid-template-columns: 1fr; }
}
