:root {
  --hr-primary: #1B4332;
  --hr-primary-light: #2D6A4F;
  --hr-accent: #D4A373;
  --hr-accent-light: #E9C46A;
  --hr-bg: #FAFAF8;
  --hr-bg-alt: #F1EDE8;
  --hr-surface: #FFFFFF;
  --hr-text: #1A1A1A;
  --hr-text-muted: #6B7280;
  --hr-text-light: #9CA3AF;
  --hr-border: #E5E2DC;
  --hr-border-light: #F0EDE8;
  --hr-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --hr-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --hr-shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --hr-radius-sm: 8px;
  --hr-radius-md: 12px;
  --hr-radius-lg: 16px;
  --hr-font-body: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --hr-font-heading: 'Noto Serif KR', Georgia, serif;
  --hr-max-w: 1200px;
  --hr-content-w: 780px;
  --hr-gap: 8px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--hr-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--hr-text);
  background: var(--hr-bg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Header / Nav ── */
.hr-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hr-border-light);
  padding: 0 24px;
}
.hr-header-inner {
  max-width: var(--hr-max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.hr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hr-logo img { width: 36px; height: 36px; border-radius: 8px; }
.hr-logo-text {
  font-family: var(--hr-font-heading);
  font-size: 1.15rem; font-weight: 700;
  color: var(--hr-primary);
  letter-spacing: -0.02em;
}
.hr-nav { display: flex; gap: 4px; list-style: none; }
.hr-nav a {
  display: block; padding: 8px 16px;
  font-size: 0.925rem; font-weight: 500;
  color: var(--hr-text-muted);
  text-decoration: none;
  border-radius: var(--hr-radius-sm);
  transition: color 200ms, background 200ms;
}
.hr-nav a:hover { color: var(--hr-primary); background: var(--hr-bg-alt); }
.hr-mobile-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.hr-mobile-toggle svg { width: 24px; height: 24px; stroke: var(--hr-text); }

/* ── Hero ── */
.hr-hero {
  position: relative; overflow: hidden;
  padding: 120px 24px 100px;
  background: linear-gradient(135deg, var(--hr-primary) 0%, var(--hr-primary-light) 100%);
  color: #fff;
}
.hr-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: 400px;
}
.hr-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--hr-max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hr-hero h1 {
  font-family: var(--hr-font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hr-hero p {
  font-size: 1.1rem; line-height: 1.7;
  opacity: 0.9; margin-bottom: 32px; max-width: 480px;
}
.hr-hero-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: var(--hr-radius-lg);
  box-shadow: var(--hr-shadow-lg);
}
.hr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--hr-accent);
  color: #1A1A1A; font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--hr-radius-sm);
  transition: transform 200ms, box-shadow 200ms;
  border: none; cursor: pointer;
}
.hr-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,163,115,0.4); }
.hr-btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.hr-btn-outline:hover { background: rgba(255,255,255,0.1); box-shadow: none; transform: none; }

/* ── Section Containers ── */
.hr-section {
  padding: 96px 24px;
  max-width: var(--hr-max-w); margin: 0 auto;
}
.hr-section-alt { background: var(--hr-bg-alt); }
.hr-section-alt .hr-section { padding: 96px 24px; }
.hr-section-header {
  text-align: center; margin-bottom: 56px;
}
.hr-section-header h2 {
  font-family: var(--hr-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--hr-primary);
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.hr-section-header p {
  font-size: 1rem; color: var(--hr-text-muted);
  max-width: 560px; margin: 0 auto;
}
.hr-label {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-accent);
  margin-bottom: 8px;
}

/* ── Cards Grid ── */
.hr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.hr-card {
  background: var(--hr-surface);
  border-radius: var(--hr-radius-md);
  overflow: hidden;
  box-shadow: var(--hr-shadow-sm);
  transition: transform 250ms, box-shadow 250ms;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.hr-card:hover { transform: translateY(-4px); box-shadow: var(--hr-shadow-md); }
.hr-card-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
}
.hr-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.hr-card-cat {
  font-size: 0.78rem; font-weight: 600;
  color: var(--hr-accent); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.hr-card-body h3 {
  font-family: var(--hr-font-heading);
  font-size: 1.15rem; font-weight: 700;
  color: var(--hr-text); margin-bottom: 10px;
  line-height: 1.4;
}
.hr-card-body p {
  font-size: 0.92rem; color: var(--hr-text-muted);
  line-height: 1.6; flex: 1;
}
.hr-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--hr-border-light);
  font-size: 0.82rem; color: var(--hr-text-light);
}

/* ── Carousel ── */
.hr-carousel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hr-carousel-item {
  position: relative; overflow: hidden;
  border-radius: var(--hr-radius-md);
  aspect-ratio: 3/2;
}
.hr-carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.hr-carousel-item:hover img { transform: scale(1.04); }
.hr-carousel-item .hr-carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex; align-items: flex-end; padding: 24px;
}
.hr-carousel-overlay span {
  color: #fff; font-weight: 600; font-size: 1rem;
}

/* ── Features ── */
.hr-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hr-feature {
  text-align: center; padding: 40px 24px;
  background: var(--hr-surface);
  border-radius: var(--hr-radius-md);
  border: 1px solid var(--hr-border-light);
  transition: border-color 200ms;
}
.hr-feature:hover { border-color: var(--hr-accent); }
.hr-feature-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  background: var(--hr-bg-alt);
  border-radius: var(--hr-radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.hr-feature-icon svg { width: 24px; height: 24px; stroke: var(--hr-primary); fill: none; stroke-width: 1.5; }
.hr-feature h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--hr-text);
}
.hr-feature p { font-size: 0.88rem; color: var(--hr-text-muted); }

/* ── Footer ── */
.hr-footer {
  background: var(--hr-primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.hr-footer-inner {
  max-width: var(--hr-max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.hr-footer-brand h4 {
  font-family: var(--hr-font-heading);
  color: #fff; font-size: 1.1rem; margin-bottom: 12px;
}
.hr-footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.hr-footer h5 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.hr-footer-links { list-style: none; }
.hr-footer-links li { margin-bottom: 8px; }
.hr-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.88rem;
  transition: color 200ms;
}
.hr-footer-links a:hover { color: #fff; }
.hr-footer-bottom {
  max-width: var(--hr-max-w); margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.hr-footer-notices {
  max-width: var(--hr-max-w); margin: 0 auto;
  padding-top: 20px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── Single Post ── */
.hr-single { max-width: var(--hr-content-w); margin: 0 auto; padding: 48px 24px 96px; }
.hr-single-header { margin-bottom: 40px; }
.hr-single-header h1 {
  font-family: var(--hr-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.35;
  letter-spacing: -0.02em; color: var(--hr-text);
}
.hr-single-meta {
  display: flex; gap: 16px; margin-top: 16px;
  font-size: 0.85rem; color: var(--hr-text-light);
}
.hr-single-hero {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: var(--hr-radius-md);
  margin-bottom: 40px;
}

/* ── Post Content ── */
.hr-content h2 {
  font-family: var(--hr-font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--hr-primary);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--hr-border-light);
  letter-spacing: -0.01em;
}
.hr-content h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--hr-text);
  margin: 32px 0 14px;
}
.hr-content p {
  margin-bottom: 18px; line-height: 1.8;
  word-break: keep-all;
}
.hr-content img {
  max-width: 100%; height: auto;
  border-radius: var(--hr-radius-sm);
  margin: 24px 0;
}
.hr-content ul, .hr-content ol {
  margin: 16px 0 24px 20px;
  line-height: 1.8;
}
.hr-content li { margin-bottom: 6px; }
.hr-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: var(--hr-radius-sm);
  overflow: hidden;
  border: 1px solid var(--hr-border);
  font-size: 0.92rem;
}
.hr-content thead th {
  background: var(--hr-primary);
  color: #fff; font-weight: 600;
  padding: 12px 16px; text-align: left;
}
.hr-content tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hr-border-light);
}
.hr-content tbody tr:last-child td { border-bottom: none; }
.hr-content tbody tr:nth-child(even) { background: var(--hr-bg); }
.hr-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--hr-bg-alt);
  border-left: 4px solid var(--hr-accent);
  border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0;
  font-size: 0.95rem;
  color: var(--hr-text);
}
.hr-content blockquote p { margin-bottom: 0; }

/* ── Callout ── */
.hr-callout {
  margin: 24px 0; padding: 20px 24px;
  background: #FEF3C7; border-radius: var(--hr-radius-sm);
  border: 1px solid #F59E0B;
  font-size: 0.92rem;
}
.hr-callout-danger {
  background: #FEE2E2; border-color: #EF4444;
}
.hr-callout strong { display: block; margin-bottom: 6px; }

/* ── Table wrapper for mobile ── */
.hr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.hr-table-wrap table { margin: 0; min-width: 480px; }

/* ── Inline Chart ── */
.hr-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hr-bar-label { min-width: 80px; font-size: 0.85rem; font-weight: 500; text-align: right; }
.hr-bar-track { flex: 1; height: 24px; background: var(--hr-bg-alt); border-radius: 12px; overflow: hidden; }
.hr-bar-fill { height: 100%; background: linear-gradient(90deg, var(--hr-primary), var(--hr-primary-light)); border-radius: 12px; transition: width 600ms ease; }
.hr-bar-val { min-width: 48px; font-size: 0.82rem; color: var(--hr-text-muted); }

/* ── TOC ── */
.hr-toc {
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-radius-md);
  padding: 24px 28px; margin: 0 0 40px;
}
.hr-toc h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; color: var(--hr-primary); }
.hr-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.hr-toc li { counter-increment: toc; margin-bottom: 6px; }
.hr-toc li::before { content: counter(toc) '. '; font-weight: 600; color: var(--hr-accent); }
.hr-toc a { color: var(--hr-text-muted); text-decoration: none; font-size: 0.92rem; }
.hr-toc a:hover { color: var(--hr-primary); }

/* ── Related posts ── */
.hr-related { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hr-border); }
.hr-related h3 { font-family: var(--hr-font-heading); font-size: 1.3rem; margin-bottom: 24px; }
.hr-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hr-related-card { text-decoration: none; color: inherit; }
.hr-related-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--hr-radius-sm); margin-bottom: 12px;
}
.hr-related-card h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }

/* ── Legal / AI notices ── */
.legal-notice, .ai-notice { max-width: var(--hr-content-w); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hr-header-inner { height: 56px; }
  .hr-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; padding: 24px; gap: 0; z-index: 99; }
  .hr-nav.open { display: flex; }
  .hr-nav a { padding: 14px 16px; font-size: 1rem; }
  .hr-mobile-toggle { display: block; }
  .hr-hero { padding: 72px 20px 64px; }
  .hr-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hr-hero p { margin: 0 auto 24px; }
  .hr-hero-img { max-height: 280px; }
  .hr-section { padding: 56px 20px; }
  .hr-cards { grid-template-columns: 1fr; }
  .hr-carousel { grid-template-columns: 1fr; gap: 16px; }
  .hr-features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hr-feature { padding: 24px 16px; }
  .hr-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hr-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hr-single { padding: 32px 20px 64px; }
  .hr-content h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hr-features { grid-template-columns: 1fr; }
  .hr-hero h1 { font-size: 1.6rem; }
}

/* ── Scroll Animations ── */
.hr-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.hr-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WP Overrides ── */
.wp-block-post-content { max-width: none; padding: 0; }
.entry-content, .wp-site-blocks { max-width: none; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none; }
