/* 12월 [겨울.채우다] — 포스터 색 그대로 (홈 히어로 · 클래스 안내) */
@font-face { font-family: "Griun Sarang"; src: url(/fonts/griun-sarang.ttf) format("truetype"); font-display: swap; }
:root { --w-cream: #FAF4EA; --w-lime: #DCFB4A; --w-red: #E2483A; --w-blue: #2F5CB0; --hand: "Griun Sarang", var(--a2z), sans-serif; }


/* 라임 곡선 바탕 */
.wbg { position: relative; background: var(--w-cream); overflow: hidden; isolation: isolate; }
.wbg__curves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.wbg__curves path { fill: none; stroke: var(--w-lime); stroke-width: 54; stroke-linecap: round; }

/* 히어로 = 포스터 표지 */
.whero { padding: clamp(28px, 5vw, 56px) 16px clamp(40px, 6vw, 72px); }
.whero__in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(16px, 4vw, 48px); align-items: center; }
.whero__top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--w-red); font-weight: 900; font-size: clamp(0.85rem, 1.6vw, 1.1rem); }
.whero h1 { color: var(--w-blue); font-weight: 900; font-size: clamp(3.2rem, 9vw, 6.4rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; }
.wtag { display: inline-block; background: var(--w-red); color: #fff; font-family: var(--hand); font-size: clamp(1.05rem, 2.2vw, 1.45rem); padding: 6px 12px; line-height: 1.3; }
.whero__line { margin: 18px 0 0; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; color: var(--w-blue); }
.wweeks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wweeks li { background: var(--w-blue); color: #fff; font-family: var(--hand); font-size: 1.15rem; padding: 6px 12px; }
.whero__when { margin: 18px 0 0; display: inline-block; background: var(--w-red); color: #FFE74C; font-weight: 900; padding: 6px 12px; font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
.whero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; padding: 0.95rem 1.6rem; font-weight: 900; text-decoration: none; border: 3px solid var(--w-blue); }
.wbtn--red { background: var(--w-red); border-color: var(--w-red); color: #fff; }
.wbtn--line { background: #fff; color: var(--w-blue); }
.wbtn:hover { transform: translateY(-2px); }
.whero__art img { width: 100%; height: auto; display: block; border-radius: 4px; }
.whero__note { margin: 14px 0 0; font-size: 0.9rem; color: #5b5a55; }

/* 4주 */
.wsec { padding: clamp(40px, 6vw, 72px) 16px; }
.wsec__in { max-width: 1120px; margin: 0 auto; }
.wsec h2 { color: var(--w-blue); font-weight: 900; font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin: 0 0 24px; line-height: 1.2; }
.wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wkcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #fff; }
.wkcard__box { background: var(--w-blue); color: #fff; font-family: var(--hand); padding: 10px 12px; font-size: 1.08rem; line-height: 1.5; }
.wkcard__box b { display: block; font-size: 1.2rem; font-weight: 400; }

/* 90분 */
.w90 { background: #fff; }
.w90 blockquote { margin: 0; font-family: var(--hand); font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.8; color: #2B2A26; }
.wflow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.wflow li { border: 2px solid var(--w-blue); color: var(--w-blue); font-weight: 700; padding: 6px 14px; }

/* 안내판 */
.wboard { position: relative; background: #FFFCF4; border: 3px solid #222; box-shadow: 10px 10px 0 #222; padding: 56px clamp(18px, 4vw, 48px) 32px; max-width: 860px; }
.wboard::before { content: ""; position: absolute; top: 16px; left: 24px; right: 24px; height: 26px; background: radial-gradient(circle 12px at 13px 13px, var(--w-lime) 10px, #222 11px, #222 12.5px, transparent 13px) 0 0 / 52px 26px repeat-x; }
.wboard dl { display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; margin: 0; font-family: var(--hand); font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.6; }
.wboard dt { background: var(--w-blue); color: #fff; padding: 2px 12px; height: fit-content; }
.wboard dd { margin: 0; }
.wboard mark { background: #FFE74C; color: var(--w-red); padding: 0 6px; }
.wboard small { font-size: 0.85em; color: #555; }
.wboard__foot { margin: 22px 0 0; font-family: var(--hand); color: var(--w-red); font-size: 1.25rem; line-height: 1.6; }

/* 팝업(B) */
.wpop { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 20, 30, 0.55); display: grid; place-items: center; padding: 16px; }
.wpop[hidden] { display: none; }
.wpop__card { position: relative; width: min(440px, 100%); max-height: 92vh; overflow: auto; background: var(--w-cream); border: 3px solid var(--w-blue); }
.wpop__card img { width: 100%; display: block; }
.wpop__body { padding: 16px 18px 20px; }
.wpop__x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--w-blue); color: #fff; font-size: 20px; cursor: pointer; }
.wpop__body .wbtn { margin-top: 12px; }

/* 클래스 안내 — 두 문 */
.wdoors { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.wdoor { background: #fff; border: 3px solid var(--w-blue); padding: 22px; }
.wdoor--club { border-color: #222; }
.wdoor .eyebrow { margin: 0 0 6px; }
.wdoor h3 { margin: 0 0 8px; font-size: 1.5rem; color: var(--w-blue); font-weight: 900; }
.wdoor--club h3 { color: #222; }
.wdoor p { line-height: 1.7; }
.wempty { border: 2px dashed #aaa; color: #777; padding: 12px; margin-top: 12px; font-size: 0.95rem; }

/* 지난 기록 ①②③ */
.wrec h2 { color: #2B2A26; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.wrec__label { display: inline-block; background: #111; color: #DCFB4A; font-weight: 700; padding: 4px 10px; margin: 36px 0 12px; font-size: 0.95rem; }
.rlist { list-style: none; padding: 0; margin: 0; border-top: 2px solid #2B2A26; }
.rlist li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ccc; }
.rlist b { font-weight: 900; }
.rlist span { color: #5b5a55; }
.rlist em { font-style: normal; display: block; color: #2B2A26; font-weight: 700; }
.rstrip { display: grid; gap: 14px; }
.rstrip__row { display: grid; grid-template-columns: 5.5rem repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.rstrip__row figure { margin: 0; }
.rstrip__row img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 4px; }
.rstrip__row figcaption { font-size: 0.82rem; text-align: center; margin-top: 4px; }
.rstrip__row > b { font-weight: 900; line-height: 1.3; }
.rstrip__row > b span { display: block; font-weight: 400; font-size: 0.8rem; color: #5b5a55; }
.rfold summary { cursor: pointer; border: 2px solid #2B2A26; padding: 14px 18px; font-weight: 700; list-style: none; }
.rfold summary::-webkit-details-marker { display: none; }
.rfold summary::before { content: "▸ "; }
.rfold[open] summary::before { content: "▾ "; }
.rfold__body { padding: 8px 0 0; }

@media (max-width: 820px) {
  .whero__in { grid-template-columns: 1fr; }
  .whero__top { order: -2; }
  .whero__art { order: -1; max-width: 420px; }
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wdoors { grid-template-columns: 1fr; }
  .wbg__curves path { stroke-width: 36; }
}
@media (max-width: 520px) {
  .rstrip__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rstrip__row > b { grid-column: 1 / -1; }
  .wboard dl { grid-template-columns: 1fr; gap: 6px; }
  .wboard dd { margin-bottom: 10px; }
}

/* ★ 포스터가 메인 */
.wstage { padding: clamp(24px, 4vw, 48px) 16px clamp(40px, 6vw, 72px); }
.wstage__in { max-width: 1080px; margin: 0 auto; }
.wstage__h { color: var(--w-blue); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 20px; line-height: 1.1; }
.wstage__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); align-items: start; }
.wposter__img { display: block; aspect-ratio: 1414 / 2000; background: var(--w-cream); box-shadow: 8px 8px 0 #222; border: 3px solid #222; overflow: hidden; }
.wposter__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.wposter__img:hover { transform: translateY(-3px); }
.wposter__empty { display: grid; place-items: center; border-style: dashed; box-shadow: none; background: rgba(255,255,255,0.7); text-align: center; color: #555; }
.wposter__empty b { display: block; color: #222; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 900; margin-bottom: 6px; }
.wposter__empty p { margin: 0; padding: 16px; font-size: 1.05rem; line-height: 1.6; }
.wposter__cap { margin: 18px 0 0; font-size: 1.05rem; line-height: 1.5; }
.wposter__cap b { display: block; color: var(--w-blue); font-weight: 900; font-size: 1.15rem; }
.wposter .whero__cta { margin-top: 12px; }
@media (max-width: 680px) { .wstage__grid { grid-template-columns: 1fr; } .wposter { max-width: 460px; } }

/* ★ 움직이는 포스터 — 오너먼트가 각자 흔들려요 */
.lpos { padding: clamp(24px, 4vw, 48px) 16px clamp(40px, 6vw, 64px); }
.lpos__in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "top top" "head stage" "body stage"; column-gap: clamp(16px, 4vw, 48px); align-items: start; }
.lpos__top { grid-area: top; margin: 0 0 clamp(16px, 3vw, 32px); }
.lpos__head { grid-area: head; align-self: end; }
.lpos__body { grid-area: body; }
.lpos__stage { grid-area: stage; position: relative; aspect-ratio: 1150 / 1120; width: 100%; }
.lpos h1 { color: var(--w-blue); font-weight: 900; font-size: clamp(3.2rem, 8.4vw, 6.6rem); line-height: 1; letter-spacing: -0.03em; margin: 8px 0 18px; }
.lpos__kp { display: inline-block; margin: 0; background: var(--w-red); color: #FFE74C; font-weight: 900; padding: 4px 10px; font-size: 0.95rem; letter-spacing: 0.02em; }
.lpos__adult { margin: 20px 0 0; padding: 12px 14px; border: 2px dashed #2B2A26; background: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.6; }
.lpos__adult a { color: var(--w-blue); font-weight: 700; }

.orn { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 2%; animation: orn-swing var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate; -webkit-tap-highlight-color: transparent; }
.orn img { width: 100%; height: auto; display: block; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(43, 42, 38, 0.08)); }
.orn:focus-visible { outline: 3px solid var(--w-blue); outline-offset: 4px; border-radius: 8px; }
.orn--heart  { --d: 3.6s; --dl: -1.2s; --a: 5deg; }
.orn--drop   { --d: 2.8s; --dl: -0.4s; --a: 9deg; }
.orn--ball   { --d: 4.4s; --dl: -2.1s; --a: 6deg; }
.orn--wreath { --d: 5.0s; --dl: -3.0s; --a: 4deg; }
.orn--berry  { --d: 3.2s; --dl: -1.7s; --a: 8deg; }
.orn--round  { --d: 4.8s; --dl: -0.9s; --a: 3deg; }
.orn--tree   { --d: 3.9s; --dl: -2.6s; --a: 6deg; }
.orn--gift   { transform-origin: 50% 100%; animation-name: orn-hop; --d: 1.6s; --dl: -0.5s; }
@keyframes orn-swing { from { transform: rotate(calc(var(--a, 6deg) * -1)); } to { transform: rotate(var(--a, 6deg)); } }
@keyframes orn-hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-14%) rotate(-6deg); } 88% { transform: translateY(0) rotate(3deg); } }
.orn.is-spin { animation: orn-spin 0.9s cubic-bezier(.3, 1.6, .5, 1) 1; }
@keyframes orn-spin { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(-18deg) scale(1.12); } 70% { transform: rotate(12deg) scale(1.05); } 100% { transform: rotate(0) scale(1); } }
.orn:hover:not(.is-spin) { animation-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) { .orn, .orn.is-spin { animation: none; } }

@media (max-width: 820px) {
  .lpos__in { grid-template-columns: 1fr; grid-template-areas: "top" "head" "stage" "body"; }
  .lpos__stage { max-width: 520px; margin: 8px auto 4px; }
}
/* 오너먼트 조금 작게 · 정보는 프로그램 페이지로 */
.lpos__stage { width: 82%; justify-self: center; }
.lpos__quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.lpos__quick a { background: #fff; border: 2px solid var(--w-blue); color: #2B2A26; text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 0.98rem; }
.lpos__quick b { color: var(--w-blue); }
@media (max-width: 820px) { .lpos__stage { width: 100%; max-width: 400px; } }

/* 놀이터 자리 = 오너먼트 무대 (원래 홈 히어로 그대로) */
.playground.orns { aspect-ratio: 1150 / 1120; max-width: 460px; }
.orns .orn { left: var(--x); top: var(--y); width: var(--w); }
@media (min-width: 881px) {
  .playground.orns { aspect-ratio: 3 / 1; max-width: 1440px; }
  .orns .orn { left: var(--X); top: var(--Y); width: var(--W); }
}

/* 한나님이 보낸 배경 — 휴대폰 세로 / 넓은 화면 가로 */
.hero--dec { background: #FEF5EA url(/winter/bg-tall.webp) center top / cover no-repeat; }
@media (min-width: 881px) { .hero--dec { background-image: url(/winter/bg-wide.webp); background-position: center; } }
/* 12월 모집 버튼 — 빨강 */
.btn--dec { background: var(--w-red); color: #fff; box-shadow: 0 8px 20px rgba(226, 72, 58, 0.32); }
.btn--dec:hover { background: #c93a2d; color: #fff; }
/* KIDS POP / ADULTS POP — 포스터 빨간 네모 */
.pop { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--w-red); color: #FFE74C; text-decoration: none; padding: 8px 14px; min-width: 8.5rem; font-weight: 900; line-height: 1.2; transition: transform 0.3s; }
.pop span { font-size: 0.95rem; letter-spacing: 0.02em; }
.pop span::after { content: ""; display: block; width: 8px; height: 2px; background: currentColor; margin: 4px auto 0; }
.pop b { font-size: 1rem; }
.pop:hover { transform: translateY(-3px); }
/* 모집 버튼 아래 POP 두 칸 — 버튼 너비에 딱 맞게, 작게 */
.hero--dec .hero__cta { align-items: flex-start; }
.decbox { display: inline-grid; gap: 8px; }
.decbox__pops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decbox .pop { min-width: 0; padding: 6px 4px; }
.decbox .pop span { font-size: 0.78rem; }
.decbox .pop span::after { width: 6px; margin-top: 2px; }
.decbox .pop b { font-size: 0.82rem; white-space: nowrap; }
/* 사진 정리 중인 회차 */
.rwait { margin: 0; }
.rwait span { display: grid; place-items: center; aspect-ratio: 1 / 1; border: 2px dashed #bbb; border-radius: 4px; color: #888; font-size: 0.82rem; text-align: center; line-height: 1.4; background: #fff; }
/* 안내판 안 예약 버튼 — 작게 */
.wbtn--sm { padding: 0.6rem 1.1rem; font-size: 0.95rem; border-width: 2px; }
/* 클래스 안내 — 정답 없는 90분 흐름 */
.kit__flow { justify-content: center; margin-top: 1.6rem; }
.kit__flow li { background: #fff; }

/* 1차 워크숍 제목 + 엄마들이 한눈에 보는 시간표 */
.wser { color: var(--w-blue); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.05; margin: 10px 0 14px; letter-spacing: -0.02em; }
.wser small { display: block; font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--w-red); font-weight: 900; letter-spacing: 0; margin-bottom: 8px; }
.wser__lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.7; margin: 0 0 26px; color: #2B2A26; }
.wser__lead b { color: var(--w-red); }
.wtime { list-style: none; padding: 0; margin: 16px 0 12px; display: grid; gap: 8px; }
.wtime li { display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: 12px; background: #FFFCF4; border: 2px solid var(--w-blue); padding: 10px 14px; }
.wtime b { background: var(--w-blue); color: #fff; text-align: center; padding: 4px 0; font-weight: 900; font-size: 1.05rem; }
.wtime span { font-size: clamp(1.1rem, 2.6vw, 1.3rem); font-weight: 900; color: #2B2A26; }
.wtime i { font-style: normal; font-size: 0.92rem; font-weight: 500; color: #5A5850; text-align: right; line-height: 1.5; }
@media (max-width: 420px) { .wtime li { grid-template-columns: 4rem 1fr; } .wtime i { grid-column: 2; margin-top: -6px; text-align: left; } }

/* 4주 카드 — 폰에서도 한 화면에 들어오게 작게 */
.wkcard img { aspect-ratio: 4 / 3; }
@media (max-width: 820px) {
  .wgrid { gap: 10px; max-width: 520px; }
  .wkcard__box { padding: 7px 9px; font-size: 0.88rem; line-height: 1.45; }
  .wkcard__box b { font-size: 1rem; }
}

/* 시간표 날짜 왼쪽 맞춤 · 요일 배지와 버튼 한 단계 얇게 */
.wtime i { justify-self: end; width: 11.2em; text-align: left; }
.wtime b { font-weight: 700; }
.wbtn { font-weight: 700; }
@media (max-width: 420px) { .wtime i { justify-self: start; width: auto; } }

/* 섹션 뒷배경 — 그려 넣은 곡선 대신 받은 원본 라임 곡선 이미지 */
.wbg { background: #FEF5EA url(/winter/bg-tall.webp) center top / cover no-repeat; }
.wbg__curves { display: none; }
@media (min-width: 881px) { .wbg { background-image: url(/winter/bg-wide.webp); background-position: center; } }

/* 4주 — 사진 배경을 걷어낸 오브제만 페이지 배경 위에 */
.wkcard img { background: transparent; object-fit: contain; padding: 6px 4px 10px; filter: drop-shadow(0 8px 10px rgba(40, 40, 20, 0.16)); }
.wkcard { display: flex; flex-direction: column; justify-content: flex-end; margin: 0; }
.wkcard img { object-position: center bottom; padding-bottom: 0; filter: drop-shadow(0 -2px 8px rgba(40, 40, 20, 0.12)); }

/* 넓은 화면 첫 화면 — 오너먼트 아래로 「인조이풀」까지 한눈에 들어오게 무대 높이를 화면에 맞춘다 */
@media (min-width: 881px) {
  .hero--dec .hero__stage { min-height: calc(100svh - 240px); display: grid; align-items: center; }
  .hero--dec .playground.orns { width: 100%; max-width: min(1440px, calc((100svh - 270px) * 3)); margin-top: 8px; margin-bottom: 8px; }
  .hero--dec .hero__in { padding-top: 0.4rem; }
}

/* 12월 프로그램 첫 화면 — 숨 쉴 간격, 제목이 가장 크게, 두 문 중 하나를 눌러 들어가기 */
.wintro { padding-top: clamp(112px, 13vw, 168px); padding-bottom: clamp(56px, 8vw, 104px); }
.wintro .wser { font-size: clamp(3.2rem, 10vw, 6.6rem); margin: 0 0 clamp(18px, 2.6vw, 30px); }
.wintro .wser small { font-size: clamp(0.95rem, 1.8vw, 1.15rem); margin-bottom: clamp(12px, 1.8vw, 20px); letter-spacing: 0.01em; }
.wintro .wser__lead { margin-bottom: clamp(36px, 5vw, 60px); }
.wtime span { font-weight: 700; }
.wdoor { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wdoor:hover, .wdoor:focus-within { transform: translateY(-4px); box-shadow: 6px 8px 0 rgba(47, 92, 176, 0.18); }
.wdoor--club:hover, .wdoor--club:focus-within { box-shadow: 6px 8px 0 rgba(34, 34, 34, 0.16); }
.wdoor__go::after { content: ""; position: absolute; inset: 0; }
.wdoor .wbtn--red { position: relative; z-index: 1; }

/* 90분의 다섯째 걸음 — 돌아보기 */
.flow b:nth-of-type(5) { background: var(--butter-soft); }
