/* 기본 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    --accent-color: #0070f3;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    max-width: 480px; /* 3열 그리드에 가장 최적화된 너비 */
    margin: 50px auto;
    padding: 0 20px;
}

/* Header Section - 밀도 조절 */
header {
    text-align: center;
    margin-bottom: 45px;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.email {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(0,0,0,0.03);
    border-radius: 100px;
    display: inline-block;
    transition: all 0.2s;
}

.email:hover {
    background: rgba(0,0,0,0.06);
    color: var(--text-primary);
}

/* 3-Column Grid - 정렬 및 균형 */
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.main-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 2px solid transparent;
}

.main-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0,112,243,0.15);
}

.main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.main-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.card-text {
    padding: 10px 4px;
}

.main-card h3 {
    font-size: 0.72rem; /* 작은 화면 텍스트 깨짐 방지 */
    margin: 0;
    font-weight: 700;
    color: var(--text-primary);
}

.card-tags {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-top: 3px;
    opacity: 0.8;
}

/* Expanding Content Area - 연결성 강조 */
.expanding-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.5s ease;
    position: relative;
}

.expanding-content.open {
    max-height: 1200px;
    margin-bottom: 40px;
}

.content-inner {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.content-inner h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f0;
    padding-bottom: 10px;
    font-weight: 800;
}

.modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 모달용 미니멀 링크 칩 */
.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.modal-link-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid #eee;
    border-radius: 100px;
    text-decoration: none;
    color: #444;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
    gap: 8px;
}

.modal-link-chip:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.modal-link-chip img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
/* Goods Store - Warm Orange-Yellow Style */
.store { margin-bottom: 50px; text-align: center; }
.store-btn {
    display: block;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); /* 기존 예시 대신 더 세련된 주황-노랑-분홍 믹스 */
    background: linear-gradient(135deg, #FFD166 0%, #FFAD60 100%); /* 따뜻한 노랑-주황 */
    color: #854d0e; /* 진한 갈색 톤으로 가독성 확보 */
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.1em;
    box-shadow: 0 6px 20px rgba(255, 173, 96, 0.3);
    border: 2px solid #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.store-btn:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 173, 96, 0.5);
}
.store-btn::before, .store-btn::after {
    content: "✨";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
}

.store-btn::before { left: 35%; opacity: 0; }
.store-btn::after { right: 35%; opacity: 0; }

.store-btn:hover::before { opacity: 1; left: 28%; }
.store-btn:hover::after { opacity: 1; right: 28%; }

/* Other Links - 섹션 구분 명확화 */
.other-links-container {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.other-links-container h2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #bbb;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.other-links-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #666;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid #eee;
    gap: 8px;
    transition: all 0.2s;
}

.link-btn:hover {
    border-color: #ddd;
    color: var(--text-primary);
    background: #fdfdfd;
    transform: translateY(-1px);
}

.btn-icon { width: 14px !important; height: 14px !important; object-fit: contain; border-radius: 2px; }

footer { text-align: center; font-size: 0.7rem; color: #ccc; padding: 60px 0 40px; }
