/* 기본 색상과 레이아웃 */
:root {
  color-scheme: light;
  --paper: #f7f9fc;
  --ink: #30343e;
  --accent: #596779;
  --muted: #939dac;
  --card-text: #626f81;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: flow-root;
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(to bottom, #f5e0ec 0, rgba(245,224,236,0) 30vh), url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23808080' opacity='.045' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
}
.shop { position: relative; width: min(100% - 40px, 510px); margin: 28px auto 32px; padding: 0 24px; }

/* 상단과 브랜드 */
.topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; color: var(--muted); }
.topline-star { display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; font-size: 1.3rem; color: #fff; }
.topline > span:not(.topline-star) { text-align: center; white-space: nowrap; font-size: clamp(.55rem, 2.25vw, .7rem); letter-spacing: .07em; }
header { padding-top: 34px; text-align: center; }
h1 { margin: 0; font-weight: 400; }
.wordmark { display: block; font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script", "Brush Script MT", cursive; font-weight: 400; font-size: 2.65rem; line-height: 1.25; letter-spacing: 0; }
#brand-image:empty { display: none; }
#brand-image img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; border: 1px solid #ccd8e7; background: #fff; }
.slogan { margin: 4px 0 0; font: italic 1rem/1.6 Georgia, serif; color: var(--muted); }
.intro { max-width: 310px; margin: 18px auto 0; font-size: .875rem; line-height: 1.8; word-break: keep-all; }

/* SNS 아이콘 */
.social-links { display: flex; justify-content: center; gap: 16px; margin: 22px 0 0; }
.social-link { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; text-decoration: none; }
.social-link:hover { background: #e9edf2; }
.social-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.social-link .link-icon { width: auto; color: var(--muted); }
.social-link .link-icon svg { width: 22px; height: 22px; }

/* 문구전 안내 */
.announcement { position: relative; margin: 30px 0 29px; padding: 27px 24px 29px; border: 1px solid #d5e4f1; border-radius: 4px; background: #f1f8ff; color: var(--card-text); box-shadow: 8px 8px 0 #fff; }
header:has(.social-links:not([hidden])) + .announcement { margin-top: 32px; }
.news-eyebrow { margin: 0 0 12px; font-size: .65rem; letter-spacing: .1em; color: #ffb1ef; }
.announcement h2 { margin: 0; font-size: clamp(1.75rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.45; white-space: pre-line; word-break: keep-all; }
.event-booth { margin: 16px 0 0; }
.booth-label { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 4px 18px; background: #fffbe3; color: #75695d; font-size: .9375rem; line-height: 1.8; }
.booth-label span { font-size: .9375rem; font-weight: 500; letter-spacing: 0; }
#event-booth { font-weight: 600; font-variant-numeric: tabular-nums; }
.event-info { border-top: 1px dashed #c4d2e4; margin-top: 30px; padding-top: 24px; }
.event-heading { display: flex; align-items: center; gap: 6px; min-height: 28px; margin-bottom: 6px; }
.event-heading h3 { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.03em; }
.event-info p { margin: 2px 0; font-size: .875rem; line-height: 1.65; word-break: keep-all; }
.event-dates { font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.event-home { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 4px; color: #788697; border-radius: 50%; }
.event-home svg { width: 17px; height: 17px; }
.event-home:hover { background: #e9edf2; }
.event-home:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 스토어 등 주소를 입력했을 때 표시되는 추가 링크 */
.section-label { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #606978; margin-bottom: 12px; }
.section-label span:last-child { font: .65rem Georgia, serif; letter-spacing: .12em; }
.link { display: flex; align-items: center; gap: 17px; min-height: 78px; margin-top: 12px; padding: 15px 20px; border: 1px solid #d0d7e1; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 #e5e9ef; transition: background .15s, transform .15s; }
.link:nth-child(2n) { background: #fcf0f5; border-color: #e6d8e0; box-shadow: 3px 3px 0 #eee5eb; }
.link:hover { background: #eaf2fb; transform: translateY(-2px); }
.link:nth-child(2n):hover { background: #f8e5ee; }
.link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.link-icon { display: flex; justify-content: center; width: 27px; flex-shrink: 0; color: var(--accent); }
.link-icon svg { width: 25px; height: 25px; }
.link-title { display: block; font-family: Georgia, serif; font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.link-detail { display: block; font-size: .85rem; color: #606978; margin-top: 5px; line-height: 1.5; }

/* 푸터 */
footer { text-align: center; margin-top: 56px; padding: 8px 0 16px; }
.footer-star { font-size: 1.4rem; color: #d1d7dc; }
footer small { display: block; margin-top: 18px; font-size: .7rem; color: var(--muted); }

/* 눈: 입력을 가로막지 않는 장식 레이어 */
.snowfall { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 10; }
.snowflake { position: absolute; top: -16px; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%; background: #fff; filter: blur(var(--blur)); opacity: var(--opacity); animation: snow-drift var(--duration) var(--delay) linear infinite; }
@keyframes snow-drift {
  from { transform: translate3d(0, -12px, 0); }
  to { transform: translate3d(var(--drift), calc(100vh + 32px), 0); }
}

/* 화면 크기와 동작 줄이기 설정 */
@media (min-width: 760px) {
  .shop { padding: 0 38px 32px; border-left: 1px solid #e0e5ed; border-right: 1px solid #e0e5ed; }
}
@media (max-width: 380px) {
  .shop { width: calc(100% - 28px); padding: 0 12px; }
  .topline { gap: 4px; }
  .topline-star { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .snowfall { display: none; }
  .snowflake { animation: none; }
}

/* 별표를 SVG로 고정해 모바일 이모지 변환 방지 */
.topline-star svg{width:21px;height:21px}
.footer-star svg{width:23px;height:23px}
