:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #24211d;
  --muted: #77706a;
  --line: #ded7ce;
  --accent: #8c725c;
  --accent-dark: #5d4636;
  --shadow: 0 10px 30px rgba(43, 35, 28, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 48px clamp(20px, 5vw, 72px) 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent-dark);
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

button:hover { opacity: .9; }

main {
  padding: 0 clamp(20px, 5vw, 72px) 60px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 14px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select, input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140,114,92,.14);
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 2px;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid rgba(222,215,206,.7);
}

.image-wrap {
  aspect-ratio: 4 / 5;
  background: #ebe5dc;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover img { transform: scale(1.04); }

.card-body { padding: 16px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eee7df;
  color: var(--accent-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.meta {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
}

.empty {
  grid-column: 1 / -1;
  padding: 46px 22px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .site-header {
    display: block;
    padding-top: 32px;
  }

  .header-actions { margin-top: 18px; }

  .filters { grid-template-columns: 1fr; }

  .summary {
    display: block;
    line-height: 1.8;
  }
}
