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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  font-size: clamp(11px, 0.7vw + 8px, 16px);
}

body {
  min-height: 100%;
  color: #1a1714;
  background-color: #f3efe8;
  background-image:
    radial-gradient(
      ellipse 100% 80% at 12% 10%,
      rgba(255, 252, 247, 0.95) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 70% at 88% 90%,
      rgba(232, 222, 208, 0.75) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 60% 50% at 50% 45%,
      rgba(245, 238, 228, 0.6) 0%,
      transparent 60%
    ),
    linear-gradient(
      160deg,
      #faf7f2 0%,
      #f3efe8 32%,
      #ebe4da 62%,
      #e4dcd0 100%
    );
  background-attachment: fixed;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em 1.25em;
  overflow: hidden;
}

.flick-group {
  position: relative;
}

.flick-group__relative-object {
  opacity: 0;
  pointer-events: none;
  width: 47em;
  max-width: min(47em, 92vw);
  position: relative;
}

.flick-group__relative-object-before {
  padding-top: 75%;
}

.flick-group__collection {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.flick-group__list {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.flick-group__item {
  position: absolute;
  will-change: transform, opacity;
}

.flick-card {
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  background-color: #000;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
  width: 23.5em;
  max-width: min(23.5em, 58vw);
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(26, 23, 20, 0.14),
    0 28px 64px rgba(26, 23, 20, 0.1);
}

.flick-card__before {
  padding-top: 150%;
}

.flick-card__media {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.cover-image {
  pointer-events: none;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: auto;
}

.flick-card__h3 {
  letter-spacing: -0.025em;
  font-size: 4em;
  font-weight: 500;
  line-height: 1;
  position: absolute;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.flick-card__btn {
  background-color: #000;
  border-radius: 0.375em;
  justify-content: center;
  align-items: center;
  width: calc(100% - 4em);
  height: 3.25em;
  text-decoration: none;
  display: flex;
  position: absolute;
  bottom: 2em;
  left: 2em;
  z-index: 2;
}

.flick-card__btn-span {
  color: #fff;
  font-size: 1em;
  font-weight: 500;
}

[data-flick-cards-dragger] {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: auto;
  touch-action: pan-y;
}

[data-flick-drag-status="grab"] {
  cursor: grab;
}

[data-flick-drag-status="grabbing"] {
  cursor: grabbing;
}

[data-flick-drag-status="grabbing"] [data-flick-cards-dragger] {
  cursor: grabbing;
}

[data-flick-cards-item-status] .flick-card__media {
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

[data-flick-cards-item-status="2-before"] .flick-card__media,
[data-flick-cards-item-status="2-after"] .flick-card__media {
  transition: opacity 0.2s ease;
  opacity: 0.75;
}

[data-flick-cards-item-status="active"] .flick-card__media {
  opacity: 1;
}

[data-flick-cards-item-status] .flick-card__btn {
  transition:
    opacity 0.4s cubic-bezier(0.625, 0.05, 0, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translate(0%, 50%) rotate(0.001deg);
  pointer-events: none;
}

[data-flick-cards-item-status="active"] .flick-card__btn {
  opacity: 1;
  transform: translate(0%, 0%) rotate(0.001deg);
  pointer-events: auto;
}

@media (max-width: 560px) {
  .flick-card__h3 {
    font-size: 3.25em;
  }

  .flick-card__btn {
    width: calc(100% - 2.5em);
    height: 2.85em;
    bottom: 1.25em;
    left: 1.25em;
  }
}
