@font-face {
  font-family: "Cormorant";
  src: url("Cormorant/Cormorant-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
}

.cards {
  display: grid;
  grid-template-areas: "cards";
  list-style: none;
}

.card {
  grid-area: cards;
  display: flex;
  width: 15vmin;
  aspect-ratio: 2.5/3.5;
  border-radius: 2.5vmin;
  border: 0.2vmin solid hsl(0 0% 0% / 0.15);
  background-color: #fff;
  will-change: transform;
  overflow: hidden;
}

.card-face {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.8vmin;
  color: var(--card-color);
  font-family: "Inter", system-ui, sans-serif;
}

.card-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-corner--tl {
  top: 0.8vmin;
  left: 0.8vmin;
}

.card-corner--br {
  bottom: 1.4vmin;
  right: 1.4vmin;
  transform: rotate(180deg);
}

.card-rank {
  font-size: 2vmin;
  font-weight: 700;
  line-height: 1;
}

.card-suit {
  font-size: 1.5vmin;
  font-family: "Times New Roman", Times, serif;
  line-height: 1;
}

.card-pip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6vmin;
  font-family: "Times New Roman", Times, serif;
  line-height: 1;
}

.card-pip--ace {
  font-size: 9vmin;
}

.wordmark {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  color: #f5f5f5;
  line-height: 1;
}

.wordmark-name {
  font-size: clamp(16px, 2vw, 18px);
}

.wordmark-name .solitary {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25em;
}

.wordmark-meta {
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.75em;
}


.wordmark-description {
  font-size: clamp(13px, 1.5vw, 14px);
  color: #999;
}

.wordmark-contact {
  font-size: clamp(13px, 1.5vw, 14px);
  color: #999;
}

.wordmark-contact a {
  color: inherit;
  text-underline-offset: 2px;
}

.wordmark-contact a:hover {
  color: hsl(0 0% 70%);
}

@media (max-width: 768px) {
  body {
    padding-bottom: 8rem;
  }

  .card {
    width: 30vmin;
  }

  .wordmark {
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 1.5rem;
  }
}
