/* bub BAKERY — 색과 글꼴은 로고(해마, 크림 바탕)에 맞췄습니다. */
:root {
  --bg: #FEF6EB;
  --bg-tint: #F6E8D5;
  --ink: #33251B;
  --muted: #6B5646;
  --accent: #8A4F2A;
  --accent-ink: #FEF6EB;
  --line: rgba(51, 37, 27, 0.14);
  --dark: #2B1F17;
  --dark-muted: #CDB8A3;
  --radius: 20px;
  --shadow: 0 24px 48px -24px rgba(90, 55, 25, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Gowun Batang", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { background: #74411f; }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(138, 79, 42, 0.08); }
.btn-light { background: var(--bg); color: var(--dark); border-color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: var(--bg); border-color: rgba(254, 246, 235, 0.35); }
.btn-ghost-light:hover { background: rgba(254, 246, 235, 0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(254, 246, 235, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

/* 첫 화면 */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; min-height: min(calc(100dvh - 68px - 128px), 720px); }
.hero-title { font-family: var(--serif); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; font-size: clamp(30px, 3.4vw, 44px); }
.lead { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 34em; }
.quick { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.quick li { padding: 16px 28px 0 0; margin-right: 28px; font-size: 15px; font-weight: 500; }
.quick li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.quick span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.hero-media { position: relative; }
.hero-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 흐르는 글자 띠 */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 22px; color: var(--accent); padding: 0 28px; white-space: nowrap; }
.marquee span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.4; margin-left: 56px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 공통 섹션 */
.section { padding: 112px 0; }
.section-tint { background: var(--bg-tint); }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head { margin-bottom: 48px; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

/* 소개 */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }
.about-copy p:not(.eyebrow) { margin-top: 20px; color: var(--muted); }
.amenities { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amenities li { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* 빵 갤러리 */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 16px; background: #e9d6bf; }
.tile img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-xl img { aspect-ratio: auto; min-height: 100%; }
.tile-wide { grid-column: span 2; }
.tile-wide img { aspect-ratio: 8 / 3; }
.tile figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(254, 246, 235, 0.92); color: var(--ink);
  font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}

/* 가로로 넘기는 띠 (시그니처, 매장 사진) */
.sig-strip, .moments-strip {
  --gutter: max(24px, calc((100vw - 1240px) / 2 + 24px));
  display: grid; grid-auto-flow: column; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 20px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sig-strip > *, .moments-strip > * { scroll-snap-align: start; }
.sig-strip { grid-auto-columns: minmax(240px, 280px); }
.sig-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--bg-tint); }
.sig-card h3 { font-size: 19px; margin-top: 16px; }
.sig-card p { font-size: 14px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.moments-strip { grid-auto-columns: auto; }
.moments-strip img { height: 360px; width: auto; max-width: none; object-fit: cover; border-radius: 16px; }

.clip-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--accent);
  transition: background 0.3s var(--ease);
}
.clip-link:hover { background: rgba(138, 79, 42, 0.08); }
.clip-link:active { transform: scale(0.98); }

/* 메뉴판 */
.board { margin: 0; }
.board a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #f7f1e8; cursor: zoom-in; }
.board img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.board a:hover img { transform: scale(1.01); }
.board figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* 자주 묻는 질문 */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* 오시는 길 */
.section-dark { background: var(--dark); color: var(--bg); }
.section-dark .eyebrow { color: var(--dark-muted); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.info { margin: 32px 0 0; }
.info > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(254, 246, 235, 0.14); }
.info dt { color: var(--dark-muted); font-size: 14px; }
.info dd { margin: 0; }
.info a { text-decoration: none; border-bottom: 1px solid rgba(254, 246, 235, 0.35); }
.copy {
  font: inherit; font-size: 13px; margin-left: 8px; padding: 2px 10px; cursor: pointer;
  color: var(--bg); background: transparent; border: 1px solid rgba(254, 246, 235, 0.35); border-radius: 999px;
}
.copy:active { transform: translateY(1px); }
.copy-status { font-size: 13px; color: var(--dark-muted); margin-left: 6px; }
.visit-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.visit-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--dark-muted); }
.visit-lead { margin-top: 16px; color: var(--dark-muted); max-width: 36em; }

/* 하단 */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 24px; align-items: flex-start; }
.footer-inner img { width: 72px; height: 72px; border-radius: 14px; }
.footer-text p { font-size: 14px; color: var(--muted); }
.footer-name { font-family: var(--serif); font-weight: 700; color: var(--ink) !important; font-size: 16px !important; margin-bottom: 6px !important; }
.copyright { margin-top: 10px !important; font-size: 13px !important; }

/* 스크롤하면 부드럽게 나타나기 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 태블릿 */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .hero-grid, .about-grid, .visit-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-xl { grid-row: span 1; }
  .tile-xl img { aspect-ratio: 16 / 10; }
  .section { padding: 80px 0; }
}

/* 휴대폰 */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 16px; }
  .hero { padding: 32px 0 48px; }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 calc(50% - 5px); padding: 0 12px; }
  .actions .btn:first-child { flex-basis: 100%; }
  .quick li { padding-right: 16px; margin-right: 16px; }
  .quick li + li { padding-left: 16px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile img, .tile-wide img, .tile-xl img { aspect-ratio: 4 / 3; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .sig-strip, .moments-strip { --gutter: 16px; gap: 12px; }
  .sig-strip { grid-auto-columns: 72%; }
  .moments-strip img { height: 260px; }
  .info > div { grid-template-columns: 72px 1fr; }
  .copy { margin: 6px 0 0; display: inline-block; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile img { transition: none; }
}

/* 휴대폰: 메뉴판을 크게 두고 옆으로 넘겨 보기 */
.hint-narrow { display: none; }
@media (max-width: 600px) {
  .board { margin-inline: -16px; }
  .board a { border-radius: 0; box-shadow: none; overflow-x: auto; overscroll-behavior-x: contain; }
  .board img { width: 960px; max-width: none; }
  .board a:hover img { transform: none; }
  .hint-wide { display: none; }
  .hint-narrow { display: inline; }
}
