/* The digital gift card, as a scalable component.
   Artwork: assets/gift-card-art.svg (generated by scripts/gift-card/build-art.mjs).
   Type is set here in Cormorant Garamond and sized in container units, so the card
   reads identically at 320px on a phone and at 1536px in the rendered PNG.
   Used by gift-card.html, gift.html and scripts/gift-card/render.html. */

.gc {
  --gc-gold: #ecd4a2;
  --gc-gold-deep: #c9a46c;
  --gc-cream: #f4ead6;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  border-radius: 2.9cqw;
  overflow: hidden;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--gc-cream);
  isolation: isolate;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 60px -10px rgba(201, 164, 108, .25);
}
.gc-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: -1; user-select: none; pointer-events: none;
}
.gc-type {
  position: absolute; left: 0; right: 0; top: 20.5%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.gc-brand {
  display: flex; align-items: center; gap: 1.6cqw;
  font-weight: 500; font-size: 2.55cqw; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gc-gold); padding-left: .34em;
}
.gc-brand::before, .gc-brand::after {
  content: ""; width: 7cqw; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gc-gold-deep));
}
.gc-brand::after { background: linear-gradient(90deg, var(--gc-gold-deep), transparent); }
.gc-title {
  margin-top: 2.2cqw;
  font-weight: 400; font-size: 8.4cqw; line-height: .98; letter-spacing: .07em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3d8 0%, #ecd09a 55%, #c99f62 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1.2cqw rgba(255, 220, 160, .22));
  padding-left: .07em;
}
.gc-sub {
  margin-top: 1.5cqw;
  font-weight: 500; font-size: 2.45cqw; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gc-gold); padding-left: .3em;
}
.gc-rule {
  display: flex; align-items: center; gap: 1cqw; margin-top: 1.9cqw;
  color: #fff3d4; font-size: 1.9cqw; line-height: 1;
}
.gc-rule::before, .gc-rule::after {
  content: ""; width: 9cqw; height: 1px; background: var(--gc-gold-deep); opacity: .8;
}
.gc-tag {
  margin-top: 1.9cqw;
  font-style: italic; font-size: 2.6cqw; line-height: 1.35; color: var(--gc-cream);
  text-shadow: 0 0 1cqw rgba(0, 0, 0, .6);
}

/* Personalised footer, shown on the recipient's card (gift.html) and the live preview. */
.gc-for {
  position: absolute; left: 0; right: 0; bottom: 7.2%;
  display: flex; justify-content: center; gap: 3cqw;
  font-size: 2.1cqw; letter-spacing: .2em; text-transform: uppercase;
  color: #fff6e3; text-shadow: 0 0 1.4cqw rgba(30, 15, 40, .95), 0 0 .4cqw rgba(30, 15, 40, .9);
}
.gc-for:empty { display: none; }
.gc-for b { font-weight: 500; color: #fff; letter-spacing: .12em; }
