/* Storefront typography: lettering and text color only. Layout and backgrounds stay in their own files. */
@font-face { font-family: 'Memorias Titulo'; src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Memorias Texto'; src: url('assets/fonts/dm-sans-latin.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Memorias Saludo'; src: url('assets/fonts/pacifico-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

#main-content :is(#home-view, #lower-home, #templates, #plans) {
  --sans: 'Memorias Texto', ui-sans-serif, system-ui, sans-serif;
  --text-title: 'Memorias Titulo', ui-sans-serif, system-ui, sans-serif;
  --text-sunset: linear-gradient(95deg, #ffd36b 0, #ffa64d 32%, #ff7a59 60%, #ff4f9a 100%);
  --text-sun: #ffc14d;
  font-family: var(--sans);
  font-variant-numeric: lining-nums;
}

#main-content :is(#home-view, #lower-home, #templates, #plans) :is(h1, h2) {
  color: #fff9f2;
  font-family: var(--text-title);
  font-weight: 800;
  letter-spacing: -.028em;
}
#main-content :is(#home-view, #lower-home, #templates, #plans) h3 {
  font-family: var(--text-title);
  font-weight: 700;
  letter-spacing: -.015em;
}
#main-content :is(#templates .template-card, #lower-home .featured-card) .template-info > h3 {
  font-family: var(--text-title);
  font-weight: 700;
}

/* The highlighted words of every heading flow through the sunset colors. */
#main-content :is(#home-view, #lower-home, #templates, #plans) :is(h1, h2) em {
  color: transparent;
  background: var(--text-sunset) 0 0 / 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--text-title);
  font-style: normal;
  font-weight: 800;
  animation: text-flow 7s ease-in-out infinite alternate;
}
@keyframes text-flow { to { background-position: 100% 0; } }

#main-content :is(#home-view, #lower-home, #templates, #plans) .eyebrow { color: var(--text-sun); }
#main-content :is(#home-view, #lower-home, #templates, #plans) .plan-price { font-family: var(--text-title); }
#main-content #lower-home .trust-panel-lead { font-family: var(--text-title); letter-spacing: -.02em; white-space: nowrap; }
#main-content #plans .plan-card h2, #main-content #plans [id$='-plan-heading'] { letter-spacing: -.012em; }

/* Main heading: a stroke that draws itself under the words, and a beating heart. */
#main-content #home-heading em { position: relative; width: fit-content; padding-bottom: .1em; }
#main-content #home-heading em::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .07em;
  border: 0;
  border-radius: 999px;
  background: var(--text-sunset);
  transform: none;
  animation: text-stroke 1.6s .4s cubic-bezier(.22, 1, .36, 1) backwards;
}
@keyframes text-stroke { from { clip-path: inset(0 100% 0 0); } }
#main-content #home-heading em::before {
  content: '♥';
  position: absolute;
  top: .12em;
  left: 100%;
  margin-left: .16em;
  color: #ff3d9a;
  -webkit-text-fill-color: #ff3d9a;
  font-size: .56em;
  line-height: 1;
  animation: text-beat 1.5s ease-in-out infinite;
}
@keyframes text-beat { 0%, 28%, 56%, 100% { transform: scale(1); } 14% { transform: scale(1.24); } 42% { transform: scale(1.16); } }

/* "Mi panel" shares the same lettering; its surfaces stay in gift-collection.css. */
#main-content #account-view {
  --panel-title: 'Memorias Titulo', ui-sans-serif, system-ui, sans-serif;
  font-family: 'Memorias Texto', ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: lining-nums;
}
#main-content #account-view :is(h1, h2, h3) { font-family: var(--panel-title); letter-spacing: -.02em; }
#main-content #account-view .gift-body h2, #main-content #account-view .panel-box h2, #main-content #account-view .panel-empty h2 { font-weight: 700; }
#main-content #account-view .gift-monogram { font-family: var(--panel-title); font-style: normal; font-weight: 800; }
#main-content #account-view .gift-note.is-urgent, #main-content #account-view .panel-empty-mark { color: #ffc14d; }
/* Signed in, the heading greets the person by name in Pacifico with a soft neon glow. */
#main-content #account-view .panel-head h1 { margin: 0; color: #fff9f2; font-size: clamp(2rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.25; letter-spacing: -.028em; }
#main-content #account-view .panel-hello {
  display: inline-block;
  padding-right: 8px;
  color: transparent;
  background: linear-gradient(100deg, #fbe3bb 0%, #f6c98a 30%, #ff9fb8 62%, #ff6fae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: 'Memorias Saludo', cursive;
  font-weight: 400;
  letter-spacing: 0;
  filter: drop-shadow(0 0 10px #ff8cc466) drop-shadow(0 0 22px #f2a65a33);
}
#main-content #account-view .panel-hello::after { content: '✦'; display: inline-block; margin-left: 4px; color: #fbe3bb; -webkit-text-fill-color: #fbe3bb; font-size: .55em; vertical-align: super; filter: drop-shadow(0 0 6px #fbe3bb); }
#main-content #account-view .panel-hello[hidden] { display: none; }
#main-content #account-view .panel-tabs button[aria-selected="true"] {
  color: transparent;
  background: linear-gradient(95deg, #ffd36b 0, #ffa64d 32%, #ff7a59 60%, #ff4f9a 100%) 0 0 / 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  animation: text-flow 7s ease-in-out infinite alternate;
}
/* Each card is titled with its template; the recipient reads below in gold. */
#main-content #account-view .gift-body h2 { margin: 0; color: #fff8f3; font-size: 1.22rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
#main-content #account-view .gift-for { margin: 2px 0 10px; color: #b39fb2; font-family: 'Memorias Texto', ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
#main-content #account-view .gift-name { color: #f6c98a; font-weight: 700; }
#main-content #account-view .gift-monogram { font-size: 5rem; letter-spacing: -.04em; text-shadow: 0 0 34px #ffffffa6, 0 6px 22px #0000005c; }
@media (max-width: 1100px) {
  #main-content #home-heading em::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content :is(#home-view, #lower-home, #templates, #plans) :is(h1, h2) em,
  #main-content #account-view .panel-tabs button[aria-selected="true"],
  #main-content #home-heading em::before { animation: none; }
  #main-content #home-heading em::after { animation: none; }
}
