/* ===================================================
   게이온 — 파스텔 라이프스타일 벤토
   라벤더·민트·크림 / 큰 라운드 / 부드러운 그림자
   =================================================== */

:root {
    --cream: #fdfbf6;
    --lav: #e4d8fb;
    --lav-deep: #c9b4f2;
    --mint: #d6f2e3;
    --peach: #ffe3d4;
    --sun: #ffd56b;
    --ink: #3f3757;
    --ink-soft: #6a6183;
    --ink-mute: #928aa8;
    --line: #e9e2f5;
    --card: #fffdfa;

    --font-display: 'Jua', 'Noto Sans KR', sans-serif;
    --font-body: 'Gowun Dodum', 'Noto Sans KR', sans-serif;

    --wrap: 1120px;
    --gutter: clamp(1.15rem, 4vw, 2.4rem);
    --r-sm: 14px;
    --r-md: 22px;
    --r-lg: 32px;
    --r-pill: 999px;
    --shadow: 0 12px 32px rgba(91, 75, 138, .10);
    --shadow-sm: 0 5px 16px rgba(91, 75, 138, .08);
    --ease: 220ms ease;

    --t-xs: .74rem;
    --t-sm: .86rem;
    --t-base: 1rem;
    --t-lg: 1.16rem;
    --t-xl: clamp(1.35rem, 2.6vw, 1.8rem);
    --t-2xl: clamp(1.9rem, 4.4vw, 3rem);
    --t-3xl: clamp(2.5rem, 6.5vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--t-base);
    line-height: 1.85;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease), transform var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 배경 블롭 */
.soft-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.soft-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.soft-bg span:nth-child(1) { width: 34vw; height: 34vw; background: var(--lav); top: -8vw; left: -8vw; }
.soft-bg span:nth-child(2) { width: 28vw; height: 28vw; background: var(--mint); top: 36%; right: -10vw; }
.soft-bg span:nth-child(3) { width: 30vw; height: 30vw; background: var(--peach); bottom: -10vw; left: 22%; opacity: .4; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

/* 헤더 — 플로팅 필 */
.site-header { position: sticky; top: 0; z-index: 100; padding: .9rem var(--gutter); }
.header-inner {
    max-width: var(--wrap); margin: 0 auto; height: 60px; padding: 0 .5rem 0 1.1rem;
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255,253,250,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.logo-img { height: 40px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: .1rem; }
.nav-link {
    display: block; padding: .42rem .85rem; border-radius: var(--r-pill);
    font-size: var(--t-sm); color: var(--ink-soft);
}
.nav-link:hover { background: var(--lav); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--cream); }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .78rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid var(--ink);
    background: transparent; color: var(--ink); font-family: var(--font-body); font-size: var(--t-sm);
    font-weight: 700; cursor: pointer; transition: all var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: #2c2640; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-lg { padding: 1rem 2rem; font-size: var(--t-base); }
/* 히어로는 게동 바로가기 버튼 하나만 — 화면 중앙에 가장 크게 */
.hero.hero-solo {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: clamp(24rem, 62vh, 40rem);
    padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.hero.hero-solo .btn-gedong {
    width: 100%; max-width: 44rem;
    padding: clamp(1.6rem, 3vw, 2.2rem) 2rem;
    font-size: clamp(1.4rem, 3.4vw, 2.2rem);
    background: var(--ink); border-color: var(--ink); color: var(--cream);
    box-shadow: 0 18px 40px rgba(91, 75, 138, .28);
}
.hero.hero-solo .btn-gedong:hover { background: #2c2640; color: var(--cream); transform: translateY(-3px); }

/* 히어로 */
.hero { padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.hero-weather {
    display: inline-flex; align-items: center; gap: .45rem; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
    padding: .45rem 1rem; font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 1.4rem;
}
.hero-weather b { color: var(--ink); }
.hero h1 {
    font-family: var(--font-display); font-size: var(--t-3xl); line-height: 1.16;
    letter-spacing: -.01em; margin: 0 0 1.1rem; word-break: keep-all;
}
.hero h1 mark { background: linear-gradient(transparent 58%, var(--sun) 58%); color: inherit; padding: 0 .1em; }
.hero-lede { font-size: var(--t-lg); color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.8rem; word-break: keep-all; }
.hero-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }

.mood-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.mood-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
    font-size: var(--t-sm); box-shadow: var(--shadow-sm);
}
.mood-chip:hover { background: var(--lav); transform: translateY(-2px); }

/* 벤토 */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento-card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .45rem; overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card .b-emoji { font-size: 1.8rem; line-height: 1; }
.bento-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; line-height: 1.35; }
.bento-card p { font-size: var(--t-sm); color: var(--ink-soft); }
.bento-card .b-link { margin-top: auto; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.bento-card .b-link::after { content: ' →'; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-1 { grid-column: span 1; }
.tint-lav { background: var(--lav); }
.tint-mint { background: var(--mint); }
.tint-peach { background: var(--peach); }
.tint-sun { background: var(--sun); }
.bento-card.tint-lav, .bento-card.tint-mint, .bento-card.tint-peach, .bento-card.tint-sun { border-color: transparent; }

/* 섹션 */
.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 400; margin: 0; line-height: 1.2; }
.section-head .more { margin-left: auto; font-size: var(--t-sm); color: var(--ink-mute); }
.section-head .more:hover { color: var(--ink); }

/* 동네 카드 */
.city-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.city-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1.1rem; display: flex; flex-direction: column; gap: .25rem;
    box-shadow: var(--shadow-sm); transition: transform var(--ease), background var(--ease);
}
.city-card:hover { transform: translateY(-3px); background: var(--mint); }
.city-card .cc-name { font-family: var(--font-display); font-size: 1.08rem; }
.city-card .cc-desc { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.55; }

/* 기분 리스트 */
.mood-list { display: flex; flex-direction: column; gap: .6rem; }
.mood-row {
    display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .9rem; align-items: center;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: .95rem 1.1rem; box-shadow: var(--shadow-sm); transition: background var(--ease), transform var(--ease);
}
.mood-row:hover { background: var(--lav); transform: translateX(4px); }
.mood-row .mr-emoji { font-size: 1.5rem; }
.mood-row .mr-name { font-family: var(--font-display); font-size: 1.02rem; }
.mood-row .mr-desc { display: block; font-size: var(--t-xs); color: var(--ink-soft); font-family: var(--font-body); }
.mood-row .mr-go { color: var(--ink-mute); }

/* 온노트 */
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.note-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1.2rem; box-shadow: var(--shadow-sm); transition: transform var(--ease);
}
.note-card:hover { transform: translateY(-3px); }
.note-card time { display: inline-block; font-size: var(--t-xs); color: var(--ink-mute); background: var(--lav); padding: .16rem .55rem; border-radius: var(--r-pill); }
.note-card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 400; line-height: 1.4; margin: .65rem 0 .4rem; }
.note-card h3 a:hover { color: #6d55b3; }
.note-card p { font-size: var(--t-sm); color: var(--ink-soft); }

/* CTA */
.cta { padding: clamp(2.4rem,5vw,4rem) 0; }
.cta-inner {
    max-width: 780px; margin: 0 auto; padding: clamp(2rem,5vw,3.2rem) var(--gutter);
    background: var(--ink); color: var(--cream); border-radius: var(--r-lg); text-align: center;
}
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--t-2xl); margin: 0 0 .8rem; color: var(--sun); }
.cta p { color: rgba(253,251,246,.72); margin-bottom: 1.6rem; }
.cta-note { font-size: var(--t-xs); color: rgba(253,251,246,.42); margin-top: 1.1rem; }

/* 하위 페이지 */
.page-head { padding: clamp(2rem,4.5vw,3.2rem) 0 1.6rem; }
.page-head .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page-head h1 { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 400; line-height: 1.2; margin: .6rem 0 .8rem; word-break: keep-all; }
.page-head .lede { color: var(--ink-soft); max-width: 38rem; }

.chip-label {
    display: inline-block; background: var(--lav); border-radius: var(--r-pill);
    padding: .3rem .85rem; font-size: var(--t-xs); font-weight: 700; color: #5b4b8a;
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--t-xs); color: var(--ink-mute); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--line); }

.content-body { padding: clamp(2rem,4.5vw,3.4rem) 0; }
.content-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

.article-head { margin-bottom: 1.6rem; }
.article-head h1 { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 400; line-height: 1.22; margin: .6rem 0 .9rem; word-break: keep-all; }
.article-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: var(--t-xs); color: var(--ink-mute); }
.tag { background: var(--mint); color: #3d6b54; border-radius: var(--r-pill); padding: .14rem .55rem; }

.prose { font-size: 1.02rem; line-height: 1.95; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 400; color: var(--ink); margin-top: 2.3rem; line-height: 1.35; word-break: keep-all; }
.prose h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); margin-top: 1.8rem; }
.prose strong { color: var(--ink); }
.prose a { color: #6d55b3; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: '🌱 '; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45rem; padding-left: .2rem; }
.prose blockquote {
    background: var(--lav); border-radius: var(--r-md); padding: 1.1rem 1.3rem;
    font-size: var(--t-lg); color: #4b3f72; margin-block: 1.8rem;
}
.prose img { border-radius: var(--r-md); margin-block: 1.8rem; box-shadow: var(--shadow); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2rem; }
.prose code { background: var(--mint); border-radius: 6px; padding: .1em .4em; }

.article-foot { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.post-nav-link { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem; }
.post-nav-link:hover { background: var(--lav); }
.post-nav-label { display: block; font-size: var(--t-xs); color: var(--ink-mute); margin-bottom: .25rem; }
.post-nav-title { font-weight: 700; font-size: .9rem; line-height: 1.45; }
.post-nav-link.next { text-align: right; }

.list { display: flex; flex-direction: column; gap: .8rem; }
.list-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.list-item:hover { background: #fbf8ff; }
.list-item time { font-size: var(--t-xs); color: var(--ink-mute); }
.list-item h2 { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 400; line-height: 1.4; margin: .3rem 0 .3rem; }
.list-item p { font-size: var(--t-sm); color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.8rem; font-size: var(--t-sm); }
.page-link { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .9rem; }
.page-link:hover { background: var(--lav); }

.notice { background: var(--peach); border-radius: var(--r-md); padding: 1rem 1.2rem; font-size: var(--t-sm); color: #7a4a33; margin-block: 1.6rem; }
.pullquote { font-family: var(--font-display); font-size: var(--t-xl); line-height: 1.5; text-align: center; background: var(--mint); border-radius: var(--r-md); padding: 1.4rem; margin-block: 1.9rem; }

/* 모바일 CTA */
.mobile-cta { display: none; }
.mobile-cta a {
    display: block; text-align: center; background: var(--ink); color: var(--cream);
    padding: .9rem 1rem; border-radius: var(--r-pill); font-weight: 700; box-shadow: var(--shadow);
}

/* 푸터 */
.site-footer { padding: 2.6rem 0 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer-brand { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; padding-bottom: 1.4rem; }
.footer-logo-img { height: 40px; }
.footer-brand p { font-size: var(--t-sm); color: var(--ink-soft); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.footer-cols h3 { font-size: var(--t-xs); color: var(--ink-mute); margin: 0 0 .5rem; letter-spacing: .08em; }
.footer-cols li { margin-bottom: .35rem; }
.footer-cols a { font-size: var(--t-sm); color: var(--ink-soft); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: var(--t-xs); color: var(--ink-mute); }

/* 반응형 */
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .b-3 { grid-column: span 2; }
    .b-2 { grid-column: span 2; }
    .city-row { grid-template-columns: repeat(2, 1fr); }
    .note-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .site-nav { display: none; position: absolute; top: 72px; left: var(--gutter); right: var(--gutter); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: .5rem; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; }
    .nav-link { padding: .65rem .8rem; }
    .menu-toggle { display: block; }
    .bento, .note-grid { grid-template-columns: 1fr; }
    .b-3, .b-2 { grid-column: span 1; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-link.next { text-align: left; }
    .mobile-cta { display: block; position: sticky; bottom: 1rem; margin: 1.4rem var(--gutter); z-index: 50; }
    .footer-cols { grid-template-columns: 1fr; }
    body { padding-bottom: .5rem; }
}

/* 등장 */
.soft-in { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.soft-in.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .soft-in { opacity: 1; transform: none; } }
