/* 아카펠라 막:창 제4회 정기공연 '사계' — 포스터의 사계절 분위기(벚꽃·신록·단풍·설경)를 담은 공통 스타일 */
:root {
  --ink: #2b2740;
  --muted: #6c6884;
  --line: rgba(120, 110, 160, 0.18);
  --card: rgba(255, 255, 255, 0.78);
  --spring: #f0a1c0;
  --summer: #4f9d68;
  --autumn: #e9873a;
  --winter: #6f9bd8;
  --accent: #8a5fb5;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(110, 90, 160, 0.16);
  --serif: 'Gowun Batang', 'Batang', 'Noto Serif KR', serif;
  --sans: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --brush: 'Nanum Brush Script', 'Gowun Batang', serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  background-color: #eef0fb;
  background-image:
    radial-gradient(60rem 40rem at -10% -5%, rgba(248, 190, 214, 0.75), transparent 60%),
    radial-gradient(55rem 38rem at 110% 0%, rgba(150, 185, 235, 0.7), transparent 60%),
    radial-gradient(50rem 36rem at 105% 100%, rgba(255, 196, 130, 0.6), transparent 60%),
    radial-gradient(50rem 36rem at -5% 100%, rgba(160, 215, 170, 0.55), transparent 60%),
    linear-gradient(180deg, #e6ecfb 0%, #f7eaf2 45%, #fff3e3 100%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

#fall { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.page { position: relative; z-index: 1; }
.wrap { width: min(880px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1040px, 100% - 32px); }

/* ---------- 상단 소개 ---------- */
.hero { padding: clamp(36px, 7vw, 72px) 0 12px; text-align: center; }

.kicker { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 6.2vw, 3rem); line-height: 1.3; margin: 0; letter-spacing: 0.05em; }
.kicker + .kicker { margin-top: 2px; }

.title { margin: clamp(10px, 2vw, 22px) 0 0; font-family: var(--brush); font-weight: 400; line-height: 1; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 0.1em; }
.title .ko {
  font-size: clamp(6rem, 17vw, 11rem);
  background: linear-gradient(100deg, #2f7d4f 0%, #6b6a2f 30%, #a2582a 55%, #e0452f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(120, 80, 60, 0.18));
}
.title .han { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.2rem); color: #7b4a3a; }
.title-sub { margin: 4px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.5rem); color: #5a4a50; }
.tagline { margin: 18px 0 0; color: var(--muted); letter-spacing: 0.12em; font-size: clamp(0.95rem, 1.8vw, 1.05rem); }

.poster { margin: 34px auto 0; width: min(100%, 340px); }
.poster img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.7);
}

.seasons { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin: 24px auto 0; width: min(100%, 360px); }
.seasons i { flex: 1; }
.seasons i:nth-child(1) { background: var(--spring); }
.seasons i:nth-child(2) { background: var(--summer); }
.seasons i:nth-child(3) { background: var(--autumn); }
.seasons i:nth-child(4) { background: var(--winter); }

/* ---------- 공통 섹션 ---------- */
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section-head { display: grid; justify-items: center; gap: 4px; margin: 0 0 24px; text-align: center; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.panel { background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 공연 안내 ---------- */
.info { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 700px) { .info { grid-template-columns: 1fr 1fr; } }
.info-card { padding: 24px 22px; text-align: center; }
.info-card .label { margin: 0; font-size: 0.82rem; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; }
.info-card .value { margin: 6px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3.2vw, 1.7rem); line-height: 1.35; }
.map-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.map-link:hover { background: #443e66; }
.map { overflow: hidden; display: flex; }
.map iframe { border: 0; width: 100%; height: 340px; }

/* ---------- 팀 목록 ---------- */
.teams { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; }
@media (min-width: 760px) { .teams { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.team { padding: 10px 10px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; transition: transform 0.2s ease; }
.team:hover { transform: translateY(-3px); }
.team:focus-visible { outline: 3px solid rgba(138, 95, 181, 0.5); outline-offset: 2px; }
.team-img { position: relative; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-no { position: absolute; left: 8px; top: 8px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.team h3 { margin: 12px 4px 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; word-break: keep-all; }
.members { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 8px 2px 0; padding: 0; list-style: none; }
.members li { padding: 1px 9px; border-radius: 999px; background: rgba(138, 95, 181, 0.1); color: #5d3f87; font-size: 0.78rem; }
.intro { margin: 8px 4px 0; color: #403c58; font-size: 0.84rem; white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.empty { margin: 8px 4px 0; color: var(--muted); font-size: 0.8rem; }

/* ---------- 팀 자세히 보기 ---------- */
dialog.detail { border: 0; padding: 0; background: transparent; width: min(92vw, 400px); max-height: 92vh; overflow: visible; }
dialog.detail::backdrop { background: rgba(30, 24, 50, 0.65); backdrop-filter: blur(4px); }
.detail-body { background: #fff; border-radius: 20px; padding: 18px 18px 20px; text-align: center; max-height: 90vh; overflow-y: auto; }
.detail-body img { width: min(100%, 260px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: 0 auto; }
.detail-body h3 { margin: 14px 0 0; font-family: var(--serif); font-size: 1.4rem; }
.detail-body .intro { font-size: 0.93rem; }
.detail-body .members li { font-size: 0.85rem; }
.detail-close { margin-top: 16px; padding: 8px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }

.footer { padding: 36px 0 56px; text-align: center; line-height: 1.8; color: var(--muted); font-size: 0.88rem; }
.footer b { font-family: var(--serif); color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .team { transition: none; } }
