/* The archive uses a warm mounting board and a dark bottom edge on each print. */
.portfolio-entry {
    --entry-ink: #29251f;
    --entry-meta: #655743;
    --entry-border: #b8ad98;
    min-width: 0;
    color: var(--entry-ink);
    font-family: var(--sans);
}
.portfolio-entry .project-link {
    position: relative;
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr;
    background: #ece6d8;
    padding: 6px 6px 0;
    box-shadow: 0 2px 0 #a79778;
    border-radius: 2px 2px 0 0;
    transition: background-color .22s, box-shadow .22s, transform .22s;
}
.portfolio-entry .card-photo { aspect-ratio: 1.64; background: #3c3830; }
.portfolio-entry .card-photo img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s; }
.portfolio-entry .entry-caption { position: relative; padding: 9px 6px 11px; }
.portfolio-entry .entry-meta { color: var(--entry-meta); font: 600 9px/1.4 var(--sans); letter-spacing: .105em; text-transform: uppercase; }
.portfolio-entry .entry-title {
    margin: 4px 16px 0 0;
    color: var(--entry-ink);
    font: 500 clamp(17px,1.38vw,22px)/1.15 var(--serif);
    letter-spacing: -.045em;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.entry-place { color: var(--entry-meta); font: 500 10px/1.4 var(--sans); display: flex; gap: 3px; align-items: center; margin-top: 7px; }
.entry-place .icon { width: 12px; height: 12px; }
.entry-arrow { position: absolute; right: 4px; top: 27px; color: #75654c; transition: transform .2s; }
.entry-arrow .icon { width: 13px; height: 13px; }
@media (hover:hover) {
    .portfolio-entry .project-link:hover { transform: translateY(-2px); box-shadow: 0 3px 0 #cbb17e; background: #f6f0e3; }
    .portfolio-entry .project-link:hover .entry-title { color: #43341e; }
    .portfolio-entry .project-link:hover .entry-arrow { transform: translate(2px,-2px); }
    .portfolio-entry .project-link:hover .card-photo img { transform: scale(1.045); filter: saturate(1.05); }
}

/* Faceted collection with a fixed-width category index beside the photographs. */
.portfolio-page { max-width: 1530px; padding-top: 4px; padding-bottom: clamp(48px,6vw,95px); }
.portfolio-title { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: end; gap: 22px; padding: clamp(23px,3vw,47px) 0 clamp(21px,2vw,35px); border-bottom: 1px solid #676050; }
.portfolio-heading, .portfolio-heading-measure { display: grid; }
.portfolio-heading { font: 400 clamp(28px,2.8vw,46px)/1.16 var(--serif); letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
.portfolio-heading > *, .portfolio-heading-measure > span { grid-area: 1 / 1; min-width: 0; }
.portfolio-heading h1 { font: inherit; letter-spacing: inherit; }
.portfolio-heading-measure { visibility: hidden; user-select: none; }
.portfolio-heading .heading-accent { color: #ddc497; }
.portfolio-title p { min-width: 8em; display: flex; justify-content: end; align-items: baseline; gap: 6px; color: #b9b2a3; font: 500 11px var(--sans); }
.portfolio-title strong { color: #e7d5b2; font: 400 clamp(22px,1.9vw,32px)/1 var(--serif); letter-spacing: -.07em; }
.portfolio-workspace { display: grid; grid-template-columns: clamp(165px,15vw,230px) minmax(0,1fr); gap: clamp(22px,3vw,50px); }
.portfolio-categories { padding: 22px 0; }
.index-label { color: #c8ba9d; font: 600 10px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.portfolio-categories nav { display: grid; margin-top: 14px; border-top: 1px solid #454136; }
.portfolio-categories a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 500 12px/1.45 var(--sans); color: #c7c3b8; border-bottom: 1px solid #423f36; padding: 11px 8px; }
.portfolio-categories a small { color: #a9a390; font: 500 10px var(--sans); font-variant-numeric: tabular-nums; }
.portfolio-categories a[aria-current] { background: #e1c48c; color: #28251d; }
.portfolio-categories a[aria-current] small { color: #49402d; }
.portfolio-categories a:not([aria-current]):hover { background: #302e26; color: #efd8a8; }
.portfolio-results { min-width: 0; }
.portfolio-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 52px; font: 500 11px/1.4 var(--sans); color: #b5ad9c; }
.portfolio-tools p { font-variant-numeric: tabular-nums; }
.portfolio-tools strong { color: #e6ded0; font-weight: 500; }
.portfolio-tools .sort-form { margin-left: auto; }
.portfolio-tools .sort-form select { border-bottom: 1px solid #8e8067; padding-block: 4px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(14px,1.7vw,25px) clamp(12px,1.2vw,20px); }
.portfolio-page .pagination { margin-top: clamp(25px,3.5vw,56px); }

@media (prefers-reduced-motion: no-preference) {
    .portfolio-grid .portfolio-entry { animation: print-arrival .36s cubic-bezier(.2,.7,.25,1) backwards; }
    .portfolio-grid .portfolio-entry:nth-child(4n + 2) { animation-delay: 35ms; }
    .portfolio-grid .portfolio-entry:nth-child(4n + 3) { animation-delay: 70ms; }
    .portfolio-grid .portfolio-entry:nth-child(4n) { animation-delay: 105ms; }
    @keyframes print-arrival { from { opacity: .72; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1100px) {
    .portfolio-workspace { grid-template-columns: 155px minmax(0,1fr); gap: 23px; }
    .portfolio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 840px) {
    .portfolio-workspace { display: block; }
    .portfolio-categories { padding: 11px 0 0; }
    .portfolio-categories .index-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .portfolio-categories nav { display: flex; overflow-x: auto; padding: 1px 0 6px; margin: 0; gap: 5px; align-items: stretch; border: 0; scrollbar-width: thin; scrollbar-color: #776b54 transparent; }
    .portfolio-categories a { flex: none; align-items: center; padding: 7px 9px; border: 1px solid #494436; font-size: 11px; gap: 6px; }
    .portfolio-categories a small { font-size: 9px; }
    .portfolio-tools { padding-block: 14px 20px; gap: 12px; align-items: end; flex-wrap: wrap; }
    .portfolio-tools p { align-self: end; padding-bottom: 14px; font-size: 12px; }
    .portfolio-tools .sort-form { position: relative; display: grid; gap: 5px; width: min(100%, 165px); }
    .portfolio-tools .sort-form label { font-size: 12px; }
    .portfolio-tools .sort-form select {
        appearance: none; display:block; width: 100%; min-height: 46px; box-sizing: border-box;
        border: 1px solid #665e4f; border-radius: 5px; padding: 9px 34px 9px 12px;
        color: var(--paper); background: #232320; font: 500 16px/1.25 var(--sans);
    }
    .portfolio-tools .sort-form::after {
        content: ''; position: absolute; right: 14px; bottom: 21px; width: 7px; height: 7px;
        border-right: 1.5px solid #e1c48c; border-bottom: 1.5px solid #e1c48c;
        transform: rotate(45deg); pointer-events: none;
    }
}
@media (max-width: 600px) {
    .portfolio-title { padding: 20px 0 15px; gap: 12px; }
    .portfolio-title p { min-width: 5em; font-size: 9px; gap: 2px; flex-direction: column; align-items: end; }
    .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
    .portfolio-entry .project-link { padding: 4px 4px 0; }
    .portfolio-entry .card-photo { aspect-ratio: 1.5; }
    .portfolio-entry .entry-caption { padding: 7px 4px 9px; }
    .portfolio-entry .entry-meta { font-size: 8px; letter-spacing: .065em; }
    .portfolio-entry .entry-title { font-size: clamp(16px,4.2vw,21px); margin: 4px 0 0; }
    .entry-place { font-size: 9px; margin-top: 5px; }
    .entry-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .portfolio-entry .project-link, .portfolio-entry .card-photo img, .portfolio-entry .entry-arrow { transition: none; }
    .portfolio-entry .project-link:hover, .portfolio-entry .project-link:hover .card-photo img, .portfolio-entry .project-link:hover .entry-arrow { transform: none; }
}

@media (min-width: 769px) { .portfolio-page > .breadcrumbs { padding-left: max(0px, calc(3vw + 95px - var(--gutter))); } }
.portfolio-about { max-width: 72ch; margin-top: clamp(34px,5vw,72px); padding-top: clamp(20px,2.4vw,34px); border-top: 1px solid #676050; }
.portfolio-about h2 { margin-bottom: 12px; color: #f5f0e7; font: 400 clamp(20px,2vw,28px)/1.2 var(--serif); letter-spacing: -.02em; }
.portfolio-about p { margin-bottom: 14px; color: #b9b2a3; font: 400 clamp(14px,1.1vw,16px)/1.75 var(--sans); }
.portfolio-about .text-link { display: inline-flex; align-items: center; gap: 8px; color: #e6c482; }
