/*
 * Listing archive — vertical, image-led cards.
 *
 * Borderless by design: on the warm ivory ground the card is defined by its
 * white surface and a soft two-layer shadow, not a hairline. That means the
 * resting shadow has to actually hold the shape, so it is a touch stronger
 * than a bordered card would need.
 */

/* ==========================================================================
   Archive shell
   ========================================================================== */

.st-archive {
  background: var(--paper, #fbf8f1);
  /* Generous clearance below the floating pill nav. */
  padding-block: clamp(148px, 13vw, 210px) clamp(64px, 7vw, 104px);
}

.st-archive .st-container { max-width: 1240px; }

.st-archive__header {
  margin-bottom: clamp(30px, 3.6vw, 48px);
}

.st-archive__header h1 {
  margin: 0;
  /* Smaller and lighter than a hero — this is a wayfinding label, not a
     statement. Capped in ch so long names break across lines instead of
     running the full width of the grid. */
  max-width: 17ch;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.022em;
  text-wrap: balance;
  color: var(--ink, #231f20);
}

.st-archive__intro {
  margin: .7em 0 0;
  max-width: 58ch;
  color: var(--muted, #7b6f64);
}

.st-archive__count {
  display: block;
  margin-top: .7em;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze, #b7833f);
}

.st-archive__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
}

.st-archive__empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted, #7b6f64);
}

/* ==========================================================================
   Card
   ========================================================================== */

.st-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(35, 31, 32, .05),
    0 4px 12px -8px rgba(35, 31, 32, .14);
  transition:
    box-shadow var(--st-dur-out, 190ms) var(--st-ease, ease),
    transform var(--st-dur-out, 190ms) var(--st-ease, ease);
}

.st-card:hover {
  box-shadow:
    0 2px 4px rgba(35, 31, 32, .05),
    0 18px 34px -20px rgba(35, 31, 32, .28);
  transform: translateY(-3px);
  transition:
    box-shadow var(--st-dur-in, 280ms) var(--st-ease-soft, ease),
    transform var(--st-dur-in, 280ms) var(--st-ease-soft, ease);
}

/* One stretched link: whole card is the target, one entry in the a11y tree. */
.st-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.st-card:focus-within {
  box-shadow:
    0 0 0 3px rgba(183, 131, 63, .34),
    0 18px 34px -20px rgba(35, 31, 32, .28);
}

.st-card__title a:focus-visible { outline: none; }

/* ---- Media ---- */

.st-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2, #f4ecdd);
}

.st-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--st-dur-slow, 460ms) var(--st-ease-soft, ease);
}

.st-card:hover .st-card__img { transform: scale(1.032); }

.st-card__img--empty {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(183, 131, 63, .20) 0%, rgba(183, 131, 63, 0) 62%),
    var(--paper-2, #f4ecdd);
}

.st-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
  color: #4a3a08;
  background: var(--champagne, #f7eb9b);
  border-radius: 999px;
}

.st-card__place {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(23, 20, 21, .58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}

.st-card__place svg { flex: none; }

/* ---- Body ---- */

.st-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 0;
}

.st-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink, #231f20);
}

.st-card__title a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--st-dur-out, 190ms) var(--st-ease, ease);
}

.st-card:hover .st-card__title a { color: var(--bronze, #b7833f); }

.st-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.st-card__metaitem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted, #7b6f64);
}

.st-card__metaitem svg { flex: none; color: var(--bronze, #b7833f); }

.st-card__rating { display: inline-flex; align-items: center; }

.st-card__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.st-card__perks li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .015em;
  color: #3d5730;
  background: #eef4e8;
  border-radius: 999px;
}

.st-card__perks svg { flex: none; }

/* ---- Foot: price + action ---- */

.st-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px 18px;
}

.st-card__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.st-card__from {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted, #7b6f64);
}

.st-card__amount {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--ink, #231f20);
  font-variant-numeric: tabular-nums;
}

.st-card__cur {
  margin-right: 1px;
  font-size: .56em;
  font-weight: 700;
  vertical-align: super;
  color: var(--bronze, #b7833f);
}

.st-card__amount--req {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.st-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: var(--key-black, #231f20);
  border-radius: 999px;
  transition:
    background-color var(--st-dur-out, 190ms) var(--st-ease, ease),
    color var(--st-dur-out, 190ms) var(--st-ease, ease);
}

.st-card__cta svg { flex: none; }

.st-card:hover .st-card__cta {
  background: var(--bronze, #b7833f);
  color: #fff;
  transition:
    background-color var(--st-dur-in, 280ms) var(--st-ease-soft, ease),
    color var(--st-dur-in, 280ms) var(--st-ease-soft, ease);
}

.st-card__cta--alt {
  color: #4a3a08;
  background: var(--champagne, #f7eb9b);
}

.st-card:hover .st-card__cta--alt {
  background: var(--bronze, #b7833f);
  color: #fff;
}

/* ==========================================================================
   Responsive + motion guards
   ========================================================================== */

@media (max-width: 620px) {
  .st-archive__list { grid-template-columns: 1fr; }
  .st-card__media { aspect-ratio: 16 / 10; }
  .st-card__cta { min-height: 48px; padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-card,
  .st-card:hover,
  .st-card__img,
  .st-card__cta,
  .st-card:hover .st-card__cta,
  .st-card__title a { transition: none; }

  .st-card:hover { transform: none; }
  .st-card:hover .st-card__img { transform: none; }
}

/* Coarse pointers never get a hover state — it only ever stuck after a tap. */
@media (hover: none) {
  .st-card:hover {
    transform: none;
    box-shadow:
      0 1px 2px rgba(35, 31, 32, .05),
      0 4px 12px -8px rgba(35, 31, 32, .14);
  }
  .st-card:hover .st-card__img { transform: none; }
  .st-card:hover .st-card__title a { color: var(--ink, #231f20); }
  .st-card:hover .st-card__cta { background: var(--key-black, #231f20); }
  .st-card:hover .st-card__cta--alt {
    background: var(--champagne, #f7eb9b);
    color: #4a3a08;
  }
}
