:root {
  --fc-primary: #0F766E;
  --fc-primary-light: #14B8A6;
  --fc-primary-dark: #0D5D56;
  --fc-accent: #F59E0B;
  --fc-accent-light: #FCD34D;
  --fc-bg: #FAFBFC;
  --fc-surface: #FFFFFF;
  --fc-surface-alt: #F1F5F9;
  --fc-border: #E2E8F0;
  --fc-text: #1E293B;
  --fc-text-secondary: #64748B;
  --fc-text-muted: #94A3B8;
  --fc-radius-sm: 6px;
  --fc-radius: 12px;
  --fc-radius-lg: 16px;
  --fc-radius-xl: 24px;
  --fc-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --fc-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --fc-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --fc-transition: 200ms cubic-bezier(0.4,0,0.2,1);
  --fc-content-width: 780px;
  --fc-wide-width: 1200px;
}

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

body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--fc-bg);
  color: var(--fc-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif KR', 'Pretendard Variable', serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fc-text);
  letter-spacing: -0.02em;
}

/* Hide all WP default elements */
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-block-template-part .wp-block-site-title,
.wp-block-template-part .wp-block-navigation,
.wp-site-blocks > footer.wp-block-template-part,
.wp-block-post-comments,
.wp-block-comments,
.comments-area,
#comments,
.wp-block-post-navigation-link,
.entry-footer .cat-links,
.entry-footer .tags-links { display: none !important; }

/* Site Header */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fc-border);
  padding: 0 24px;
  transition: box-shadow var(--fc-transition);
}
.fc-header.scrolled { box-shadow: var(--fc-shadow); }
.fc-header-inner {
  max-width: var(--fc-wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.fc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fc-text);
}
.fc-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--fc-radius-sm);
}
.fc-logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fc-nav { display: flex; gap: 4px; align-items: center; }
.fc-nav a {
  text-decoration: none;
  color: var(--fc-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--fc-radius-sm);
  transition: all var(--fc-transition);
}
.fc-nav a:hover { color: var(--fc-primary); background: rgba(15,118,110,0.06); }

/* Mobile nav */
.fc-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.fc-hamburger svg { width: 24px; height: 24px; color: var(--fc-text); }

@media (max-width: 768px) {
  .fc-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--fc-surface); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--fc-border); box-shadow: var(--fc-shadow-lg); gap: 0; }
  .fc-nav.open { display: flex; }
  .fc-nav a { padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--fc-border); border-radius: 0; }
  .fc-hamburger { display: block; }
}

/* Hero */
.fc-hero {
  position: relative;
  padding: 100px 24px 120px;
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
  overflow: hidden;
  text-align: center;
}
.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.15) 0%, transparent 60%);
}
.fc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.fc-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.fc-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.fc-hero-image {
  width: 100%;
  max-width: 680px;
  margin: 40px auto 0;
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.fc-hero-image img { width: 100%; height: auto; display: block; }

/* Section */
.fc-section {
  padding: 80px 24px;
  max-width: var(--fc-wide-width);
  margin: 0 auto;
}
.fc-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 12px;
}
.fc-section-desc {
  text-align: center;
  color: var(--fc-text-secondary);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Grid */
.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.fc-card {
  background: var(--fc-surface);
  border-radius: var(--fc-radius);
  overflow: hidden;
  border: 1px solid var(--fc-border);
  transition: all var(--fc-transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fc-shadow-lg);
  border-color: var(--fc-primary-light);
}
.fc-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.fc-card-body { padding: 20px 24px 24px; }
.fc-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fc-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.fc-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-card-excerpt {
  font-size: 0.9rem;
  color: var(--fc-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carousel */
.fc-carousel-wrap {
  padding: 80px 24px;
  background: var(--fc-surface-alt);
}
.fc-carousel-inner {
  max-width: var(--fc-wide-width);
  margin: 0 auto;
}
.fc-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.fc-carousel::-webkit-scrollbar { display: none; }
.fc-carousel-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: var(--fc-radius);
  overflow: hidden;
  position: relative;
}
.fc-carousel-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--fc-radius);
}
.fc-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--fc-radius) var(--fc-radius);
}

/* Feature strip */
.fc-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 80px 24px;
  max-width: var(--fc-wide-width);
  margin: 0 auto;
}
.fc-feature {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--fc-radius);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  transition: all var(--fc-transition);
}
.fc-feature:hover { box-shadow: var(--fc-shadow); border-color: var(--fc-primary-light); }
.fc-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fc-primary), var(--fc-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-feature-icon svg { width: 24px; height: 24px; color: #fff; }
.fc-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-family: 'Pretendard Variable', sans-serif;
}
.fc-feature p { font-size: 0.88rem; color: var(--fc-text-secondary); line-height: 1.6; }

/* Footer */
.fc-footer {
  background: var(--fc-text);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.fc-footer-inner {
  max-width: var(--fc-wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.fc-footer-brand { font-size: 0.92rem; line-height: 1.7; }
.fc-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
}
.fc-footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--fc-radius-sm);
}
.fc-footer-brand strong {
  font-size: 1.1rem;
  color: #fff;
  font-family: 'Noto Serif KR', serif;
}
.fc-footer-links h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-family: 'Pretendard Variable', sans-serif;
}
.fc-footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--fc-transition);
}
.fc-footer-links a:hover { color: var(--fc-primary-light); }
.fc-footer-bottom {
  max-width: var(--fc-wide-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.fc-footer-bottom p { margin-bottom: 4px; }

@media (max-width: 768px) {
  .fc-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .fc-hero { padding: 72px 20px 80px; }
  .fc-section { padding: 56px 20px; }
  .fc-grid { grid-template-columns: 1fr; }
  .fc-features { grid-template-columns: 1fr 1fr; }
  .fc-carousel-item { flex: 0 0 280px; }
}
@media (max-width: 480px) {
  .fc-features { grid-template-columns: 1fr; }
  .fc-logo-icon, .fc-footer-logo img { width: 32px; height: 32px; }
  .fc-logo-text, .fc-footer-brand strong { font-size: 1rem; }
}

/* Single post / page */
.fc-single-wrap {
  max-width: var(--fc-content-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.fc-single-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 16px;
  line-height: 1.35;
}
.fc-single-meta {
  font-size: 0.85rem;
  color: var(--fc-text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fc-border);
}
.fc-single-hero-img {
  width: 100%;
  border-radius: var(--fc-radius);
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.fc-content { font-size: 1.05rem; line-height: 1.8; color: var(--fc-text); }
.fc-content h2 {
  font-size: 1.4rem;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--fc-primary);
  color: var(--fc-primary-dark);
}
.fc-content h3 {
  font-size: 1.15rem;
  margin: 32px 0 14px;
  color: var(--fc-text);
}
.fc-content p { margin-bottom: 18px; }
.fc-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--fc-radius);
  margin: 24px 0;
}
.fc-content ul, .fc-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.fc-content li { margin-bottom: 8px; line-height: 1.7; }
.fc-content blockquote {
  border-left: 3px solid var(--fc-primary);
  background: var(--fc-surface-alt);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--fc-radius-sm) var(--fc-radius-sm) 0;
  color: var(--fc-text-secondary);
  font-style: normal;
}
.fc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
  border-radius: var(--fc-radius);
  overflow: hidden;
  border: 1px solid var(--fc-border);
}
.fc-content thead th {
  background: var(--fc-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
.fc-content tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--fc-border);
  vertical-align: top;
}
.fc-content tbody tr:nth-child(even) { background: var(--fc-surface-alt); }
.fc-content tbody tr:hover { background: rgba(15,118,110,0.04); }
.fc-content .callout-box {
  background: linear-gradient(135deg, rgba(15,118,110,0.06), rgba(20,184,166,0.06));
  border: 1px solid rgba(15,118,110,0.15);
  border-radius: var(--fc-radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.fc-content .callout-box strong { color: var(--fc-primary-dark); }

/* Bar chart */
.fc-bar-chart { margin: 24px 0; }
.fc-bar-item { display: flex; align-items: center; margin-bottom: 10px; gap: 12px; }
.fc-bar-label { flex: 0 0 120px; font-size: 0.88rem; color: var(--fc-text-secondary); text-align: right; }
.fc-bar-track { flex: 1; height: 24px; background: var(--fc-surface-alt); border-radius: 12px; overflow: hidden; }
.fc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--fc-primary), var(--fc-primary-light)); border-radius: 12px; transition: width 0.6s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 0.75rem; color: #fff; font-weight: 600; }

/* Related posts */
.fc-related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--fc-border); }
.fc-related h3 { font-size: 1.2rem; margin-bottom: 24px; }
.fc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.fc-related-card {
  text-decoration: none;
  color: inherit;
  border-radius: var(--fc-radius-sm);
  overflow: hidden;
  border: 1px solid var(--fc-border);
  transition: all var(--fc-transition);
}
.fc-related-card:hover { transform: translateY(-2px); box-shadow: var(--fc-shadow); }
.fc-related-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.fc-related-card span { display: block; padding: 12px; font-size: 0.88rem; font-weight: 600; }

/* Legal notices */
.legal-notice, .ai-notice { font-size: 0.85em !important; }

/* Scroll animations */
.fc-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fc-fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fc-fade-up { opacity: 1; transform: none; transition: none; }
  .fc-card:hover { transform: none; }
}

/* Table responsive on mobile */
@media (max-width: 640px) {
  .fc-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fc-bar-label { flex: 0 0 80px; font-size: 0.8rem; }
}
