* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #131210;
  color: #f2ede3;
  font-family: "IBM Plex Mono", monospace;
  min-height: 100vh;
  padding: 48px 24px 32px;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin-bottom: 44px;
}
.masthead__mark {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}
.masthead__line {
  color: #9c968a;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.card {
  perspective: 1600px;
}
.card__toggle {
  display: none;
}
.card__content {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.6, 0.05, 0.15, 1);
}
.card__toggle:checked ~ .card__content {
  transform: rotateY(180deg);
}
.card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.card__face--front {
  background-size: cover;
  background-position: center;
  justify-content: space-between;
}
.card__face--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 75%);
}
.card__face--back {
  background: #1c1a17;
  transform: rotateY(180deg);
  padding: 26px 22px;
}
.card__tag {
  align-self: flex-start;
  margin: 16px;
  padding: 5px 10px;
  background: #a8583a;
  color: #f2ede3;
  font-size: 11px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.card__tag--boot {
  background: #6c7856;
}
.card__tag--sneaker {
  background: #33475b;
}
.card__front-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 22px;
}
.card__title {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
}
.card__tagline {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #d8d3c8;
  line-height: 1.4;
}
.card__button {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border: 1px solid #f2ede3;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.card__button:hover {
  background: #f2ede3;
  color: #131210;
}
.card__back-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card__specs {
  margin: 0 0 16px;
  padding: 0;
}
.card__spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(242, 237, 227, 0.12);
  font-size: 12px;
}
.card__spec dt {
  color: #9c968a;
}
.card__spec dd {
  margin: 0;
  text-align: right;
}
.card__note {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cfc9bc;
  margin: 0;
  flex: 1;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}
.card__price {
  font-size: 18px;
  font-weight: 500;
}
.card__return {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2ede3;
  cursor: pointer;
}
.card__return:hover {
  background: #f2ede3;
  color: #131210;
}

.foot-note {
  text-align: center;
  color: #9c968a;
  font-size: 11px;
  margin-top: 36px;
}
