/* Home */

.hero {
  display: grid;
  gap: 48px;
  padding-block: 56px 72px;
}

.hero-title {
  max-width: 14ch;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
}

.hero-title em {
  color: var(--rose);
  font-style: normal;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: var(--fs-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 24px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}



.hero-art {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 8px;
}

.art-card {
  position: absolute;
  inset: 0;
  border-radius: var(--r-3);
}

.art-card--back {
  background: var(--wine);
  transform: rotate(6deg) translate(14px, 6px);
}

.art-card--front {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
}

.art-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
}

.art-brand {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.art-brand-mark {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--wine);
}

.art-brand-mark .icon {
  width: 100%;
  height: 100%;
}

.art-card-body {
  margin-block: auto;
}

.art-prompt {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.05;
}

.art-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.art-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(43, 25, 33, 0.18);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    padding-block: 88px 104px;
  }

  .hero-art {
    width: min(100%, 320px);
    margin-right: 24px;
  }
}

/* Sections */

.section {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.section-lede {
  max-width: 36rem;
  margin-top: 14px;
  color: var(--text-2);
}

/* Recent rooms */

.recent-section {
  padding-block: 0 56px;
}

.recent-title {
  font-size: 1.5rem;
}

.recent-text {
  margin-top: 4px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.history-list {
  display: flex;
  gap: 12px;
  margin: 16px calc(var(--gutter, 20px) * -1) 0;
  padding: 2px var(--gutter, 20px) 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter, 20px);
  scrollbar-width: thin;
}

.history-row {
  display: grid;
  flex: 0 0 min(72vw, 240px);
  gap: 14px;
  align-content: space-between;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  scroll-snap-align: start;
}

.history-row:hover {
  border-color: var(--line-strong);
}

.history-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--gold);
}

.history-body {
  display: grid;
  gap: 4px;
}

.history-title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.history-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.history-chevron {
  display: none;
}

/* How it works */

.steps {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.step h3 {
  font-size: 1.6rem;
}

.step p {
  margin-top: 8px;
  max-width: 28rem;
  color: var(--text-2);
}

.promise {
  display: flex;
  gap: 12px;
  max-width: 40rem;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.promise .icon {
  margin-top: 4px;
  color: var(--gold);
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Catalogue */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  min-height: var(--tap);
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.chip:hover {
  border-color: var(--text-2);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.packs-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.packs-loading,
.packs-error,
.packs-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--text-3);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.pack-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--bg-raised);
  transition: border-color 0.18s var(--ease);
}

.pack-card:hover {
  border-color: var(--line-strong);
}

.pack-art {
  display: grid;
  aspect-ratio: 8 / 5;
  place-items: center;
  overflow: hidden;
  align-self: start;
  border-radius: var(--r-1);
  background: var(--bg-sunk);
  color: var(--gold);
}

.pack-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.pack-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  vertical-align: 3px;
}

.pack-tagline {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.pack-meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.pack-card.is-locked {
  opacity: 0.6;
}

.pack-card.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.pack-card--new {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.pack-card--new .pack-art-glyph {
  color: var(--gold);
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@media (min-width: 760px) {
  .packs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Custom pack band */

.custom-band {
  display: grid;
  gap: 24px;
  align-items: end;
}

@media (min-width: 760px) {
  .custom-band {
    grid-template-columns: 1fr auto;
  }
}

.pack-art-glyph .icon {
  width: 22px;
  height: 22px;
}
