/* 별빛연구소 홈 전용 — site.css 공유 계약 위에 레이어 */

body.page-home .shell {
  max-width: var(--shell-home);
}

/* —— Header: thinner glass, fewer links —— */
body.page-home .site-header {
  background: rgba(22, 26, 44, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.page-home .nav-desktop a {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

/* —— Hero hybrid —— */
.home-hero {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-6);
  align-items: stretch;
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-7);
    padding: var(--space-8) 0 var(--space-7);
    align-items: center;
  }
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.home-hero__eyebrow {
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.home-hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.home-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  line-height: 1.75;
  color: rgba(244, 242, 250, 0.88);
  text-wrap: pretty;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.home-hero__actions .btn {
  min-height: 3rem;
  padding: 0 1.35rem;
  font-size: 0.9rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 216, 77, 0.4);
  color: var(--gold);
  outline: none;
}

/* Feature card — 이달의 별자리 */
.home-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-feature);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 216, 77, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.45);
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-feature:hover,
.home-feature:focus-within {
  border-color: color-mix(in srgb, var(--feature-accent, var(--gold)) 45%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--feature-accent, var(--gold)) 25%, transparent),
    0 28px 56px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.home-feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.home-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-feature__media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--feature-accent, var(--teal)) 22%, transparent), transparent 70%),
    #0c0e18;
}

.home-feature__media-fallback .sign-mark {
  width: 4.5rem;
  height: 4.5rem;
}

.home-feature__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: color-mix(in srgb, var(--feature-accent, var(--gold)) 88%, white);
  font-weight: 600;
}

.home-feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.home-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.home-feature__name {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.home-feature__name a {
  color: inherit;
  text-decoration: none;
}

.home-feature__name .animated-text,
.home-feature__name .animated-text--hero {
  font-size: inherit;
  line-height: inherit;
}

.home-feature__tag {
  margin: 0;
  font-size: var(--text-md);
  color: rgba(244, 242, 250, 0.9);
  line-height: 1.55;
  text-wrap: pretty;
}

.home-feature__summary {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-feature__sky {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(110, 200, 200, 0.92);
  line-height: 1.6;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(255, 216, 77, 0.35);
  text-wrap: pretty;
}

.home-feature__sky a {
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.home-feature__sky a:hover {
  text-decoration: underline;
}

.home-feature__cta {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--feature-accent, var(--gold)) 85%, white);
  text-decoration: none;
  align-self: flex-start;
}

.home-feature__cta:hover {
  text-decoration: underline;
}

/* —— Sections —— */
body.page-home .section {
  padding: var(--space-7) 0;
}

body.page-home .section-label {
  font-size: var(--text-xs);
}

body.page-home .section-lead {
  font-size: var(--text-md);
  max-width: 40rem;
}

/* —— Explore tools —— */
.home-explore-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .home-explore-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .home-explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-tool::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tool-accent, var(--gold));
  opacity: 0.85;
}

.home-tool:hover,
.home-tool:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tool-accent, var(--gold)) 45%, transparent);
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  outline: none;
}

.home-tool__kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tool-accent, var(--gold)) 80%, var(--muted));
}

.home-tool__title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.home-tool__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.home-tool--mbti { --tool-accent: var(--teal); }
.home-tool--enneagram { --tool-accent: var(--violet); }
.home-tool--quiz { --tool-accent: #b8a0e0; }
.home-tool--planet { --tool-accent: var(--gold); }

/* —— Sign cards (home) —— */
body.page-home .card-grid.signs {
  gap: 1rem;
}

@media (min-width: 1100px) {
  body.page-home .card-grid.signs {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.page-home .sign-card {
  background: var(--surface-1);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-home .sign-card .sign-card__thumb {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  margin: 0 0 0.35rem;
  aspect-ratio: 16 / 11;
}

body.page-home .sign-card .sign-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-home .sign-card .card-top,
body.page-home .sign-card > p,
body.page-home .sign-card .card-more {
  padding-left: 1rem;
  padding-right: 1rem;
}

body.page-home .sign-card .card-top {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

body.page-home .sign-card > p {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

body.page-home .sign-card .card-more {
  padding-bottom: 1rem;
  color: color-mix(in srgb, var(--accent, var(--gold)) 70%, white);
  font-size: 0.78rem;
}

body.page-home .sign-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--gold)) 40%, transparent);
  transform: translateY(-3px);
}

/* —— Info cards (home) —— */
body.page-home .info-card {
  background: linear-gradient(180deg, rgba(16, 18, 30, 0.9), rgba(12, 14, 22, 0.95));
  border-color: rgba(240, 235, 224, 0.1);
}

body.page-home .info-card:hover {
  border-color: rgba(255, 216, 77, 0.28);
}

body.page-home .info-card .card-period {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 77, 0.25);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* —— About pillars —— */
.home-about-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-5);
}

@media (min-width: 720px) {
  .home-about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-pillar {
  padding: var(--space-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
}

.home-pillar__label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-2);
}

.home-pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.home-pillar p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-about-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.home-about-links a {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}

.home-about-links a:hover {
  border-bottom-color: rgba(110, 200, 200, 0.5);
}

/* —— 1. Research spotlight —— */
.home-spotlight__list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 800px) {
  .home-spotlight__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.home-spotlight__item {
  margin: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-top: 3px solid var(--gold);
}

.home-spotlight__item[data-pillar="star"] { border-top-color: #ffd84d; }
.home-spotlight__item[data-pillar="light"] { border-top-color: #6ec8c8; }
.home-spotlight__item[data-pillar="mirror"] { border-top-color: #9b6ec8; }

.home-spotlight__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 100%;
}

.home-spotlight__link:hover .home-spotlight__title {
  color: var(--gold);
}

.home-spotlight__pillar {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.home-spotlight__item[data-pillar="star"] .home-spotlight__pillar { color: #ffd84d; }
.home-spotlight__item[data-pillar="light"] .home-spotlight__pillar { color: #6ec8c8; }

.home-spotlight__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ivory);
  text-wrap: pretty;
}

.home-spotlight__teaser {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
  flex: 1;
}

.home-spotlight__date {
  font-size: 0.72rem;
  color: rgba(168, 160, 192, 0.85);
  margin-top: 0.25rem;
}

.home-spotlight__more {
  margin-top: var(--space-5);
}

/* —— 2. Agenda on home —— */
.home-agenda__list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: home-agenda;
}

.home-agenda__item {
  counter-increment: home-agenda;
  position: relative;
  padding: 1rem 1.1rem 1rem 2.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-left: 3px solid #ffd84d;
}

.home-agenda__item[data-pillar="light"] { border-left-color: #6ec8c8; }
.home-agenda__item[data-pillar="mirror"] { border-left-color: #9b6ec8; }

.home-agenda__item::before {
  content: counter(home-agenda, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.9;
}

.home-agenda__item[data-pillar="light"]::before { color: #6ec8c8; }
.home-agenda__item[data-pillar="mirror"]::before { color: #9b6ec8; }

.home-agenda__status {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.home-agenda__status[data-status="published"] {
  border-color: rgba(110, 200, 200, 0.45);
  color: var(--teal);
}

.home-agenda__status[data-status="open"] {
  border-color: rgba(255, 216, 77, 0.35);
  color: var(--gold);
}

.home-agenda__q {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ivory);
  text-decoration: none;
  text-wrap: pretty;
}

.home-agenda__q:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-agenda__note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

/* —— 3. This month sky —— */
.home-sky__list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.home-sky__list li {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(244, 242, 250, 0.9);
  text-wrap: pretty;
}

.home-sky__list a { color: var(--teal); }
.home-sky__more { margin-top: var(--space-4); }

/* —— 5. Seminar strip —— */
.home-seminar__card {
  margin-top: var(--space-4);
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 216, 77, 0.28);
  background: linear-gradient(165deg, rgba(42, 46, 28, 0.45), rgba(26, 31, 56, 0.9));
  max-width: 40rem;
}

.home-seminar__kicker {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.home-seminar__when {
  font-size: 0.92rem;
  margin: 0 0 0.55rem;
  color: var(--ivory);
}

.home-seminar__note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.home-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-footer__updated {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* —— FAQ (AEO/GEO extractable) —— */
.home-faq__def {
  max-width: 40rem;
}

.home-faq__list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  max-width: 42rem;
}

.home-faq__item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
}

.home-faq__item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ivory);
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker { display: none; }

.home-faq__item summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 600;
}

.home-faq__item[open] summary::after { content: "−"; }

.home-faq__item p {
  margin: 0.65rem 0 0.15rem;
  font-size: 0.9rem;
  color: rgba(244, 242, 250, 0.88);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-faq__item a { color: var(--teal); }

/* SSR sign links for crawlers (visible, compact) */
.home-sign-ssr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: var(--space-4);
  font-size: 0.78rem;
}

.home-sign-ssr-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-sign-ssr-links a:hover { color: var(--gold); }

.home-sign-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  font-size: 0.88rem;
}

.home-sign-fallback a { color: var(--teal); }

/* —— Footer —— */
body.page-home .site-footer {
  padding: var(--space-6) 0 calc(var(--space-7) + var(--safe-b));
  text-align: left;
}

.home-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 720px) {
  .home-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.home-footer__links a:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .home-feature:hover,
  .home-feature:focus-within,
  .home-tool:hover,
  .home-tool:focus-visible,
  body.page-home .sign-card:hover {
    transform: none;
  }
}
