@font-face {
  font-family: 'Dandelion';
  src: url('../fonts/Dandelion.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --cream: #FAF6EE;
  --paper: #FFFFFF;
  --ink: #33302A;
  --ink-soft: #7A7267;
  --line: rgba(51, 48, 42, 0.13);
  --line-soft: rgba(51, 48, 42, 0.07);
  --accent: #9C7A54;
  --white: #FFFFFF;

  --wood: #C7A988;
  --wood-deep: #9C7A54;
  --sage: #8FA084;
  --sage-deep: #6C7C62;
  --steel: #ACB1AF;
  --steel-deep: #7C8280;

  --font-display: 'Fraunces', 'Gowun Batang', serif;
  --font-body: 'Inter', 'PretendardVariable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Dandelion', 'Fraunces', cursive;

  --gutter: 32px;
  --container: 1200px;
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 242, 232, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-color: var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  display: block;
  justify-self: center;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: color 0.35s ease;
}
.site-header.scrolled .logo { color: var(--ink); }

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--font-brand);
  line-height: 1;
}
.brand-L {
  height: 1.05em;
  width: auto;
  margin-right: -0.05em;
  transform: translateY(0.06em);
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn {
  justify-self: start;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-header.scrolled .menu-btn span { background: var(--ink); }
.menu-btn.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu-btn.open span { background: var(--ink) !important; }

.header-insta {
  justify-self: end;
  display: flex;
  color: var(--white);
  transition: color 0.35s ease;
}
.site-header.scrolled .header-insta { color: var(--ink); }
.header-insta .icon { width: 21px; height: 21px; fill: currentColor; }

.subpage .site-header {
  background: rgba(246, 242, 232, 0.94);
  backdrop-filter: blur(10px);
  border-color: var(--line);
  padding: 14px 0;
}
.subpage .logo,
.subpage .header-insta { color: var(--ink); }
.subpage .menu-btn span { background: var(--ink); }

/* ---------- slide menu ---------- */
.menu-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(420px, 86vw);
  background: var(--paper);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.65,0,.35,1);
  display: flex;
  align-items: center;
}
.menu-panel.open { transform: translateX(0); }
.menu-panel-inner { padding: 0 56px; display: flex; flex-direction: column; gap: 28px; }
.menu-panel-inner a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.menu-panel-inner a:hover { opacity: 0.55; }

.menu-scrim {
  position: fixed; inset: 0;
  background: rgba(30, 28, 22, 0.35);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,14,0.15) 0%, rgba(20,19,14,0.1) 40%, rgba(20,19,14,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  color: var(--white);
  padding: 0 24px 76px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: rgba(255,255,255,0.85);
}
.hero-title { margin-bottom: 22px; text-align: center; }
.hero-title .brand-mark { font-size: clamp(4.2rem, 15vw, 9rem); color: var(--white); }
.hero-title .brand-L { stroke-width: 5; }
.hero-copy { font-size: 1rem; margin: 0 0 30px; color: rgba(255,255,255,0.92); max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- marquee ---------- */
.marquee { background: var(--sage-deep); color: var(--cream); overflow: hidden; padding: 16px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  white-space: nowrap;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.marquee-track span:not(.rule) { padding: 0 4px; }
.rule { width: 22px; height: 1px; background: rgba(246,242,232,0.35); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 640px;
}
.about-media { overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--gutter);
  max-width: 560px;
}
.about-text h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.3; margin-bottom: 24px; font-weight: 500; }
.about-text p { color: var(--ink-soft); margin: 0 0 18px; font-size: 1rem; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink); margin-top: 10px; }

/* ---------- shop ---------- */
.shop { background: var(--paper); padding: 100px 0 0; }
.shop-heading { text-align: center; padding: 0 24px 64px; }
.shop-heading h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.shop-tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.shop-tile-img { aspect-ratio: 4/5; overflow: hidden; }
.shop-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shop-tile:hover .shop-tile-img img { transform: scale(1.05); }
.shop-tile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--ink);
}
.shop-tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.shop-tile-caption .icon {
  width: 15px; height: 15px;
  fill: none; stroke: var(--wood-deep); stroke-width: 2;
  transition: transform 0.25s ease;
}
.shop-tile:hover .shop-tile-caption .icon { transform: translateX(4px); }

@media (min-width: 860px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- category page ---------- */
.category-hero {
  padding: 150px var(--gutter) 40px;
  max-width: var(--container);
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(180deg); }
.category-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
.category-count { color: var(--ink-soft); margin: 14px 0 0; font-size: 0.92rem; }

.category-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border-top: 2px solid var(--line);
}
.category-gallery figure {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
}
.category-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-gallery a:hover img, .category-gallery figure:hover img { transform: scale(1.05); }
@media (min-width: 860px) {
  .category-gallery { grid-template-columns: repeat(3, 1fr); }
}

.category-cta {
  text-align: center;
  padding: 90px 24px;
  max-width: 520px;
  margin: 0 auto;
}
.category-cta p { color: var(--ink-soft); margin: 0 0 26px; }
.category-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

.shop-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 52px auto 0;
  padding: 0 24px 100px;
}

/* ---------- visit ---------- */
.visit { background: var(--cream); padding: 110px 0 130px; }
.visit-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.visit-info h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 32px; font-weight: 500; }

.info-list { margin: 0 0 32px; }
.info-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.info-list dd { margin: 0; color: var(--ink); }

.visit-media { display: flex; flex-direction: column; gap: 24px; }
.map-frame { aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15); }
.visit-photo { aspect-ratio: 4/5; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,232,0.9); padding: 64px var(--gutter) 40px; }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,242,232,0.16);
}
.footer-logo { margin: 0; }
.footer-logo .brand-mark { font-size: 2rem; letter-spacing: 0.02em; color: var(--white); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; }
.footer-nav a:hover { opacity: 1; }

.footer-legal {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 2;
  color: rgba(246,242,232,0.55);
  text-transform: uppercase;
}
.footer-legal p { margin: 0; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.35);
}
.sticky-cta .icon { width: 18px; height: 18px; fill: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; min-height: 0; }
  .about-media { aspect-ratio: 4/5; }
  .about-text { padding: 56px 24px; max-width: none; }
  .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .shop-item-caption { padding: 18px 24px; }
}

@media (max-width: 700px) {
  body { padding-bottom: 62px; }
  .sticky-cta { display: flex; }
  .hero-content { padding: 0 20px 64px; }
  .header-inner { padding: 0 20px; }
  .menu-panel-inner { padding: 0 36px; }
  .menu-panel-inner a { font-size: 1.7rem; }
  .shop-item-caption h3 { font-size: 1.1rem; }
}
