.stamps-page {
  min-height: 100vh;
  background: var(--canvas);
}

.stamps-hero {
  padding: 56px 24px 32px;
  border-bottom: 1px solid var(--line);
}

.stamps-hero .container {
  max-width: 1100px;
}

.stamps-hero .headline {
  font-family: var(--app-font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

.stamps-hero .sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

.stamps-grid-section {
  padding: 16px 24px 0;
}

.stamps-toolbar {
  max-width: 1400px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stamps-count {
  font-size: 13px;
  color: var(--faint);
}

.stamps-filter-form select {
  font-family: var(--app-font-sans);
  font-size: 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 10px;
  max-width: 420px;
  cursor: pointer;
}

.stamps-filter-form select:hover {
  border-color: var(--faint);
}

.stamps-pagination {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.stamps-page-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffefa;
}

a.stamps-page-link:hover {
  border-color: var(--faint);
  background: var(--surface);
}

.stamps-page-disabled {
  color: var(--line);
  cursor: default;
}

.stamps-page-status {
  font-family: var(--app-font-mono);
  font-size: 12px;
  color: var(--faint);
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--canvas);
}

.stamp-tile {
  position: relative;
  display: block;
  background: var(--canvas);
  text-decoration: none;
  aspect-ratio: 1;
  overflow: hidden;
}

.stamp-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.stamp-tile:hover img {
  transform: scale(1.04);
}

.stamp-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 19, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.stamp-tile:hover .stamp-tile-overlay {
  opacity: 1;
}

.stamp-tile-overlay span {
  font-size: 12px;
  font-family: var(--app-font-mono);
  color: #faf9f5;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid rgba(250, 249, 245, 0.4);
  border-radius: 2px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .stamps-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .stamps-grid-section {
    padding: 16px 12px 0;
  }

  .stamps-hero {
    padding: 40px 16px 24px;
  }

  .stamps-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stamps-filter-form select {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .stamps-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}
