@font-face {
  font-family: 'Maru Buri';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/MaruBuri/MaruBuri-SemiBold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/fonts-archive/MaruBuri/MaruBuri-SemiBold.woff') format('woff');
}

* { box-sizing: border-box; }

:root {
  --bg: #1E1E1E;
  --text: #F0EFEC;
  --muted: #8C8779;
  --line: #4A4A46;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nanum Gothic', sans-serif;
  line-height: 1.2;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 48px;
}

.logo {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Maru Buri', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-category { position: relative; }

.nav-link {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Nanum Gothic', sans-serif;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.dot { color: var(--line); font-size: 10px; }

.category-dropdown {
  display: none;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  top: 28px;
  left: 0;
  min-width: 110px;
  background: #141210;
  border: 1px solid rgba(240, 239, 236, 0.08);
  padding: 16px 20px;
  z-index: 20;
}

.category-dropdown.is-open { display: flex; }

.category-option {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s ease;
}

.category-option:hover { color: var(--text); }

.category-option.is-active {
  color: var(--text);
  font-weight: 700;
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.page.is-hidden { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 8px;
  margin: 0;
}

.thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.thumb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.thumb img {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  transition: transform .5s ease;
}

.thumb:hover img { transform: scale(1.045); }

.section-title {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 20px;
}

.about {
  display: flex;
  gap: 48px;
  padding: 96px 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about.is-hidden { display: none; }

.about-photo {
  flex: 0 0 280px;
  max-width: 100%;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1 1 320px;
  max-width: 560px;
}

.about-text p {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 8px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text .about-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.contact {
  padding: 96px 48px;
}

.contact.is-hidden { display: none; }

/* 연락처 페이지: 제목 - 소개문 - 인스타그램 - 이메일, 4개 요소의
   수직 간격을 모두 20px로 통일해서 행간이 고르게 읽히도록 했습니다. */

.contact-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .2s ease;
  width: fit-content;
}

.contact-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.contact-links a:hover { border-color: var(--text); }

.site-footer {
  border-top: 1px solid rgba(240, 239, 236, 0.08);
  padding: 28px 48px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.copyright { font-size: 11px; color: var(--muted); }

.rights-notice {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  opacity: .75;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #929292;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  overflow-y: auto;
}

.lightbox.is-open { display: flex; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
}

.lightbox-photo {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 6px solid #fff;
}

.lightbox-title {
  font-family: 'Maru Buri', 'Nanum Gothic', serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 28px 0 0;
}

.lightbox-memo {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 13px;
  color: var(--text);
  margin: 8px 0 0;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 101;
}

.thumb img,
.lightbox-photo,
.about-photo img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media print {
  .thumb img,
  .lightbox-photo,
  .about-photo img {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
    position: absolute;
    top: 88px;
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: #141210;
    padding: 20px;
    border: 1px solid rgba(240, 239, 236, 0.08);
    z-index: 10;
  }
  .nav-desktop.nav-open { display: flex; }
  .nav-mobile-btn { display: inline-flex; }
  .nav-category { width: 100%; }
  .category-dropdown { position: static; border: none; padding: 10px 0 0 12px; }
  .gallery { grid-template-columns: 1fr; }
  .about { padding: 64px 24px; gap: 28px; }
  .contact { padding: 64px 24px; }
}
