:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --ink: #1c2927;
  --rust: #ad4722;
  --sub: #4e5b57;
  --line: #cdcec4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 'DM Sans', Arial, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.frame { width: min(1312px, 90%); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -200px; z-index: 2; background: white; padding: .7rem; }
.skip:focus { top: 1rem; }
header { border-bottom: 1px solid var(--line); }
.bar, .foot { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar img { display: block; width: 155px; height: auto; mix-blend-mode: multiply; }
.back, .foot a { text-decoration: none; font-size: .9rem; font-weight: 600; }
.back:hover, .foot a:hover, .path a:hover { text-decoration: underline; }
.back span { margin-right: .4rem; }
.lead { margin-block: clamp(2.5rem,6vw,6rem) 2.7rem; }
.path { display: flex; align-items: center; gap: .65rem; font-size: .85rem; color: var(--sub); }
.path a { text-decoration: none; }
h1 { font-size: clamp(3.25rem,6.8vw,6.8rem); font-weight: 500; letter-spacing: -.066em; line-height: .98; margin: .45em 0 .28em; }
h1 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -.028em; }
.lead > p { margin: 0; max-width: 55ch; color: var(--sub); font-size: clamp(1rem,1.45vw,1.18rem); }
.filters { border-block: 1px solid var(--line); padding: 1.3rem 0; display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: end; gap: 1.25rem; }
.filters label { display: flex; flex-direction: column; gap: .48rem; font-size: .8rem; font-weight: 600; }
input, select, button { color: inherit; font: inherit; }
input, select { min-height: 48px; background: #fff; border: 1px solid #aab0a8; border-radius: 0; padding: .7rem .8rem; width: 100%; font-size: 1rem; font-weight: 400; }
.filters button { min-height: 48px; min-width: 135px; padding: .6rem 1rem; background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.filters button:hover { color: white; background: var(--ink); }
.result-line { display: flex; align-items: baseline; gap: .55rem; color: var(--sub); font-size: .85rem; margin: 1.65rem 0 1.25rem; }
.result-line b { font-size: 1rem; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.3rem clamp(1rem,2.5vw,2rem); }
.project { border-top: 1px solid var(--line); padding-top: .75rem; }
.project-link { text-decoration: none; display: block; }
.project-link img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; background: #e5e4dd; }
.place { margin: .9rem 0 .3rem; font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.project h2 { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin: 0; font-size: clamp(1.3rem,2vw,1.7rem); font-weight: 500; line-height: 1.17; letter-spacing: -.045em; }
.project h2 span { color: var(--rust); font-size: 1rem; }
.project-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.summary { margin: .45rem 0 0; font-size: .93rem; color: var(--sub); }
#empty { padding: 1rem 0 2rem; }
#empty h2 { margin: 0; font-size: 1.5rem; }
#empty p { margin: .4rem 0; }
footer { margin-top: 4rem; background: var(--ink); color: white; }
@media (max-width: 850px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 560px) {
  .bar, .foot { min-height: 67px; }
  .bar img { width: 126px; }
  .lead { margin-bottom: 2rem; }
  .filters, .grid { grid-template-columns: 1fr; gap: 1rem; }
  .filters button { width: 100%; }
  .grid { gap: 1.7rem; }
}
