:root {
  --bg: #fff8f8;
  --surface: #ffffff;
  --ink: #4a3b40;
  --muted: #a3929a;
  --line: #f6e4e8;
  --pink: #f4a6bb;
  --pink-ink: #d9728f;
  --pink-soft: #fde9ee;
  --lav-soft: #efe9fb; --lav-ink: #8a70c2;
  --mint-soft: #e5f6ef; --mint-ink: #4f9c7d;
  --butter-soft: #fdf3dc; --butter-ink: #b88a2c;
  --sky-soft: #e6f1fc; --sky-ink: #5a8cc4;
  --shadow: 0 8px 28px rgba(244, 166, 187, .22);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --round: "Gowun Dodum", "Pretendard Variable", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; } }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(244, 166, 187, .16) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  font: 16px/1.85 "Pretendard Variable", Pretendard, system-ui, sans-serif;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink-ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* 상단 */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 248, .85); backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 8px -6px 0 -3px var(--lav-ink); transition: transform .5s var(--spring); }
.brand:hover::before { transform: scale(1.3); }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 4px 14px; border-radius: 999px; transition: color .2s, background .2s; }
nav a:hover { color: var(--pink-ink); background: var(--pink-soft); }

/* 메인 */
.intro { text-align: center; padding: 64px 0 44px; }
.intro-deco { font-family: var(--serif); font-style: italic; color: var(--pink-ink); font-size: 1.2rem; margin: 0 0 6px; }
.intro h1 { font-size: clamp(2.1rem, 7vw, 3.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.2; margin: 0; }
.hl { position: relative; display: inline-block; }
.hl::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: .08em; height: .38em; z-index: -1;
  background: var(--pink-soft); border-radius: 999px; transform: rotate(-1.5deg);
}
.intro > p:not(.intro-deco) { font-family: var(--round); color: var(--muted); margin: 12px 0 0; }

.search {
  display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 32px auto 0; padding: 0 20px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 16px rgba(244, 166, 187, .12); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 5px var(--pink-soft); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-linecap: round; }
#q { flex: 1; min-width: 0; padding: 13px 0; font: inherit; font-family: var(--round); color: var(--ink); background: none; border: 0; }
#q::placeholder { color: var(--muted); }
#q:focus { outline: none; }

/* 사진 카드 */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 28px; background: var(--pink-soft); box-shadow: var(--shadow);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s ease, transform .7s ease; }
.card-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: #fff;
  background: rgba(244, 166, 187, .22);
  opacity: 0; transition: opacity .4s ease;
}
.card-name { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; text-shadow: 0 2px 12px rgba(120, 50, 80, .3); transform: translateY(10px) scale(.92); transition: transform .5s var(--spring); }
.card-go { font-family: var(--round); font-size: .85rem; color: var(--pink-ink); background: #fff; padding: 4px 14px; border-radius: 999px; transform: translateY(10px); opacity: 0; transition: transform .5s var(--spring) .08s, opacity .3s .08s; }
.card a:hover, .card a:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(244, 166, 187, .35); outline: none; }
.card a:hover img, .card a:focus-visible img { filter: blur(6px) brightness(.9); transform: scale(1.06); }
.card a:hover .card-label, .card a:focus-visible .card-label { opacity: 1; }
.card a:hover .card-name, .card a:focus-visible .card-name { transform: none; }
.card a:hover .card-go, .card a:focus-visible .card-go { transform: none; opacity: 1; }
@media (hover: none) {
  .card-label { opacity: 1; align-items: flex-start; justify-content: flex-end; text-align: left; background: linear-gradient(transparent 55%, rgba(120, 60, 80, .32)); }
  .card-name { transform: none; font-size: 1.2rem; }
  .card-go { display: none; }
}
.empty { font-family: var(--round); color: var(--muted); text-align: center; padding: 64px 0; }

/* 게시글: 전체 화면 사진 */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--pink-soft); }
.hero-img { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100svh; object-fit: cover; z-index: 0; will-change: transform, filter; }
.float-home {
  position: fixed; top: 16px; left: 16px; z-index: 20; text-decoration: none; color: var(--ink); font-size: .88rem;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: transform .3s var(--spring), background .2s;
}
.float-home:hover { background: #fff; transform: scale(1.06); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.bubble { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 16px rgba(0, 0, 0, .1); animation: hop 1.6s var(--spring) infinite; }
.bubble svg { width: 20px; height: 20px; fill: none; stroke: var(--pink-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(8px); } }

.guide {
  position: relative; z-index: 2; max-width: 760px; margin: -40px auto 0; padding: 48px 20px 64px;
  background: var(--surface); border-radius: 0;
  outline: 1.5px dashed rgba(244, 166, 187, .55); outline-offset: -12px;
}
@media (min-width: 800px) { .guide { margin-bottom: 80px; padding: 64px 64px 72px; } }
/* 레이스 장식 (위·아래 가장자리) */
.guide::before, .guide::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 16V11A14 11 0 0 1 28 11V16ZM14 5.2a2.2 2.2 0 1 0 0 4.4a2.2 2.2 0 1 0 0-4.4ZM6.4 10a1.3 1.3 0 1 0 0 2.6a1.3 1.3 0 1 0 0-2.6ZM21.6 10a1.3 1.3 0 1 0 0 2.6a1.3 1.3 0 1 0 0-2.6ZM14 12.4a.9 .9 0 1 0 0 1.8a.9 .9 0 1 0 0-1.8Z'/%3E%3C/svg%3E") repeat-x center / 28px 16px;
}
.guide::before { top: -15px; }
.guide::after { bottom: -15px; transform: scaleY(-1); display: none; }
@media (min-width: 800px) { .guide::after { display: block; } }
.guide-head { text-align: center; padding-bottom: 32px; margin-bottom: 36px; border-bottom: 2px dotted var(--line); }
.eyebrow { display: inline-block; font-family: var(--round); color: var(--pink-ink); background: var(--pink-soft); font-size: .88rem; padding: 2px 14px; border-radius: 999px; margin: 0; }
.guide-head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; margin: 14px 0 22px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.meta div { display: flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: .9rem; }
.meta div:nth-child(4n+1) { background: var(--pink-soft); color: var(--pink-ink); }
.meta div:nth-child(4n+2) { background: var(--lav-soft); color: var(--lav-ink); }
.meta div:nth-child(4n+3) { background: var(--mint-soft); color: var(--mint-ink); }
.meta div:nth-child(4n+4) { background: var(--butter-soft); color: var(--butter-ink); }
.meta dt { opacity: .75; }
.meta dt::after { content: " ·"; }
.meta dd { margin: 0; font-weight: 600; }
.badge { white-space: nowrap; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.tags li { font-family: var(--round); font-size: .88rem; color: var(--muted); }

/* 짜잔 등장 효과 */
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s ease, transform .8s var(--spring); }
.reveal.shown { opacity: 1; transform: none; }

/* 본문 */
.prose { font-size: 1.02rem; }
.prose h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.035em; margin: 2.4em 0 .7em; }
.prose h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 5px var(--pink-soft); flex: none; }
.prose h3 { font-size: 1.08rem; font-weight: 700; color: var(--pink-ink); margin: 1.8em 0 .4em; }
.prose img { border-radius: 22px; }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; background: var(--pink-soft); border-radius: 22px; }
.prose blockquote p { margin: 0; }
.prose ul li::marker, .prose ol li::marker { color: var(--pink); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border-radius: 20px; border: 2px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 700; font-size: .88rem; color: var(--pink-ink); background: var(--pink-soft); }
.prose code { background: var(--lav-soft); color: var(--lav-ink); padding: 2px 8px; border-radius: 8px; font-size: .88em; }
.prose pre { background: var(--bg); padding: 14px 18px; border-radius: 18px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { border: 0; height: 8px; margin: 3em auto; width: 48px; background: radial-gradient(circle, var(--pink) 3px, transparent 3.5px) 0 0 / 16px 8px repeat-x; }
.back-btn {
  display: block; width: fit-content; margin: 56px auto 0; padding: 12px 28px; border-radius: 999px;
  background: var(--pink); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow); transition: transform .35s var(--spring), background .2s;
}
.back-btn:hover { background: var(--pink-ink); transform: translateY(-3px) scale(1.03); }

/* 소개 페이지 */
.page { max-width: 680px; margin: 48px auto; padding: 48px 28px; background: var(--surface); border-radius: 36px; box-shadow: var(--shadow); }
.page h1 { margin-top: 0; font-size: 2rem; letter-spacing: -0.04em; }

.site-footer { position: relative; z-index: 2; text-align: center; color: var(--muted); font-size: .82rem; padding: 40px 0 48px; background: var(--bg); }
.site-footer p { margin: 2px 0; }
.small { font-size: .78rem; }

/* 마우스를 따라다니는 동그라미 */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--pink); opacity: 0;
  transition: width .3s var(--spring), height .3s var(--spring), margin .3s var(--spring),
              background .25s, border-color .25s, opacity .3s;
  border: 1.5px solid transparent;
}
.cursor-dot.on { opacity: .85; }
.cursor-dot.big {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: rgba(244, 166, 187, .12); border-color: var(--pink);
}
.cursor-dot.down { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.cursor-dot.big.down { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
