:root {
  --c-primary: #065f46;
  --c-primary-light: #059669;
  --c-primary-lighter: #d1fae5;
  --c-primary-bg: #f0fdf4;
  --c-accent: #0d9488;
  --c-accent-light: #ccfbf1;
  --c-text: #1e293b;
  --c-text-secondary: #475569;
  --c-text-muted: #94a3b8;
  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-card: #ffffff;
  --c-border: #e2e8f0;
  --c-border-light: #f1f5f9;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, 'Times New Roman', serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0.01ms; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === RESET & BASE === */
*, *::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-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary); }
a:focus-visible { outline: 2px solid var(--c-primary-light); outline-offset: 2px; border-radius: 2px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
  word-break: keep-all;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-top: 2.5em; margin-bottom: 0.75em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1.25em; word-break: keep-all; overflow-wrap: break-word; }

/* === LAYOUT CONTAINER === */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .site-container { padding: 0 16px; } }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { height: 32px; width: auto; }
.site-logo-text {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.15rem; color: var(--c-primary);
}
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--c-text-secondary);
  transition: all var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  color: var(--c-primary); background: var(--c-primary-bg);
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--c-text); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    flex-direction: column; padding: 8px 16px; box-shadow: var(--shadow-lg);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 12px 16px; border-radius: var(--r-md); width: 100%; }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
  padding: 80px 0 72px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--font-serif); color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 700;
  margin-bottom: 16px; line-height: 1.3;
}
.hero-desc {
  color: rgba(255,255,255,0.85); font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--c-primary); font-weight: 600;
  padding: 14px 32px; border-radius: 50px; font-size: 0.95rem;
  box-shadow: var(--shadow-lg); transition: all var(--transition);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); color: var(--c-primary); }

/* === SECTION === */
.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title {
  font-family: var(--font-serif); text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-bottom: 12px; color: var(--c-text);
}
.section-subtitle {
  text-align: center; color: var(--c-text-secondary);
  font-size: 0.95rem; margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* === CARD GRID === */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

.post-card {
  background: var(--c-bg-card); border-radius: var(--r-lg);
  border: 1px solid var(--c-border-light);
  overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-primary-lighter); }
.post-card-thumb {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  color: var(--c-primary-light); background: var(--c-primary-bg);
  padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; width: fit-content;
}
.post-card-title {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  line-height: 1.45; margin-bottom: 8px; color: var(--c-text);
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--c-primary-light); }
.post-card-excerpt {
  font-size: 0.88rem; color: var(--c-text-secondary); line-height: 1.65;
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--c-text-muted);
  padding-top: 12px; border-top: 1px solid var(--c-border-light);
}

/* === FEATURED (HERO) CARD === */
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--c-bg-card); border: 1px solid var(--c-border-light);
  transition: all var(--transition);
}
.featured-card:hover { box-shadow: var(--shadow-lg); }
.featured-card-thumb { aspect-ratio: 16/10; overflow: hidden; }
.featured-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.featured-card:hover .featured-card-thumb img { transform: scale(1.03); }
.featured-card-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-card-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; }
.featured-card-excerpt { font-size: 0.95rem; color: var(--c-text-secondary); line-height: 1.7; margin-bottom: 20px; }
.featured-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--c-primary-light);
}
.featured-card-link:hover { gap: 10px; }
@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-body { padding: 24px; }
}

/* === CATEGORY CHIPS === */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.cat-chip {
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500; color: var(--c-text-secondary);
  background: var(--c-bg); border: 1px solid var(--c-border);
  transition: all var(--transition); cursor: pointer;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* === SINGLE POST === */
.entry-header { padding: 48px 0 24px; text-align: center; }
.entry-header .post-card-cat { margin: 0 auto 16px; }
.entry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  line-height: 1.35; margin-bottom: 12px;
}
.entry-meta { color: var(--c-text-muted); font-size: 0.88rem; }
.entry-content {
  max-width: 720px; margin: 0 auto; padding: 0 24px 48px;
  font-size: 1.02rem; line-height: 1.85;
}
.entry-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  padding-bottom: 10px; border-bottom: 2px solid var(--c-primary-lighter);
  margin-top: 2.5em; margin-bottom: 0.75em;
}
.entry-content h3 { font-size: 1.15rem; margin-top: 1.8em; margin-bottom: 0.5em; }
.entry-content img { border-radius: var(--r-md); margin: 1.5em 0; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  border-radius: var(--r-md); overflow: hidden;
}
.entry-content table thead th {
  background: var(--c-primary); color: #fff;
  padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.92rem;
}
.entry-content table tbody td {
  padding: 10px 16px; border-bottom: 1px solid var(--c-border-light);
  font-size: 0.92rem;
}
.entry-content table tbody tr:nth-child(even) { background: var(--c-bg-alt); }
.entry-content blockquote {
  border-left: 4px solid var(--c-primary-light);
  background: var(--c-primary-bg);
  padding: 20px 24px; margin: 1.5em 0; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.95rem;
}
.entry-content ul, .entry-content ol {
  margin: 1em 0 1.5em; padding-left: 1.4em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-summary {
  background: linear-gradient(135deg, var(--c-primary-bg), var(--c-accent-light));
  padding: 24px 28px; border-radius: var(--r-lg); margin-bottom: 2em;
  border: 1px solid var(--c-primary-lighter);
}
.legal-notice {
  font-size: 0.82rem; color: var(--c-text-muted);
  background: var(--c-bg-alt); border-left: 3px solid var(--c-border);
  padding: 12px 16px; margin-top: 2.5em; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.legal-notice p { margin: 4px 0; }
.ai-notice { font-size: 0.82rem; color: var(--c-text-muted); margin-top: 1.5em; }

/* === FOOTER === */
.site-footer {
  background: #0f172a; color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-text {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700;
  color: #fff; margin-bottom: 12px;
}
.footer-desc { font-size: 0.88rem; line-height: 1.7; max-width: 360px; }
.footer-heading {
  color: #fff; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* === SCROLL-TO-TOP === */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all var(--transition); box-shadow: var(--shadow-md);
  z-index: 99;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.scroll-top svg { width: 20px; height: 20px; }

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 0.82rem; color: var(--c-text-muted); padding: 16px 0;
}
.breadcrumb a { color: var(--c-text-secondary); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 6px; }

/* === PAGE (POLICY, TERMS) === */
.page-content { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin-top: 2em; margin-bottom: 0.5em; font-size: 1.3rem; }
.page-content p { margin-bottom: 1em; }
.page-content ul { margin: 0.5em 0 1em 1.4em; }

/* === SKIP LINK (a11y) === */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--c-primary); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 0.9rem; z-index: 9999;
}
.skip-link:focus { top: 8px; }

/* === HIDE WP DEFAULTS === */
.wp-block-post-author, .wp-block-post-date,
.powered-by-wordpress, .wp-site-blocks > footer,
.wp-block-template-part:last-child { display: none !important; }
