/* ARTCODE GALLERY — Shared Styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Noto+Sans+KR:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #fafaf8;
  --fg:       #1c1b18;
  --fg2:      #6e6a64;
  --fg3:      #b0aca6;
  --border:   #e4e0da;
  --white:    #ffffff;
  --nav-h:    64px;
  --f-dis:    'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
  --f-ui:     'Noto Sans KR', 'Helvetica Neue', Arial, sans-serif;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-ui);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── NAV ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.nav-clear { background: transparent; }
.nav-solid { background: var(--bg); box-shadow: 0 1px 0 var(--border); }

.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 17px; width: auto;
  transition: filter 0.45s;
  display: block;
}
.nav-clear .nav-logo img { filter: invert(1) brightness(10); }
.nav-solid .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: opacity 0.2s;
  color: var(--fg);
}
.nav-clear .nav-links a { color: rgba(255,255,255,0.88); }
.nav-links a:hover { opacity: 0.45; }
.nav-links a.active { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* hamburger (mobile) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: background 0.3s;
}
.nav-clear .nav-burger span { background: white; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
/* nav 위로 덮이므로 hamburger 따로 숨길 필요 없음 */
.mobile-menu a {
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--f-dis);
  font-weight: 300;
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  font-size: 28px; color: var(--fg);
}

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.6);
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-logo img {
  height: 80px; width: auto;
  filter: invert(1) brightness(10);
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
  font-weight: 400;
}
.footer-col p,
.footer-col a {
  font-size: 13px;
  line-height: 2;
  display: block;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ─── UTILITIES ───────────────────────────────────── */
.label-xs {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg2);
}
.section-divider { border: none; border-top: 1px solid var(--border); }

.btn-line {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 3px;
  display: inline-block;
  transition: opacity 0.2s;
  font-weight: 400;
}
.btn-line:hover { opacity: 0.4; }
.btn-outline {
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--fg); color: white; border-color: var(--fg); }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .site-footer { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 32px; }
  .footer-bottom { padding: 12px 24px; flex-direction: column; gap: 4px; }
}
