/* [상호 참고 색상과 위계 / Cross-reference color and hierarchy]
   작품이 색을 이끌고 인터페이스는 흑백과 충분한 여백을 사용합니다.
   Artwork carries color; the interface uses neutral surfaces and clear spacing. */
:root {
    --radius: 0.625rem;
    --radius-media: 0.75rem;
    --radius-banner: 1rem;
    --section-gap: clamp(5rem, 7vw, 7rem);
}

.section-description {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: var(--text-body);
}

.desktop-nav a[aria-current] {
    text-decoration-color: var(--ink);
}

.button--yellow {
    color: var(--paper);
    background: var(--ink);
}

/* [작품 중심의 히어로 / Artwork-led hero]
   기존 사진·드래그·재생을 유지하고 행동 버튼의 채도 경쟁을 줄입니다.
   Preserve imagery, drag and playback while giving the action a neutral surface. */
.card--hero .button--yellow {
    color: var(--ink);
    background: var(--paper);
}

.season-copy h2 {
    font-weight: 650;
}

.season-label {
    letter-spacing: 0;
}

/* [비교 가능한 포스터 정보 / Comparable poster metadata]
   날짜·장소의 순서와 읽기 크기를 유지하며 상태를 작은 무채색 표식으로 구분합니다.
   Keep date and venue order and readable sizing with small neutral status labels. */
.poster-tag.today {
    color: var(--ink);
    background: var(--paper);
}

.program-card-meta > span + span {
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
}

.home-program-grid {
    gap: 2rem;
}

.card--poster h3 {
    min-height: 3em;
}

.program-choice button {
    min-height: var(--control-size);
}

/* [시즌 안내의 편집 구성 / Editorial season invitation]
   큰 유채색 면 대신 제목·연도·목적지의 대비로 시즌을 소개합니다.
   Introduce the season through typography and a destination rather than a broad color field. */
.card--banner {
    color: var(--ink);
    background: #f3f4f4;
}

.card-banner-link {
    align-items: center;
    padding: 3rem 4rem;
}

.card--banner h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: var(--weight-title);
}

.invitation-art {
    min-width: 16rem;
    padding-left: 2.5rem;
    border-left: 1px solid #d6dadd;
}

.invitation-art i {
    display: none;
}

.invitation-art > span {
    font-size: 5rem;
}

.invitation-art b {
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0;
}

/* [방문 준비의 사진과 정보 / Visitor photograph and information]
   건물의 가로 맥락을 보존하고 서비스 링크의 간격을 일정하게 맞춥니다.
   Preserve the building's horizontal context and align practical service links. */
.visit-photograph img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.visit-link-list a {
    padding-block: 1.25rem;
}

/* [포커스된 방문 안내 이미지 / Focused visitor guide image]
   같은 크기 안에서 이미지만 교차 전환하며 링크·문구의 배치는 유지합니다.
   Crossfade within a stable frame while preserving the existing links and layout. */
.visit-photograph {
    display: grid;
    min-width: 0;
}

.visit-photograph img[data-visit-image] {
    grid-area: 1 / 1;
    opacity: 0%;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.visit-photograph img[aria-hidden="false"] {
    opacity: 100%;
}

.visit-photograph img[data-visit-kind="illustration"] {
    object-fit: contain;
}

.visit-link-list a.is-previewed strong {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* [텍스트 우측의 공통 미리보기 / Shared preview to the right of the text]
   기본 사진을 유지하며 하나의 프레임 안에서만 이미지를 교차 전환합니다.
   Preserve the main photograph and crossfade inside one frame beside the text. */
.visit-links-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 1.5rem;
}

.visit-hover-rail {
    min-width: 0;
    pointer-events: none;
}

.visit-hover-preview {
    position: sticky;
    top: var(--visit-preview-top, 30vh);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.3125rem;
    background: var(--paper);
    box-shadow: 0 0.5rem 1.5rem rgb(17 20 38 / 10%);
}

.visit-hover-preview img {
    /* 원본 비율이 프레임 높이를 늘리지 않도록 고정합니다. / Keep intrinsic ratios from enlarging the frame. */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0%;
    transition: opacity 240ms ease;
}

.visit-hover-preview img[data-visit-kind="illustration"] {
    object-fit: contain;
}

.visit-hover-preview img.is-active {
    opacity: 100%;
}

@media (min-width: 801px) {
    .home-visit {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
        gap: clamp(2rem, 4vw, 4rem);
    }
}

@media (max-width: 800px), (hover: none), (pointer: coarse) {
    .visit-links-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .visit-hover-rail {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .visit-photograph img[data-visit-image],
    .visit-hover-preview,
    .visit-hover-preview img {
        transition: none;
    }
}

/* [소식과 멤버십 / News and membership]
   공지의 읽기 순서 옆에 지속적인 혜택 진입점을 조용히 둡니다.
   Place a persistent benefit destination alongside the ordered news list. */
.home-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.news-editorial-list a {
    grid-template-columns: 5rem minmax(0, 1fr) 1.5rem;
    gap: 0.5rem 1.5rem;
    padding-block: 1.5rem;
}

.news-editorial-list h3 {
    font-size: var(--text-item-title);
    line-height: 1.5;
}

.news-editorial-list time {
    grid-column: 2;
}

.news-editorial-list svg {
    grid-column: 3;
    grid-row: 1 / 3;
}

.membership-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 2.8vw, 2.5rem);
    border-radius: var(--radius-banner);
    background: #f3f4f4;
}

.membership-label {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: var(--text-sm);
}

.membership-feature h3 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 2.2vw, 2.25rem);
    font-weight: var(--weight-title);
    line-height: 1.4;
}

.membership-feature > p:not(.membership-label) {
    margin: 0 0 2rem;
    font-size: var(--text-body);
    color: var(--muted);
}

.membership-feature .text-link {
    margin-top: auto;
    min-height: var(--control-size);
}

@media (hover: hover) and (pointer: fine) {
    .button--yellow:hover {
        background: #30343a;
    }

    .card--hero .button--yellow:hover {
        background: #edf0f2;
    }
}

/* [좁은 화면에서의 재구성 / Narrow-screen recomposition]
   글자 축소 대신 줄바꿈과 세로 배치로 정보·행동을 보존합니다.
   Preserve information and actions by wrapping and stacking instead of shrinking text. */
@media (max-width: 1024px) {
    .home-news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .membership-feature {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .section-heading {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .section-heading .text-link {
        padding-top: 0;
        min-height: var(--control-size);
    }

    .section-description {
        margin-top: 0.75rem;
    }

    .home-program-grid {
        gap: 2rem 1rem;
    }

    .card--poster h3 {
        min-height: 0;
    }

    .program-card-meta > span + span {
        padding-left: 0;
        border-left: 0;
    }

    .card-banner-link {
        padding: 2rem 1.5rem;
    }

    .visit-photograph img {
        aspect-ratio: 4 / 3;
    }

    .news-editorial-list a {
        grid-template-columns: minmax(0, 1fr) 1.5rem;
        gap: 0.5rem 1rem;
    }

    .news-editorial-list time {
        grid-column: 1;
    }

    .news-editorial-list svg {
        grid-column: 2;
        grid-row: 1 / 4;
    }

    .membership-feature {
        padding: 2rem 1.5rem;
    }
}
