/* asteria official — celestial periwinkle / sapphire ink / antique gold */

:root {
  --night: #171d4e;      /* 사파이어 잉크 — 본문 텍스트 */
  --twilight: #4a55b8;   /* 로열 페리윙클 — 링크/포인트 */
  --sky: #b9c1ee;        /* 페리윙클 하늘 — 히어로 */
  --mist: #f2f3fc;       /* 라벤더 화이트 — 바탕 */
  --gold: #a8873c;       /* 앤티크 골드 — 라벨/별 */
  --white: #ffffff;
  --display: "Italiana", serif;
  --batang: "Gowun Batang", serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--night);
  background: var(--mist);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--twilight); }

:focus-visible {
  outline: 2px solid var(--twilight);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background .3s, box-shadow .3s;
}

.nav.scrolled {
  background: rgba(242, 243, 252, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(23, 29, 78, .08);
}

.nav-mark {
  display: block;
  line-height: 0;
}

.nav-mark img {
  height: 2.4rem;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(23, 29, 78, .15));
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav-links a {
  color: var(--night);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.nav-links a:hover { color: var(--twilight); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* 단체 사진 배경(#869bd0 계열)에서 샘플링한 색 — 사진과 경계 없이 이어진다 */
  background:
    radial-gradient(ellipse 120% 90% at 80% 60%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(180deg, #6f7fc4 0%, #7d90cb 24%, #869bd0 46%, #93a5d8 72%, #dfe3f9 100%);
}

/* 단체 사진 — 사진 배경이 같은 페리윙클이라 위쪽만 살짝 녹여서 잇는다.
   잘라내지 않고 원본 비율(3:2) 그대로 전체를 보여준다.
   화면이 1400px보다 넓으면 사진 좌우로 여백이 생기는데,
   같은 사진을 확대·블러한 레이어를 뒤에 깔아 그 여백을 사진의 연장처럼 채운다. */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}


.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(70px) saturate(1.2) brightness(.82);
  transform: scale(1.2); /* 블러 가장자리가 보이지 않도록 여유 있게 확대 */
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* 잔별 — CSS만으로 그리는 별밭 */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 41% 15%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 55% 42%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 68% 25%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 79% 58%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 88% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 8% 48%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 62% 70%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 93% 44%, rgba(255,255,255,.75), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  animation: rise 1.2s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-family: var(--batang);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  letter-spacing: .14em;
  text-indent: .14em; /* 자간 보정 — 가운데 정렬 유지 */
  color: var(--night);
  opacity: .85;
}

/* 최상단 로고 배너 — 전체 폭. 이미지의 흰 상단이 페이지 꼭대기가 되고
   하단 페리윙클(#7e8eca)이 hero 배경으로 그대로 이어진다 */
.hero-mark {
  margin-top: 1.75rem;
  line-height: 0;
}

.hero-mark img {
  width: clamp(260px, 56vw, 600px);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(23, 29, 78, .18));
}

.hero-sub {
  font-family: var(--batang);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  letter-spacing: .3em;
  text-indent: .3em;
  margin-top: 1.25rem;
}

/* ---------- constellation (signature) ---------- */

.constellation {
  width: min(640px, 92%);
  margin: 1.5rem auto 0;
  display: block;
  overflow: visible;
}

.const-lines line {
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: .8;
}

.const-star { cursor: pointer; outline: none; }

.const-star .halo {
  fill: transparent;
}

.const-star .spark {
  fill: var(--gold);
  transition: transform .35s ease, fill .35s ease;
  transform-origin: 0 0;
  animation: starPulse 3.6s ease-in-out infinite;
}

/* 별마다 숨쉬는 박자를 어긋나게 */
.const-star:nth-of-type(2) .spark { animation-delay: -.7s; }
.const-star:nth-of-type(3) .spark { animation-delay: -1.4s; }
.const-star:nth-of-type(4) .spark { animation-delay: -2.1s; }
.const-star:nth-of-type(5) .spark { animation-delay: -2.8s; }
.const-star:nth-of-type(6) .spark { animation-delay: -3.3s; }

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.const-star text {
  font-family: var(--batang);
  font-size: 15px;
  fill: var(--night);
  text-anchor: middle;
  opacity: 0;
  transition: opacity .3s;
}

.const-star:hover .spark,
.const-star:focus-visible .spark {
  fill: var(--white);
  transform: scale(1.45);
}

.const-star:hover text,
.const-star:focus-visible text { opacity: 1; }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--night);
  text-decoration: none;
  font-size: 1.25rem;
  animation: bob 2.2s ease-in-out infinite;
}

/* 사진이 있으면 화살표가 사진 위에 얹히므로 흰색으로 */
.hero:has(.hero-photo) .hero-scroll {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(23, 29, 78, .5);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem);
  max-width: 60rem;
  margin: 0 auto;
}

.section-tint {
  max-width: none;
  background: linear-gradient(180deg, rgba(185,193,238,.22), rgba(185,193,238,.05));
}

.section-tint > * {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-star {
  display: block;
  color: var(--gold);
  font-size: 1.1rem;
}

.section-latin {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: .12em;
  line-height: 1.2;
}

.section-head h2 {
  font-family: var(--batang);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .5em;
  text-indent: .5em;
  color: var(--gold);
  margin-top: .35rem;
}

/* ---------- notice ---------- */

.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1.75rem .5rem;
  border-top: 1px solid rgba(23, 29, 78, .12);
}

.notice-item:last-child { border-bottom: 1px solid rgba(23, 29, 78, .12); }

.notice-item time {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--twilight);
  padding-top: .15rem;
}

.notice-item h3 {
  font-family: var(--batang);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.notice-item p {
  margin-top: .4rem;
  font-size: .95rem;
  opacity: .8;
}

/* ---------- members ---------- */

.member-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
}

.member-card { text-align: center; }

.member-card figure {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 100px 100px 8px 8px; /* 아치형 — 성당 창 실루엣 */
  overflow: hidden;
  background: linear-gradient(180deg, #cdd3f2, #eceefb);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.member-card:hover figure {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -16px rgba(23, 29, 78, .35);
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position/transform(zoom)은 content.json의 focus·zoom 값으로 인라인 지정됨 */
}

.member-star {
  display: none;
  color: var(--gold);
  font-size: 1.5rem;
}

.member-card figure.empty .member-star { display: block; }

.member-card h3 {
  font-family: var(--batang);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .15em;
  text-indent: .15em;
  margin-top: 1rem;
  line-height: 1.2;
}

.member-latin {
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-top: .25rem;
}

/* ---------- live ---------- */

.live-upcoming {
  border: 1px solid rgba(168, 135, 60, .45);
  border-radius: 6px;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(168,135,60,.5), transparent),
    radial-gradient(1px 1px at 82% 60%, rgba(168,135,60,.45), transparent),
    radial-gradient(1.5px 1.5px at 65% 20%, rgba(168,135,60,.4), transparent),
    var(--white);
}

.live-upcoming-label {
  font-family: var(--batang);
  letter-spacing: .35em;
  text-indent: .35em;
  font-size: .85rem;
  color: var(--gold);
}

.live-upcoming-body {
  margin-top: .75rem;
  font-size: 1.05rem;
}

/* 중요 공연 카드 (goods-card 스타일 공유) + TimeTree 링크 */

.feat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}

.feat-card { width: clamp(10.5rem, 28vw, 14rem); }

.feat-card .goods-body { padding: 1rem .75rem 1.2rem; }
.feat-card .goods-label { font-size: .7rem; }
.feat-card h3 { font-size: 1rem; margin-top: .4rem; }
.feat-card .goods-cta { font-size: .8rem; margin-top: .6rem; }

/* 월 캘린더 */

.live-cal { margin-top: clamp(2.5rem, 6vw, 4rem); }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.cal-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .08em;
}

.cal-nav {
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--twilight);
  background: none;
  border: 1px solid rgba(74, 85, 184, .35);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}

.cal-nav:hover { border-color: var(--twilight); background: var(--white); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid rgba(23, 29, 78, .12);
  border-left: 1px solid rgba(23, 29, 78, .12);
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}

.cal-dow {
  text-align: center;
  font-family: var(--batang);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--gold);
  padding: .5rem 0;
  border-right: 1px solid rgba(23, 29, 78, .12);
  border-bottom: 1px solid rgba(23, 29, 78, .12);
  background: rgba(185, 193, 238, .15);
}

.cal-day {
  min-height: 4.6rem;
  padding: .3rem .35rem;
  border-right: 1px solid rgba(23, 29, 78, .12);
  border-bottom: 1px solid rgba(23, 29, 78, .12);
  font-size: .75rem;
}

.cal-num {
  font-family: var(--display);
  font-size: .85rem;
  opacity: .7;
  display: block;
}

.cal-today { background: rgba(185, 193, 238, .25); }
.cal-today .cal-num { color: var(--twilight); font-weight: 700; opacity: 1; }

.cal-ev {
  display: block;
  background: var(--twilight);
  color: var(--white);
  border-radius: 3px;
  padding: .1rem .3rem;
  margin-top: .2rem;
  font-size: .68rem;
  line-height: 1.35;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a.cal-ev:hover { background: var(--night); }

.live-tt { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); }

.tt-embed {
  display: block;
  width: 100%;
  min-height: 640px;
  aspect-ratio: 680 / 720;
  border: 1px solid rgba(23, 29, 78, .12);
  border-radius: 6px;
  background: var(--white);
  margin-bottom: 1.25rem;
}

.tt-link {
  display: inline-block;
  font-family: var(--batang);
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: var(--twilight);
  text-decoration: none;
  border: 1px solid rgba(74, 85, 184, .4);
  border-radius: 999px;
  padding: .8rem 1.8rem;
  transition: border-color .3s, background .3s;
}

.tt-link:hover { border-color: var(--twilight); background: var(--white); }

/* ---------- goods ---------- */

.goods-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: .5rem; /* 스크롤바 여백 */
}

.goods-grid .goods-card {
  flex: 0 0 clamp(15rem, 70vw, 22rem);
  scroll-snap-align: center;
}

.goods-card {
  display: block;
  border: 1px solid rgba(23, 29, 78, .15);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
  color: var(--night);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.goods-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(23, 29, 78, .4);
  border-color: var(--twilight);
}

.goods-card figure {
  aspect-ratio: 857 / 1200; /* 두 카드 썸네일 동일 비율 */
  overflow: hidden;
}

.goods-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.goods-card:hover figure img { transform: scale(1.03); }

.goods-body { padding: 1.5rem 1.25rem 1.75rem; }

.goods-cta {
  margin-top: 1rem;
  font-family: var(--batang);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--twilight);
}

.goods-card:hover .goods-cta { text-decoration: underline; text-underline-offset: .3em; }

.goods-label {
  font-family: var(--batang);
  font-size: .8rem;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--gold);
}

.goods-card h3 {
  font-family: var(--batang);
  font-size: 1.2rem;
  margin-top: .6rem;
}

.goods-desc {
  margin-top: .5rem;
  font-size: .9rem;
  opacity: .75;
}

/* ---------- footer ---------- */

.footer {
  background: var(--night);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.footer-mark {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .08em;
  color: var(--white);
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.footer-sns a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .05em;
}

.footer-sns a:hover { color: var(--sky); }

.footer-contact {
  margin-top: 2rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .04em;
}

.footer-contact a:hover { color: var(--sky); }

.footer-copy {
  margin-top: .75rem;
  font-size: .8rem;
  opacity: .55;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-day { min-height: 3.4rem; padding: .2rem; }
  .cal-ev { font-size: .58rem; padding: .08rem .18rem; }
  .feat-card { width: clamp(9rem, 42vw, 12rem); }
  .member-grid li:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
  .notice-item { grid-template-columns: 1fr; gap: .25rem; padding: 1.4rem .25rem; }
  .live-list li { grid-template-columns: 1fr; gap: .1rem; padding: 1rem .25rem; }
  .live-venue { grid-row: auto; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: .85rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stars,
  .const-star .spark,
  .hero-scroll,
  .hero-inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01s !important; }
}
