/* Pretendard GOV 및 Pretendard 불러오기 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-gov.min.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --krds-primary: #000000;
    --krds-secondary: #ffffff;
    --krds-gray-100: #f8f9fa;
    --krds-gray-200: #e9ecef;
    --krds-gray-600: #6c757d;
    --krds-border: rgba(0, 0, 0, 0.1);
    --krds-border-white: rgba(255, 255, 255, 0.15);
    --font-main: 'Pretendard GOV', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-accent: 'Playfair Display', serif;
}

html {
    scroll-snap-type: y proximity; /* mandatory에서 proximity로 변경하여 부드러운 유도 */
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    line-height: 1.6;
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Decorative Props & Icons */
.prop-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 2rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.museum-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--krds-border-white);
    border-radius: 20px;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--krds-gray-600);
}

/* KRDS Style Sectioning */
section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--krds-border-white);
}

.theme-light {
    background-color: var(--krds-secondary);
    color: var(--krds-primary);
    border-bottom: 1px solid var(--krds-border);
}

/* Typography per KRDS */
.exhibit-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--krds-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.myeongjo {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 700;
}

/* Hero Section with High-end Backdrop */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, transparent), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2072') no-repeat center/cover;
    z-index: -1;
}

/* Card System (KRDS Style) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.krds-card {
    padding: 48px;
    border: 1px solid var(--krds-border-white);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.theme-light .krds-card {
    border: 1px solid var(--krds-border);
    background: var(--krds-gray-100);
}

.krds-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.theme-light .krds-card:hover {
    background: #fff;
    border-color: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Timeline: Curator's Archive */
.archive-list {
    border-top: 2px solid currentColor;
}

.archive-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 40px 0;
    border-bottom: 1px solid var(--krds-border);
}

.theme-dark .archive-item { border-color: var(--krds-border-white); }

.archive-year {
    font-size: 1.5rem;
    font-weight: 700;
}

.archive-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.archive-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.8;
}

/* Contact Minimal */
.contact-wrap {
    text-align: center;
    padding: 200px 0;
}

.email-link {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.3s;
}

/* Footer (KRDS based) */
footer {
    padding: 80px 10%;
    background: #000;
    border-top: 1px solid var(--krds-border-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h5 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--krds-gray-600);
}

.footer-col p {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #444;
    text-align: center;
}

/* Navigation Dots (KRDS Accent) */
.nav-tracker {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-tracker a {
    width: 6px;
    height: 6px;
    background: rgba(128, 128, 128, 0.4);
    display: block;
    margin: 24px 0;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-tracker a.active {
    background: #fff;
    transform: scale(2.5);
}

.theme-light .nav-tracker a.active { background: #000; }

@media (max-width: 992px) {
    .archive-item { grid-template-columns: 1fr; gap: 1rem; }
}
