/*
Theme Name: BlackGoatGuide Theme
Template: twentytwentyfive
Description: Premium health information theme for blackgoatguide.mungori.com
Version: 1.0
*/

:root {
  --bg-primary: #faf8f5;
  --bg-white: #ffffff;
  --bg-cream: #f5f0e8;
  --bg-warm: #f0ebe3;
  --bg-dark: #2c1810;
  --bg-card: #ffffff;
  --text-primary: #2c1810;
  --text-secondary: #5a4a3a;
  --text-muted: #8a7a6a;
  --text-light: #b0a090;
  --text-inverse: #faf8f5;
  --accent: #8b5e3c;
  --accent-hover: #6d4830;
  --accent-light: #c9a882;
  --accent-bg: rgba(139,94,60,0.08);
  --border: #e8e0d4;
  --border-light: #f0ebe3;
  --shadow-sm: 0 1px 3px rgba(44,24,16,0.06);
  --shadow-md: 0 4px 12px rgba(44,24,16,0.08);
  --shadow-lg: 0 8px 32px rgba(44,24,16,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;
  --max-content: 780px;
  --max-wide: 1200px;
  --font-body: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Noto Serif KR', 'Pretendard', serif;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--space-md);
}
.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  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 { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 36px; }
.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
}

.site-nav { display: flex; gap: var(--space-md); align-items: center; }
.site-nav a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition-base);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.mobile-menu-toggle svg { width: 24px; height: 24px; stroke: var(--text-primary); }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.active {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-toggle { display: flex; }
}

.content-width { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--space-md); }
.wide-width { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--space-md); }

.entry-content h2 {
  font-size: 1.55rem; font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent-light);
  color: var(--text-primary);
}
.entry-content h3 {
  font-size: 1.25rem; font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--accent);
}
.entry-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}
.entry-content ul, .entry-content ol {
  margin: var(--space-sm) 0 var(--space-md) var(--space-md);
  line-height: 1.8;
  color: var(--text-secondary);
}
.entry-content li { margin-bottom: 6px; }
.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
}

.entry-content table {
  width: 100%; border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.entry-content table thead th {
  background: var(--accent);
  color: var(--text-inverse);
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  border: none;
}
.entry-content table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  vertical-align: top;
}
.entry-content table tbody tr:nth-child(even) td {
  background: var(--bg-cream);
}
.entry-content table tbody tr:hover td {
  background: var(--accent-bg);
}

@media (max-width: 640px) {
  .entry-content table { font-size: 0.82rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .entry-content table thead th, .entry-content table tbody td { padding: 10px 12px; white-space: nowrap; }
}

.entry-content blockquote,
.callout-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
  color: var(--text-secondary);
}
.callout-box strong { color: var(--text-primary); }

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin-top: var(--space-3xl);
}
.site-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--space-sm);
  display: flex; align-items: center; gap: 10px;
}
.footer-logo-image { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 36px; }
.footer-desc {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin-bottom: var(--space-md);
}
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text-inverse); }
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}

.wp-block-post-content, .wp-site-blocks { all: unset; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none; margin-left: 0; margin-right: 0;
}

.wp-element-button, .wp-block-button__link { all: unset; }
