/* Fashion Hanguk — 메인 스타일 */

/* --- 변수 --- */
:root {
  --fh-bg: #faf9f7;
  --fh-surface: #ffffff;
  --fh-ink: #1a1a1a;
  --fh-ink-muted: #5c5854;
  --fh-accent: #6b5b4a;
  --fh-gold: #8b7355;
  --fh-line: #e8e4df;
  --fh-font-sans: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --fh-font-serif: "Noto Serif KR", "Noto Sans KR", Georgia, serif;
  --fh-space: clamp(1rem, 3vw, 2rem);
  --fh-wide: 1200px;
  --fh-narrow: 640px;
}

/* --- 사이트 레이아웃 --- */
.fh-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fh-line);
}

.fh-header__inner {
  max-width: var(--fh-wide);
  margin: 0 auto;
  padding: 1.25rem var(--fh-space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.fh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.fh-custom-logo img,
.custom-logo-link img {
  max-height: 48px;
  width: auto;
}

.fh-site-title {
  font-family: var(--fh-font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.fh-site-title a {
  color: var(--fh-ink);
}
.fh-site-title a:hover {
  color: var(--fh-gold);
}

.fh-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fh-line);
  background: var(--fh-surface);
  cursor: pointer;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.fh-nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--fh-ink);
}

.fh-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.75rem;
}
.fh-nav__list a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-ink-muted);
}
.fh-nav__list a:hover,
.fh-nav__list .current-menu-item a {
  color: var(--fh-ink);
}

.fh-header__search {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fh-ink-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.fh-header__search:hover {
  color: var(--fh-ink);
}
@media (max-width: 767px) {
  .fh-header__search {
    margin-left: 0;
    z-index: 210;
  }
  .fh-header__inner {
    flex-wrap: wrap;
  }
  .fh-nav--primary {
    z-index: 200;
  }
  .fh-header__search {
    order: 2;
  }
  .fh-nav-toggle {
    order: 3;
  }
}

.fh-hero {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--fh-space);
  border-bottom: 1px solid var(--fh-line);
}
.fh-hero h1,
.fh-hero .fh-page-title {
  font-family: var(--fh-font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--fh-ink);
}
.fh-hero p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fh-ink-muted);
  font-weight: 300;
  letter-spacing: 0.02em;
}
.fh-hero--home .fh-hero__tag {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fh-gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.fh-hero__excerpt {
  max-width: 40rem;
  margin: 0.5rem auto 0;
  font-size: 0.9375rem;
  color: var(--fh-ink-muted);
  line-height: 1.65;
}
.fh-hero__cta-wrap {
  margin-top: 1.75rem;
}
.fh-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--fh-ink);
  border: 1px solid var(--fh-ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.fh-hero__cta:hover {
  background: var(--fh-gold);
  border-color: var(--fh-gold);
  color: #fff;
  transform: translateY(-1px);
}

.fh-main {
  flex: 1;
  max-width: var(--fh-wide);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--fh-space);
}

/* --- 글 그리드 (홈) --- */
.fh-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--fh-space);
}

.fh-card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.fh-card:hover {
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.12);
}
@media (min-width: 768px) {
  .fh-card--feature {
    grid-column: span 6;
  }
  .fh-card--standard {
    grid-column: span 4;
  }
  .fh-grid--single-col .fh-card--standard {
    grid-column: span 6;
  }
}

.fh-card__link {
  display: block;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fh-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ece8e2;
}
.fh-card--feature .fh-card__thumb {
  aspect-ratio: 3/2;
}
.fh-card__thumb--empty {
  background: linear-gradient(135deg, #e8e4df 0%, #d4cec6 100%);
  min-height: 12rem;
}
.fh-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fh-card:hover .fh-card__thumb img {
  transform: scale(1.03);
}
.fh-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fh-card__cat {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fh-gold);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.fh-card__title {
  font-family: var(--fh-font-serif);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  color: var(--fh-ink);
}
.fh-card__excerpt {
  font-size: 0.875rem;
  color: var(--fh-ink-muted);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}
.fh-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--fh-ink-muted);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--fh-line);
}
.fh-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-ink);
  margin-top: 0.5rem;
}
.fh-read-more::after {
  content: "→";
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
}
.fh-card:hover .fh-read-more::after {
  transform: translateX(4px);
}

/* --- 단일 글 --- */
.fh-single {
  max-width: var(--fh-narrow);
  margin: 0 auto;
}
.fh-entry-header {
  margin-bottom: 2.5rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fh-line);
}
.fh-entry-title {
  font-family: var(--fh-font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.fh-entry-meta {
  font-size: 0.8125rem;
  color: var(--fh-ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  letter-spacing: 0.04em;
}
.fh-entry-figure {
  margin: 0 0 2.5rem;
  border: 1px solid var(--fh-line);
  overflow: hidden;
}
.fh-entry-content,
.fh-page-content,
.entry-content,
.page-content {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--fh-ink);
}
.fh-entry-content p,
.fh-page-content p {
  margin: 0 0 1.5em;
}
.fh-entry-content h2,
.fh-page-content h2 {
  font-family: var(--fh-font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2em 0 0.75em;
  letter-spacing: 0.02em;
}
.fh-entry-content blockquote,
.fh-page-content blockquote {
  margin: 1.75em 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--fh-gold);
  color: var(--fh-ink-muted);
  font-style: italic;
  font-size: 0.95rem;
}
.fh-entry-content a,
.fh-page-content a,
.entry-content a,
.page-content a {
  color: var(--fh-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.fh-entry-content a:hover,
.fh-page-content a:hover,
.entry-content a:hover,
.page-content a:hover {
  color: var(--fh-ink);
}

.fh-nav-posts {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--fh-line);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.fh-nav-posts a {
  color: var(--fh-ink-muted);
  max-width: 45%;
}
.fh-nav-posts a:hover {
  color: var(--fh-ink);
}

/* --- 푸터 --- */
.fh-footer {
  margin-top: auto;
  padding: 2.5rem var(--fh-space) 2rem;
  background: #f0ebe5;
  border-top: 1px solid var(--fh-line);
}
.fh-footer__inner {
  max-width: var(--fh-wide);
  margin: 0 auto;
  text-align: center;
}
.fh-footer__menu {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fh-footer__menu a {
  color: var(--fh-ink-muted);
}
.fh-footer__menu a:hover {
  color: var(--fh-ink);
}
.fh-credit {
  font-size: 0.6875rem;
  color: #8a8580;
  letter-spacing: 0.06em;
  margin: 0;
}

/* --- 404, 검색, 댓글 --- */
.fh-panel {
  text-align: center;
  max-width: 32rem;
  margin: 3rem auto;
  padding: 2rem;
}
.fh-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 20rem;
  margin: 1.5rem auto 0;
}
.fh-search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fh-line);
  background: var(--fh-surface);
  font-family: inherit;
  font-size: 0.875rem;
}
.fh-search-form .search-submit,
.wp-block-search__button,
button.search-submit {
  padding: 0.75rem 1.25rem;
  background: var(--fh-ink);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.fh-search-form .search-submit:hover {
  background: var(--fh-accent);
}

.fh-comments {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--fh-line);
}
.fh-comments-title,
.comments-title,
.comment-reply-title {
  font-family: var(--fh-font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-body {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--fh-line);
  font-size: 0.9rem;
}
.reply {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* --- 사이드바/위젯 --- */
.fh-with-sidebar {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .fh-with-sidebar {
    grid-template-columns: 1fr 280px;
  }
  .fh-sidebar {
    order: 2;
  }
  .fh-content-area {
    order: 1;
  }
}
.widget {
  background: var(--fh-surface);
  border: 1px solid var(--fh-line);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--fh-font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.fh-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.fh-sidebar .widget li {
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
}
.fh-panel .fh-btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--fh-ink);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fh-ink);
}
.fh-panel .fh-btn:hover {
  background: var(--fh-accent);
  border-color: var(--fh-accent);
  color: #fff;
}

/* --- 모바일 네비 --- */
@media (max-width: 767px) {
  .fh-nav-toggle {
    display: inline-flex;
  }
  .fh-nav--primary {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 200;
    background: rgba(250, 249, 247, 0.98);
    padding: 5rem 2rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
  .fh-nav--primary.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .fh-nav--primary .fh-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .fh-nav--primary .fh-nav__list a {
    font-size: 1rem;
  }
  body.fh-menu-open {
    overflow: hidden;
  }
  .fh-card--feature .fh-card__thumb {
    aspect-ratio: 4/5;
  }
}

/* --- 페이지 네이션 --- */
.fh-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0 0;
  list-style: none;
  padding: 0;
}
.fh-pagination a,
.fh-pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  border: 1px solid var(--fh-line);
  color: var(--fh-ink-muted);
}
.fh-pagination .current,
.fh-pagination a:hover {
  background: var(--fh-ink);
  color: #fff;
  border-color: var(--fh-ink);
}

.fh-avatar {
  display: block;
  border: 1px solid var(--fh-line);
  border-radius: 50%;
}

.fh-terms {
  font-size: 0.8125rem;
  color: var(--fh-ink-muted);
  margin-top: 0.5rem;
}
.fh-terms a {
  color: var(--fh-gold);
}

.wp-caption-text,
figcaption {
  font-size: 0.75rem;
  color: var(--fh-ink-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content .alignwide,
.fh-entry-content .alignwide {
  max-width: min(1000px, 100vw);
  margin-left: 50%;
  margin-right: auto;
  transform: translateX(-50%);
}
.entry-content .alignfull,
.fh-entry-content .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.fh-hero .archive-description {
  font-size: 0.9375rem;
  color: var(--fh-ink-muted);
  max-width: 40rem;
  margin: 0.75rem auto 0;
  line-height: 1.65;
}

.navigation.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0 0;
}
.navigation.pagination .page-numbers,
.nav-links a,
.nav-links span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  border: 1px solid var(--fh-line);
  color: var(--fh-ink-muted);
  text-decoration: none;
}
.navigation.pagination a:hover,
.nav-links a:hover,
.navigation.pagination .current {
  background: var(--fh-ink);
  color: #fff;
  border-color: var(--fh-ink);
}
