/* Front page custom styles */
body {
  background: #f6f8fb;
}

body.home .content-in.wrap {
  width: 100%;
}

body.home .content {
  margin-top: 0;
}

body.home main.main {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.front-page-custom {
  width: 100%;
  margin: 0;
  padding: 0 0 80px;
}

.front-hero-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(120deg, #0f1224, #1e2d62 60%, #0f1224);
  color: #fff;
}

.front-hero-header__inner {
  width: min(1680px, calc(100% - clamp(24px, 6vw, 96px)));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}

.front-hero-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: inherit;
}

.front-hero-brand__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.front-hero-brand__desc {
  font-size: 13px;
  opacity: 0.85;
}

.front-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.front-hero-actions__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.front-hero-actions__link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.front-hero-actions__link.is-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.front-hero-actions__link.is-solid {
  color: #131a30;
  background: #f3d37a;
}

.front-page-content {
  width: min(1680px, calc(100% - clamp(24px, 6vw, 96px)));
  margin: 0 auto;
  padding-top: 26px;
}

.fp-carousel {
  position: relative;
  width: 100%;
  margin-top: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #161d3a;
  box-shadow: 0 14px 36px rgba(15, 20, 40, 0.22);
}

.fp-carousel__viewport {
  overflow: hidden;
}

.fp-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}

.fp-carousel__slide {
  min-width: 100%;
}

.fp-carousel__slide-link {
  position: relative;
  display: block;
  min-height: clamp(420px, 44vw, 560px);
  color: #fff;
  text-decoration: none;
  background: radial-gradient(circle at 20% 20%, rgba(137, 162, 255, 0.45), transparent 35%), #192145;
}

.fp-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-carousel__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: end;
  min-height: clamp(420px, 44vw, 560px);
  padding: clamp(30px, 4vw, 58px) clamp(20px, 3vw, 44px);
  background: linear-gradient(180deg, transparent 18%, rgba(10, 14, 30, 0.7) 60%, rgba(10, 14, 30, 0.92) 100%);
}

.fp-carousel__title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.3;
}

.fp-carousel__desc {
  margin: 0;
  max-width: 760px;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.7;
  opacity: 0.95;
}

.fp-carousel__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(20, 25, 45, 0.65);
  transform: translateY(-50%);
}

.fp-carousel__control::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.fp-carousel__control.is-prev {
  left: 12px;
}

.fp-carousel__control.is-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.fp-carousel__control.is-next {
  right: 12px;
}

.fp-carousel__control.is-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.fp-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fp-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.fp-carousel__dot[aria-selected="true"] {
  width: 24px;
  background: #fff;
}

.fp-section-title {
  margin: 42px 0 16px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
}

.fp-member-daily {
  margin-top: 28px;
}

.fp-member-daily__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.fp-member-daily-card {
  padding: clamp(14px, 1.4vw, 20px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(12, 16, 28, 0.08);
}

.fp-member-daily-card__title {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
}

.fp-member-daily-card__notice {
  margin: 0;
  color: #4f5a71;
  line-height: 1.8;
}

.fp-member-daily-card__button {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: #1f2c57;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.fp-member-magic-list {
  display: grid;
  gap: 10px;
}

.fp-member-magic-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fd;
}

.fp-member-magic-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.fp-member-magic-item p {
  margin: 0;
  color: #4b5670;
  font-size: 13px;
  line-height: 1.7;
}

.fp-member-tarot {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 12px;
}

.fp-member-tarot__image {
  width: 100%;
  max-width: 168px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f8;
}

.fp-member-tarot__body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.fp-member-tarot__name {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.4;
}

.fp-member-tarot__text {
  margin: 0;
  color: #4f5a71;
  font-size: 13px;
  line-height: 1.8;
}

.fp-member-tarot__links {
  display: grid;
  gap: 6px;
}

.fp-member-tarot__links a {
  color: #243564;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: underline;
}

.fp-member-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(12, 16, 28, 0.08);
}

.fp-member-cta__message {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: #1d2945;
}

.fp-member-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #1f2c57;
}

.fp-member-cta__link {
  font-size: 13px;
  color: #243564;
  text-decoration: underline;
}

.fp-popular__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(12px, 1.4vw, 22px);
}

.fp-popular-card {
  display: grid;
  gap: 12px;
  padding: clamp(12px, 1.4vw, 18px);
  border-radius: 12px;
  text-decoration: none;
  color: #182032;
  background: #fff;
  box-shadow: 0 10px 28px rgba(12, 16, 28, 0.08);
}

.fp-popular-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #dde3ef;
}

.fp-popular-card__title {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.fp-popular-card__desc {
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.7;
  color: #4f5a71;
}

.fp-feature-section + .fp-feature-section {
  margin-top: 10px;
}

.fp-feature-cards {
  display: grid;
  gap: clamp(12px, 1.4vw, 22px);
}

.fp-feature-cards.is-one {
  grid-template-columns: 1fr;
}

.fp-feature-cards.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fp-feature-cards.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-feature-card {
  min-width: 0;
}

.fp-feature-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #182032;
  background: #fff;
  box-shadow: 0 10px 28px rgba(12, 16, 28, 0.08);
}

.fp-feature-card__image-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.fp-feature-card__category-tape {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 2;
  display: inline-block;
  max-width: calc(100% - 18px);
  padding: 4px 10px 4px 12px;
  background: rgba(24, 32, 50, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-feature-card__category-tape::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  border-top: 13px solid rgba(24, 32, 50, 0.88);
  border-bottom: 13px solid rgba(24, 32, 50, 0.88);
  border-right: 12px solid transparent;
}

.fp-feature-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dde3ef;
}

.fp-feature-card__image.is-empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dde3ef;
}

.fp-feature-card__body {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.fp-feature-card__title {
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 700;
  line-height: 1.5;
}

.fp-feature-card__excerpt {
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.7;
  color: #4f5a71;
}

.fp-category-feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.fp-category-block {
  padding: clamp(14px, 1.4vw, 20px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 16, 28, 0.06);
}

.fp-category-block__title {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.3;
}

.fp-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fp-post-list__link {
  display: grid;
  grid-template-columns: clamp(130px, 20vw, 188px) 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e5e9f1;
  color: #1e2943;
  text-decoration: none;
}

.fp-post-list__thumb-wrap {
  display: block;
  width: 100%;
}

.fp-post-list__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.fp-post-list__thumb.is-empty {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #dbe2ef;
}

.fp-post-list__meta {
  display: grid;
  gap: 6px;
}

.fp-post-list__date {
  font-size: clamp(12px, 1.05vw, 14px);
  color: #62708a;
}

.fp-post-list__title {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.6;
}

.fp-empty-message {
  margin: 0;
  color: #5c6780;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .front-hero-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 16px;
  }

  .front-hero-actions {
    justify-content: flex-start;
  }

  .front-page-content {
    padding-top: 16px;
  }

  .fp-carousel__slide-link,
  .fp-carousel__copy {
    min-height: clamp(320px, 70vw, 460px);
  }

  .fp-member-daily__grid {
    grid-template-columns: 1fr;
  }

  .fp-member-tarot {
    grid-template-columns: 1fr;
  }

  .fp-member-tarot__image {
    max-width: 220px;
  }

  .fp-feature-cards.is-two,
  .fp-feature-cards.is-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fp-post-list__link {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
