/* ===== RESET / GLOBALS ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #0f0c09; }
::selection { background: #d8a942; color: #0f0c09; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE LAYOUT ===== */
.page {
  background: #0f0c09;
  min-height: 100vh;
  color: #ece1cf;
  font-family: 'JetBrains Mono', monospace;
  padding: 0 0 120px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HEADER ===== */
.site-header {
  padding: 96px 0 56px;
  border-bottom: 1px solid #221c14;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: #d8a942;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 40px;
}

.title {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #ece1cf;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.intro {
  margin-top: 30px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.85;
  color: #8c8170;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 34px 0 30px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.count-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #5f574a;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== GALLERY GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

/* ===== CARD ===== */
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #14100b;
  border: 1px solid #29221a;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  animation: riseIn 0.5s ease both;
}

.card:hover {
  border-color: #d8a942;
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -20px rgba(216, 169, 66, 0.45);
}

.card-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #16120c;
  background-image: repeating-linear-gradient(135deg, #181309 0px, #181309 11px, #1d1710 11px, #1d1710 22px);
  border-bottom: 1px solid #29221a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-shot-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6c6354;
  text-align: center;
  padding: 0 20px;
}

.card-shot-sub {
  color: #4a4337;
  letter-spacing: 0.16em;
}

.card-num {
  position: absolute;
  left: 16px;
  bottom: 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  color: rgba(216, 169, 66, 0.16);
}

.card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b78f3a;
  border: 1px solid #4a3c1d;
  border-radius: 3px;
  padding: 4px 8px;
  background: rgba(15, 12, 9, 0.55);
}

.card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  color: #ece1cf;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.card-caption {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8c8170;
}

.card-meta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-domain {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #b78f3a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  font-size: 14px;
  color: #d8a942;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 96px;
  padding-top: 30px;
  border-top: 1px solid #221c14;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5f574a;
}

.footer-link {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b78f3a;
  text-decoration: none;
}

.footer-link:hover {
  color: #d8a942;
}
