*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #2b1a12;
}

body {
  min-height: 100%;
  margin: 0;
  color: #fff7e3;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 22% 8%, rgba(223, 165, 139, 0.24), transparent 32rem),
    linear-gradient(135deg, #2b1a12 0%, #3d2419 55%, #1c100b 100%);
}

.marketplace {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.marketplace__header {
  max-width: 680px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #e0b574;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #fff2d0;
  font-size: clamp(2.7rem, 9vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
}

.lede {
  margin-top: 18px;
  color: rgba(255, 247, 227, 0.76);
  font-size: 1.15rem;
  line-height: 1.55;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  gap: 24px;
}

.template-card {
  overflow: hidden;
  border: 1px solid rgba(239, 201, 138, 0.3);
  border-radius: 8px;
  background: rgba(255, 245, 219, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.template-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.template-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 12;
  height: auto;
  object-fit: cover;
  object-position: center 22%;
}

.template-card__body {
  padding: 22px;
}

.template-card__body p {
  color: #e4c58d;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-card__body h2 {
  margin-top: 8px;
  color: #fff4d7;
  font-size: 1.9rem;
  font-weight: 500;
}

.template-card__body span {
  display: inline-flex;
  margin-top: 20px;
  color: #f3d699;
  font-size: 1rem;
}

.template-card a:focus-visible {
  outline: 3px solid #f3d699;
  outline-offset: 4px;
}
