/* =========================================================
   SerEnor Tarot Page CSS
   for: tarot parent page
   depends on shared style.css tokens / buttons / lp classes
========================================================= */

/* ===== page base ===== */
.serenor-tarot-page .lp-main{
  padding-top: calc(92px + env(safe-area-inset-top));
}

.tarot-hero{
  padding: 12px 0 44px;
  background: var(--bg);
}

.tarot-hero__inner{
  width: min(var(--lp-narrow), calc(100% - (var(--lp-pad-x) * 2)));
  text-align: center;
}

.tarot-hero__copy{
  display: grid;
  gap: 14px;
}

.tarot-hero__eyebrow{
  margin: 0;
  color: var(--notice);
  font-size: var(--fs-note);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.tarot-hero__title{
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .05em;
  color: var(--navy);
}

.tarot-hero__lead{
  margin: 0;
  font-size: var(--fs-body-long);
  line-height: 1.95;
  letter-spacing: .03em;
}

/* ===== shared section ===== */
.tarot-section{
  padding: 0 0 var(--lp-space-5);
  background: var(--bg);
}

.tarot-section__inner{
  width: min(var(--lp-max), calc(100% - (var(--lp-pad-x) * 2)));
}

.tarot-copy{
  width: min(100%, var(--lp-narrow));
  margin: var(--lp-space-3) auto 0;
  text-align: left;
  display: grid;
  gap: 18px;
  font-size: var(--fs-body-long);
  line-height: 1.7;
  letter-spacing: .02em;
}

.tarot-copy p{
  margin: 0;
}

.tarot-copy--center{
  text-align: center;
}

.tarot-section--feature .tarot-copy{
  gap: 20px;
}


/* ===== arcana guide ===== */
.tarot-arcana-guide__items{
  width: min(100%, var(--lp-narrow));
  margin: var(--lp-space-3) auto 0;
  display: grid;
  gap: var(--lp-space-3);
}

.tarot-arcana-guide__item{
  padding: 22px 18px;
  border-radius: var(--lp-radius-md);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(60,76,105,.10);
}

.tarot-arcana-guide__title{
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
}

.tarot-arcana-guide__copy{
  width: 100%;
  margin-top: 18px;
}

@media (min-width: 768px){
  .tarot-arcana-guide__item{
    padding: 26px 28px;
  }
}

/* ===== card index ===== */
.tarot-card-index .tarot-section__inner{
  width: min(var(--lp-max), calc(100% - (var(--lp-pad-x) * 2)));
}

.tarot-card-grid{
  list-style: none;
  margin: var(--lp-space-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
}

.tarot-card-grid__item{
  min-width: 0;
}

.tarot-card-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 10px;
  height: 100%;
  padding: 14px 8px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(60,76,105,.10);
  box-shadow: var(--lp-shadow-soft);
  text-decoration: none;
  text-align: center;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
 */
}

.tarot-card-link__image{
  width: 100%;
  max-width: 110px;
  aspect-ratio: 7 / 12;
  object-fit: contain;
  margin-inline: auto;
}

.tarot-card-link__name{
  display: block;
  font-size: var(--fs-note);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tarot-card-link:is(:focus, :focus-visible){
  outline: 2px solid rgba(0,0,0,.2);
  outline-offset: 2px;
}

@media (hover:hover) and (pointer:fine){
  .tarot-card-link:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(60,76,105,.14);
    border-color: rgba(60,76,105,.18);
    background: rgba(255,255,255,.96);
  }
}

/* ===== CTA ===== */
.tarot-cta{
  padding: 0 0 64px;
  background: var(--bg);
}

.tarot-cta__inner{
  width: min(var(--lp-narrow), calc(100% - (var(--lp-pad-x) * 2)));
  text-align: center;
}

.tarot-cta__buttons{
  margin-top: var(--lp-space-3);
  display: grid;
  gap: 14px;
  justify-content: center;
}

.tarot-cta__sub{
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ===== spacing tuning ===== */
.tarot-section .lp-section-heading,
.tarot-cta .lp-section-heading{
  margin-bottom: 0;
}

.tarot-section .lp-divider,
.tarot-cta .lp-divider,
.tarot-hero .lp-divider{
  margin-bottom: var(--lp-space-3);
}

/* ===== heading size tuning ===== */
.serenor-tarot-page .lp-section-heading{
  font-size: clamp(1.45rem, 4.2vw, 2.1rem);
}

/* ===== tablet / pc ===== */
@media (min-width: 768px){
  .serenor-tarot-page .lp-main{
    padding-top: calc(108px + env(safe-area-inset-top));
  }

  .tarot-hero{
    padding: 24px 0 60px;
  }

  .tarot-hero__copy{
    gap: 16px;
  }

  .tarot-copy{
    gap: 22px;
  }

  .tarot-card-grid{
    gap: 22px 18px;
  }

  /*
  .tarot-card-link{
    padding: 18px 12px 14px;
    border-radius: 24px;
  }
  */

  .tarot-card-link__image{
    max-width: 132px;
  }

  .tarot-cta{
    padding-bottom: 80px;
  }

  .tarot-cta__buttons{
    grid-template-columns: repeat(2, max-content);
    align-items: center;
    gap: 16px;
  }
}

@media (min-width: 1024px){
  .tarot-hero{
    padding: 34px 0 72px;
  }

  .tarot-hero__lead{
    font-size: 1.08rem;
  }

  .tarot-copy{
    font-size: 1.08rem;
  }

  .tarot-card-grid{
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 24px 18px;
  }

  /*
  .tarot-card-link{
    padding: 18px 10px 14px;
  }
  */

  .tarot-card-link__image{
    max-width: 120px;
  }

  .tarot-card-link__name{
    line-height: 1.4;
  }
}

/* ===== optional section nuance ===== */
.tarot-section--feature .tarot-section__inner{
  width: min(var(--lp-narrow), calc(100% - (var(--lp-pad-x) * 2)));
}

/* ===== future reuse: detail page base hooks ===== */
.tarot-detail{
  padding: 0 0 64px;
  background: var(--bg);
}

.tarot-detail__inner{
  width: min(var(--lp-max), calc(100% - (var(--lp-pad-x) * 2)));
}

.tarot-detail__grid{
  display: grid;
  gap: 28px;
}

.tarot-face{
  padding: 22px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(60,76,105,.10);
  box-shadow: var(--lp-shadow-soft);
}

.tarot-face__title{
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.3;
}

.tarot-face__image{
  width: min(100%, 260px);
  aspect-ratio: 7 / 12;
  object-fit: contain;
  margin: 18px auto 0;
}

.tarot-face__body{
  margin-top: 20px;
  display: grid;
  gap: 18px;
  font-size: var(--fs-body-long);
  line-height: 1.9;
}

.tarot-face__body p,
.tarot-face__body li{
  margin: 0;
}

.tarot-face__body ul{
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
}

@media (min-width: 1024px){
  .tarot-detail__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
  }

  .tarot-face{
    height: 100%;
    padding: 26px 22px;
  }
}


/* ===== v0.0.2 adjustments ===== */
.serenor-tarot-page .tarot-card-link{
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.serenor-tarot-page .tarot-card-link:is(:focus, :focus-visible){
  outline: none;
}

@media (hover:hover) and (pointer:fine){
  .serenor-tarot-page .tarot-card-link:hover{
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
  }
}

.serenor-tarot-page .tarot-cta .lp-cta-set{
  margin-top: var(--lp-space-3);
}

.serenor-tarot-page .tarot-cta__note{
  margin: var(--lp-space-2) 0 0;
  text-align: center;
  font-size: var(--fs-body-short);
  line-height: 1.7;
}
