/*
Theme Name:   Art Blog Child
Theme URI:
Description:  화이트 미니멀 아티스트 포트폴리오 테마 (Twenty Twenty-Five 기반)
Author:
Template:     twentytwentyfive
Version:      1.0.0
Text Domain:  art-blog-child
*/

/* ==============================================
   CSS 변수
============================================== */
:root {
  /* 색상 */
  --white:       #ffffff;
  --off-white:   #fafaf9;
  --cream:       #f7f4f0;
  --light:       #f0ece6;
  --border:      #e8e2da;
  --text:        #1a1814;
  --text-sub:    #5a5450;
  --muted:       #9a9390;
  --accent:      #8b6f47;      /* 따뜻한 골드-브라운 */
  --accent-dark: #6b5236;
  --accent-light:#f5ede0;
  --dark:        #1a1814;
  --nav-h:       70px;

  /* 타이포 */
  --font-head:  'Cormorant Garamond', 'Noto Serif KR', 'Noto Serif JP', Georgia, serif;
  --font-body:  'Noto Sans KR', 'Noto Sans JP', 'Apple SD Gothic Neo', system-ui, sans-serif;

  /* 그림자 */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.14);

  /* 전환 */
  --ease:       cubic-bezier(.4,0,.2,1);
  --dur:        .25s;
}

/* ==============================================
   리셋 & 기반
============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* 블록 테마 오버라이드 */
.wp-site-blocks,
.wp-block-template-part,
.entry-content > *,
.page-content > * { all: unset; }

/* ==============================================
   헤더
============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 로고 */
.site-branding { flex-shrink: 0; }
.site-logo-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}
.site-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  line-height: 1.2;
}
.site-tagline {
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.custom-logo { height: 40px; width: auto; }

/* 네비게이션 */
.primary-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list > li > a {
  display: inline-block;
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: .04em;
  border-radius: 6px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list > li > a:hover {
  color: var(--text);
}
.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current_page_item > a::after { transform: scaleX(1); }
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a { color: var(--text); font-weight: 600; }

/* 모바일 토글 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--dur);
}
.mobile-menu-toggle:hover { background: var(--cream); }
.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.mobile-menu-toggle.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 모바일 드로어 */
.mobile-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
}
.mobile-drawer.open { display: block; }
.mobile-nav-list { list-style: none; }
.mobile-nav-list li + li { border-top: 1px solid var(--border); }
.mobile-nav-list a {
  display: block;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* 페이지 콘텐츠 래퍼 */
.site-content-wrap { min-height: calc(100vh - var(--nav-h)); }

/* ==============================================
   공통 버튼
============================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--white) !important;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 50px;
  border: 2px solid var(--accent);
  transition: background var(--dur) var(--ease), border-color var(--dur), transform var(--dur);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text) !important;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 50px;
  border: 2px solid var(--border);
  transition: border-color var(--dur), transform var(--dur);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
}
.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ==============================================
   섹션 공통
============================================== */
.home-section { padding: 96px 0; }
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.section-header > div { flex: 1; }
.section-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
  margin-left: auto;
}
.section-more:hover { border-color: var(--accent); }
.section-divider { line-height: 0; }
.section-divider svg { width: 100%; display: block; }

/* ==============================================
   히어로 섹션
============================================== */
.hero-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text {}
.hero-sub {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 히어로 이미지 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.hero-canvas-wrap a { display: block; width: 100%; height: 100%; }
.hero-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.hero-canvas-wrap:hover .hero-artwork-img { transform: scale(1.03); }
.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--muted);
  background: var(--cream);
}

/* 배경 장식 */
.hero-bg-decor { position: absolute; inset: 0; pointer-events: none; }
.decor-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: var(--accent);
}
.decor-circle.c1 { width: 600px; height: 600px; right: -200px; top: -150px; }
.decor-circle.c2 { width: 300px; height: 300px; left: -80px; bottom: -80px; }

/* ==============================================
   홈 갤러리 그리드
============================================== */
.home-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-art-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.art-card-link { display: block; text-decoration: none; color: inherit; }

.art-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.art-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.home-art-card:hover .art-card-img-wrap img { transform: scale(1.06); }

.art-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,24,20,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.home-art-card:hover .art-card-overlay { opacity: 1; }
.overlay-view {
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.6);
  padding: 8px 18px;
  border-radius: 50px;
}
.art-no-img {
  width: 100%; height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
}

.art-card-caption {
  padding: 16px 18px 18px;
}
.art-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
  line-height: 1.4;
}
.art-card-sub {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.art-card-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

/* 배지 */
.artwork-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.badge-p { background: #d4edda; color: #155724; }
.badge-g { background: #cce5ff; color: #004085; }
.badge-e { background: #fff3cd; color: #856404; }

/* ==============================================
   카테고리 섹션
============================================== */
.category-section { padding: 80px 0; }
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.cat-icon { font-size: 2.5rem; line-height: 1; }
.cat-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.cat-count {
  font-size: .8rem;
  color: var(--muted);
}

/* ==============================================
   홈 블로그 그리드
============================================== */
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.home-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-card-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
}
.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.home-blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-excerpt {
  font-size: .84rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  transition: gap var(--dur);
}
.blog-read-more:hover { text-decoration: underline; }

/* ==============================================
   방명록 CTA
============================================== */
.guestbook-cta-section {
  background: var(--cream);
  padding: 80px 0;
}
.guestbook-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.guestbook-cta-text { flex: 1; min-width: 280px; }
.guestbook-cta-desc {
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 480px;
  margin-top: 12px;
}

/* ==============================================
   홈 빈 상태
============================================== */
.home-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  background: var(--cream);
  border-radius: 16px;
  border: 1px dashed var(--border);
}

/* ==============================================
   ART 아카이브
============================================== */
.art-archive-main { padding-bottom: 80px; }
.art-gallery-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
}
.art-archive-header { margin-bottom: 36px; }
.art-archive-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
}

/* 필터 바 */
.art-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.art-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.art-filter-btn:hover,
.art-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.art-filter-btn small { opacity: .7; font-weight: 400; }

/* 갤러리 그리드 */
.art-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.art-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.art-card a { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.art-card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.art-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.art-card:hover .art-card-thumb img { transform: scale(1.06); }
.art-card-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  font-size: 3rem;
  color: var(--muted);
}
.art-card-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.art-card-reg { margin-bottom: 6px; }
.art-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.art-card-meta {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.art-card-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

/* 아카이브 페이지네이션 */
.art-pagination { margin-top: 48px; text-align: center; }
.art-pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.art-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  transition: all var(--dur);
}
.art-pagination .page-numbers:hover,
.art-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.art-pagination .page-numbers.dots { border: none; }
.art-no-posts { color: var(--muted); text-align: center; padding: 60px; }

/* ==============================================
   단일 작품 페이지
============================================== */
.art-single-main { padding-bottom: 80px; }
.art-single-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.art-single-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--dur);
}
.art-single-back:hover { color: var(--accent); }
.art-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.art-single-img-wrap img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.art-single-reg { margin-bottom: 12px; }
.art-single-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.25;
}
/* 메타 정보 칩 그리드 */
.art-meta-section {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 24px;
}
.art-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 16px;
}
.art-meta-chip {
  background: var(--white);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.art-meta-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.art-meta-chip dt {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}
.art-meta-chip dd {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.art-spec-type-val {
  color: var(--accent);
}

.art-price-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 20px;
}
.art-price-label { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.art-price-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.art-single-desc {
  margin-top: 20px;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* 관련 작품 */
.art-related { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--border); }
.art-related-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text);
}

/* ==============================================
   블로그 아카이브
============================================== */
.blog-archive-main { background: var(--white); }
.blog-archive-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px 96px;
}
.page-header { margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
}

/* 포스트 목록 */
.blog-post-list { display: flex; flex-direction: column; gap: 0; }
.blog-post-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.blog-post-item:last-child { border-bottom: none; }
.blog-post-thumb {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--cream);
}
.blog-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.blog-post-item:hover .blog-post-thumb img { transform: scale(1.04); }
.blog-post-body {}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.meta-sep { opacity: .4; }
.post-cats a { color: var(--accent); font-weight: 500; }
.blog-post-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
}
.blog-post-title a { color: inherit; text-decoration: none; }
.blog-post-title a:hover { color: var(--accent); }
.blog-post-excerpt {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 블로그 페이지네이션 */
.blog-pagination { margin-top: 48px; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  transition: all var(--dur);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.blog-pagination .page-numbers.dots { border: none; }

.blog-no-posts {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ==============================================
   단일 블로그 포스트
============================================== */
.single-post-main { background: var(--white); }
.single-post-header { background: var(--cream); padding: 64px 32px 56px; }
.single-post-header-inner { max-width: 800px; margin: 0 auto; }
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-link { color: var(--accent); font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.post-cat-link { color: var(--accent); font-weight: 500; }
.single-post-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 20px;
}
.single-post-lead {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.65;
  max-width: 680px;
}
.single-post-thumbnail {
  max-height: 520px;
  overflow: hidden;
}
.single-post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.single-post-content { padding: 56px 32px 40px; }
.post-content-inner {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
/* 에디터 콘텐츠 기본 스타일 복원 */
.entry-content p  { margin-bottom: 1.5em; }
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
  margin: 1.8em 0 .8em;
  color: var(--text);
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul,.entry-content ol { margin: 0 0 1.5em 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img {
  border-radius: 10px;
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);
}
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 1.5em 0;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-sub);
}

.single-post-tags {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .78rem;
  color: var(--text-sub);
  transition: all var(--dur);
}
.post-tag:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* 이전/다음 포스트 */
.post-nav {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.post-nav-inner {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 45%;
}
.post-nav-item.next { align-items: flex-end; }
.nav-label {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color var(--dur);
}
.post-nav-item:hover .nav-title { color: var(--accent); }

/* ==============================================
   일반 페이지
============================================== */
.page-main { padding-bottom: 80px; }
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 32px;
}
.page-article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-article-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text);
}
.page-article-content { font-size: .96rem; line-height: 1.8; color: var(--text-sub); }

/* ==============================================
   소셜 공유 버튼 (플러그인 CSS 보완)
============================================== */
/* 해시태그 */
.art-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.art-hashtag {
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: .02em;
  user-select: none;
}

.art-share-box {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 16px;
}
.art-share-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.art-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity .2s, transform .2s;
}
.art-share-btn svg { width: 15px; height: 15px; }
.art-share-btn:hover { opacity: .85; transform: translateY(-2px); }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #000; }
.share-naver    { background: #03c75a; }
.share-kakao    { background: #fee500; color: #191600 !important; }
.share-line     { background: #06c755; }
.share-copy     { background: #64748b; }

/* ==============================================
   방명록 (플러그인 CSS 보완)
============================================== */
.guestbook-wrapper { max-width: 820px; margin: 0 auto; }
.guestbook-form-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-xs);
}
.guestbook-form-container h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.gb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.form-group label .required { color: #e74c3c; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .92rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,111,71,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.char-count { text-align: right; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.gb-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur), transform var(--dur);
  margin-top: 6px;
}
.gb-submit-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.gb-submit-btn:disabled { background: var(--muted); transform: none; cursor: not-allowed; }
#gb-status-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .88rem; display: none; }
#gb-status-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
#gb-status-msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }
.gb-entries-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}
.gb-count { font-weight: 400; color: var(--muted); font-size: .9rem; }
.guestbook-entry {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: box-shadow var(--dur);
}
.guestbook-entry:hover { box-shadow: var(--shadow-sm); }
.entry-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.entry-body { flex: 1; min-width: 0; }
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}
.entry-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.entry-date { font-size: .72rem; color: var(--muted); }
.entry-message { font-size: .88rem; color: var(--text-sub); line-height: 1.75; word-break: break-word; }
.no-entries {
  text-align: center;
  color: var(--muted);
  padding: 56px 20px;
  background: var(--cream);
  border-radius: 16px;
  border: 1px dashed var(--border);
}
.gb-pagination { display: flex; gap: 6px; margin-top: 24px; justify-content: center; }
.gb-page-btn {
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-sub);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--dur);
}
.gb-page-btn:hover, .gb-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.hp-field { display: none !important; visibility: hidden; height: 0; overflow: hidden; position: absolute; left: -9999px; }

/* ==============================================
   푸터
============================================== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {}
.footer-logo-link { text-decoration: none; }
.footer-site-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-tagline { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.5; }
.footer-nav { justify-self: center; }
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; align-items: center; list-style: none; }
.footer-nav-list a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--dur);
}
.footer-nav-list a:hover { color: var(--white); }
.footer-copy { justify-self: end; align-self: end; }
.footer-copy p { font-size: .75rem; color: rgba(255,255,255,.3); text-align: right; }

/* ==============================================
   번역 로딩 표시
============================================== */
#art-trans-loader {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--dark);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 18px 10px 14px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
#art-trans-loader.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
#art-trans-loader::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: art-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes art-spin { to { transform: rotate(360deg); } }


/* ==============================================
   언어 스위처
============================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
  line-height: 1.2;
  white-space: nowrap;
}
.lang-btn:hover { background: var(--white); color: var(--accent); }
.lang-btn.active {
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

/* ==============================================
   반응형
============================================== */
@media (max-width: 1100px) {
  .home-art-grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-copy { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 60px 32px;
  }
  .hero-visual { justify-content: center; }
  .hero-canvas-wrap { max-width: 380px; }
  .hero-cta { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
  .art-single-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-post-item { grid-template-columns: 1fr; gap: 16px; }
  .category-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .primary-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .lang-switcher { order: 2; }

  .home-section { padding: 64px 0; }
  .section-inner { padding: 0 20px; }
  .home-art-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-card { padding: 28px 12px; }

  .art-gallery-wrap { padding: 28px 20px; }
  .art-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .art-single-wrap { padding: 24px 20px 60px; }

  .blog-archive-wrap { padding: 36px 20px 60px; }
  .blog-post-thumb { max-height: 200px; }

  .single-post-header { padding: 40px 20px 36px; }
  .single-post-content { padding: 36px 20px 30px; }
  .post-content-inner { max-width: 100%; }
  .single-post-tags { padding: 0 20px 30px; }
  .post-nav { padding: 28px 20px; }

  .guestbook-form-container { padding: 24px 20px; }
  .gb-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav-list { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .footer-copy { justify-self: start; }
  .footer-copy p { text-align: left; }

  .guestbook-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ==============================================
   Tech Blog
============================================== */
.tech-archive-main { background: var(--white); }
.tech-archive-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.tech-archive-header { margin-bottom: 40px; }
.tech-archive-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.tech-archive-desc { font-size: .9rem; color: var(--muted); margin: 0; }

/* Tech 카드 목록 */
.tech-post-list { display: flex; flex-direction: column; gap: 0; }
.tech-card {
  border-bottom: 1px solid var(--border);
}
.tech-card:first-child { border-top: 1px solid var(--border); }
.tech-card > a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}
.tech-card > a:hover { opacity: .75; }
.tech-card-thumb {
  width: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.tech-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tech-card-body { min-width: 0; }
.tech-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.tech-card-meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.tech-card-excerpt {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tech-read-more { font-size: .8rem; color: var(--accent); font-weight: 500; }
.tech-pagination { margin-top: 40px; text-align: center; }
.tech-no-posts { color: var(--muted); text-align: center; padding: 60px 0; }

/* Tech 단일 페이지 */
.tech-single-main { background: var(--white); }
.tech-single-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}
.tech-single-back {
  display: inline-block;
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color .15s;
}
.tech-single-back:hover { color: var(--accent); }
.tech-single-header { margin-bottom: 32px; }
.tech-single-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 12px;
}
.tech-single-meta { font-size: .82rem; color: var(--muted); }
.tech-single-content {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--text-sub);
}
.tech-single-content h2,
.tech-single-content h3,
.tech-single-content h4 {
  font-family: var(--font-head);
  color: var(--text);
  margin: 2em 0 .7em;
  line-height: 1.3;
}
.tech-single-content h2 { font-size: 1.45rem; }
.tech-single-content h3 { font-size: 1.2rem; }
.tech-single-content p  { margin: 0 0 1.2em; }
.tech-single-content a  { color: var(--accent); text-decoration: underline; }
.tech-single-content ul,
.tech-single-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.tech-single-content li { margin-bottom: .4em; }
.tech-single-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5em 0;
  padding: .8em 1.2em;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}
.tech-single-content table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem;
}
.tech-single-content th,
.tech-single-content td {
  padding: 10px 14px; border: 1px solid var(--border); text-align: left;
}
.tech-single-content th { background: var(--cream); font-weight: 600; }

@media (max-width: 600px) {
  .lang-btn { padding: 4px 7px; font-size: .68rem; }
  .home-art-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .art-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .art-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .home-art-grid { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: 1fr; }
  .category-card { flex-direction: row; justify-content: flex-start; padding: 18px 20px; gap: 16px; }
  .art-gallery-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-more { margin-left: 0; }
  .lang-switcher { gap: 1px; padding: 2px; }
  .lang-btn { padding: 4px 6px; font-size: .65rem; }
  .hero-inner { padding: 40px 20px; }
  .single-post-header { padding: 32px 16px 28px; }
  .single-post-content { padding: 28px 16px 24px; }
  .art-single-wrap { padding: 16px 16px 48px; }
  .blog-archive-wrap { padding: 28px 16px 48px; }
}
