:root {
  --ink: #17291c;
  --ivy: #2d4b2e;
  --ivy-deep: #132718;
  --moss: #667349;
  --gold: #9a7636;
  --gold-soft: #c7ad73;
  --paper: #eee4ca;
  --paper-light: #faf5e7;
  --line: rgba(91, 70, 35, .28);
  --shadow: rgba(34, 28, 15, .17);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.52), transparent 25rem),
    repeating-linear-gradient(0deg, rgba(96,68,30,.018) 0 1px, transparent 1px 4px),
    var(--paper);
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid var(--gold);
  background: rgba(19,39,24,.97);
  box-shadow: 0 4px 18px rgba(10,20,12,.18);
}
.monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-soft);
  outline: 1px solid var(--gold-soft);
  outline-offset: -5px;
  color: var(--paper-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  text-decoration: none;
}
.title-link {
  color: var(--paper-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav { display: flex; justify-content: flex-end; gap: 15px; flex-wrap: wrap; }
.site-header nav a { color: #d4c9ad; font-size: 10px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff8df; }
.site-header .category-dropdown { color: #f1e6c8; font-size: 10px; }
.site-header .category-dropdown summary:hover,
.site-header .category-dropdown summary:focus-visible { color: #fffdf3; }

main { width: min(1640px, 100%); min-width: 0; margin: auto; padding: 0 clamp(14px, 3.3vw, 56px) 90px; }
.hero { padding-top: clamp(22px, 4vw, 56px); }
.hero > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #6f5930;
  outline: 1px solid rgba(111,89,48,.42);
  outline-offset: 7px;
  box-shadow: 0 22px 48px var(--shadow);
}
.hero-title { max-width: 850px; margin: clamp(36px, 5vw, 72px) auto clamp(55px, 7vw, 100px); text-align: center; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.hero-title h1, .collection-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.hero-title h1 { font-size: clamp(55px, 8vw, 112px); line-height: .9; }
.hero-title > p:last-child { margin: 22px 0 0; color: #5d604d; font-size: 13px; font-style: italic; }

.collection { border-top: 1px solid var(--gold); }
.collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding: 42px 0 26px;
}
.collection-heading h2 { font-size: clamp(42px, 5vw, 72px); line-height: .92; }
.result-count { margin: 0 0 7px; color: #68654e; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

.filter-panel {
  position: relative;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250,245,231,.42);
}
.filter-group { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 17px 0; }
.filter-group + .filter-group { border-top: 1px solid var(--line); }
.filter-label { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.filter-label span { color: var(--gold); font-size: 9px; }
.filter-label h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options button, .clear-filters {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(61,78,49,.42);
  background: rgba(255,252,242,.62);
  color: var(--ivy-deep);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .06em;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.filter-options button:hover { transform: translateY(-1px); border-color: var(--ivy); }
.filter-options button[aria-pressed="true"] { border-color: var(--ivy-deep); background: var(--ivy-deep); color: var(--paper-light); }
.filter-options small { margin-left: 6px; color: inherit; opacity: .64; font-size: 8px; }
.clear-filters { position: absolute; right: 0; bottom: -52px; border-color: transparent; background: transparent; color: #765f34; text-decoration: underline; text-underline-offset: 4px; }
.active-filters { min-height: 56px; display: flex; align-items: center; gap: 9px; padding: 12px 0; color: #66654f; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.active-filters span { padding: 7px 10px; border: 1px solid var(--gold-soft); color: var(--ivy); background: rgba(255,250,235,.65); }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
.photo-card { min-width: 0; margin: 0; }
.photo-card > button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-light);
  cursor: zoom-in;
  box-shadow: 0 10px 24px rgba(45,37,20,.08);
}
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.photo-card button:hover img { transform: scale(1.025); filter: saturate(1.06); }
.photo-card figcaption { padding: 13px 4px 0; }
.photo-card h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.05; font-weight: 600; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 9px; color: #74705a; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.card-tags span + span::before { content: "\00b7"; margin-right: 10px; color: var(--gold); }
.empty-state { min-height: 260px; display: grid; place-items: center; margin: 0; border: 1px solid var(--line); color: #68654f; font-style: italic; text-align: center; }
.empty-state[hidden] { display: none; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 30px;
  border: 0;
  color: var(--paper-light);
  background: rgba(10,24,14,.97);
}
.lightbox::backdrop { background: #071009; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { height: calc(100dvh - 60px); min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; }
.lightbox img { min-height: 0; max-width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption { max-width: 850px; padding: 12px 70px 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; text-align: center; }
.lightbox > button { border: 1px solid rgba(238,228,202,.4); background: transparent; color: var(--paper-light); cursor: pointer; }
.lightbox > button:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
#closeLightbox { position: fixed; z-index: 2; right: 24px; top: 20px; width: 44px; height: 44px; font-size: 25px; }
.lightbox-arrow { width: 48px; height: 62px; margin: 10px; font-size: 20px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px clamp(18px,4vw,68px); border-top: 1px solid var(--gold); color: #d2c7aa; background: var(--ivy-deep); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { grid-column: 1 / -1; justify-content: flex-start; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header nav { display: none; }
  .hero > img { outline-offset: 4px; }
  .collection-heading { align-items: flex-start; flex-direction: column; }
  .filter-group { grid-template-columns: 1fr; gap: 5px; }
  .filter-label { padding-bottom: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  main { padding-inline: 11px; }
  .hero { padding-top: 16px; }
  .hero-title { margin: 31px auto 55px; }
  .hero-title h1 { font-size: 44px; }
  .hero-title h1 span { display: block; }
  .collection-heading { padding-top: 32px; }
  .collection, .filter-panel, .filter-group, .filter-options { min-width: 0; max-width: 100%; }
  .filter-options { gap: 6px; overflow: hidden; }
  .filter-options button { padding: 8px 10px; }
  .photo-grid { gap: 24px 9px; }
  .photo-card > button { padding: 4px; }
  .photo-card h3 { font-size: 18px; }
  .lightbox { padding: 68px 8px 14px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { height: calc(100dvh - 125px); }
  .lightbox-arrow { position: fixed; z-index: 2; bottom: 19px; background: rgba(10,24,14,.84) !important; }
  .lightbox-arrow.previous { left: 12px; }
  .lightbox-arrow.next { right: 12px; }
  .lightbox figcaption { padding: 10px 55px 0; font-size: 20px; }
  footer { flex-direction: column; }
}
