:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --card2: #faf6f4;
  --border: #f0e0da;
  --accent: #dc655f;
  --accent2: #f09b6a;
  --gold: #c9a227;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── 레이아웃 ── */
.page { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }

/* ── 헤더 ── */
.blog-header {
  padding: 20px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  flex-shrink: 0;
}
.back-home:hover { color: var(--accent); }
.header-divider { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.blog-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.blog-logo span { color: var(--accent); }

/* ── 목록 페이지 ── */
.list-intro {
  margin-bottom: 32px;
}
.list-intro-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.list-intro-title span { color: var(--accent); }
.list-intro-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

.post-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(220, 101, 95, 0.10);
  transform: translateY(-2px);
}
.post-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.post-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── 상세 페이지 ── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 28px;
}
.article-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

/* ── 마크다운 본문 ── */
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.35;
}
.article-body h1 { font-size: 24px; margin: 40px 0 14px; }
.article-body h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.article-body h3 { font-size: 17px; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: var(--card2);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--muted);
  font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--card2);
  font-weight: 600;
}
.article-body tr:nth-child(even) td { background: #fdfcfb; }

.article-body .recipe-post > h2:first-child { margin-top: 0; }

/* ── recipe-post (HTML 본문) ── */
#app article:has(.recipe-post .post-title) .article-title { display: none; }

.article-body .recipe-post {
  margin-top: 0;
}
.article-body .recipe-post .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 12px;
}
.article-body .recipe-post .post-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}
.article-body .recipe-post .origin-section,
.article-body .recipe-post .recipe-section {
  margin-top: 28px;
}
.article-body .recipe-post .origin-list,
.article-body .recipe-post .ingredients-list,
.article-body .recipe-post .step-list {
  margin: 0 0 18px 24px;
}
.article-body .recipe-post .ingredients,
.article-body .recipe-post .instructions {
  margin-top: 20px;
}
.article-body .recipe-post .ingredients + .ingredients {
  margin-top: 24px;
}
.article-body .recipe-post .honey-tip {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--card2);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 3px solid var(--gold);
}
.article-body .recipe-post .honey-tip h3 {
  margin-top: 0;
  font-size: 17px;
}
.article-body .recipe-post .honey-tip p {
  margin-bottom: 0;
  color: var(--text);
}
@media (min-width: 768px) {
  .article-body .recipe-post .post-title { font-size: 28px; }
}

/* ── content-wrapper (에디토리얼 HTML 본문) ── */
.article-body .content-wrapper .meta-info {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.article-body .content-wrapper .case-study {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--card2);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.article-body .content-wrapper .case-study h3 {
  margin-top: 0;
  font-size: 17px;
  margin-bottom: 10px;
}
.article-body .content-wrapper .case-study p:last-child { margin-bottom: 0; }
.article-body .content-wrapper footer.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-body .content-wrapper footer.tags .tag {
  font-size: 13px;
  color: var(--muted);
  background: var(--card2);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ── health-data-container (항암·슈퍼푸드 에디토리얼 HTML) ── */
#app article:has(.health-data-container .entry-title) .article-title,
#app article:has(.health-data-container .entry-title) .article-meta,
#app article:has(.health-data-container .entry-title) .article-divider {
  display: none;
}

.article-body .health-data-container {
  margin-top: 0;
}
.article-body .health-data-container .entry-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}
.article-body .health-data-container .data-origin {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}
.article-body .health-data-container .food-category {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--card2);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.article-body .health-data-container .food-category h3 {
  margin-top: 0;
  font-size: 17px;
  margin-bottom: 10px;
}
.article-body .health-data-container .food-category p:last-child { margin-bottom: 0; }
.article-body .health-data-container code {
  font-size: 0.92em;
  background: var(--card2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}
.article-body .health-data-container pre {
  background: #1c1c1e;
  color: #ececec;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin: 20px 0 24px;
}
.article-body .health-data-container pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.article-body .health-data-container > footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-body .health-data-container .disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}
.article-body .health-data-container .tags {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .article-body .health-data-container .entry-title { font-size: 28px; }
}

/* ── post (이너뷰티 등 에디토리얼 HTML 본문) ── */
#app article:has(.post .post-title) .article-title,
#app article:has(.post .post-title) .article-meta,
#app article:has(.post .post-title) .article-divider {
  display: none;
}

.article-body .post .post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.article-body .post .post-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.article-body .post hr {
  margin: 0 0 28px;
  border: none;
  border-top: 1px solid var(--border);
}
.article-body .post .post-content h2 {
  margin-top: 28px;
}
.article-body .post .post-content h2:first-of-type {
  margin-top: 0;
}
.article-body .post .cta-box {
  margin-top: 28px;
  padding: 20px;
  background: var(--card2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-body .post .cta-box h3 {
  font-size: 17px;
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
}
.article-body .post .cta-box p {
  margin-bottom: 0;
}
.article-body .post .cta-box a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.article-body .post .cta-box a:hover {
  text-decoration: underline;
}
.article-body .post .cta-box--workout {
  background: #f0f4f8;
  border: 1px solid #dbe4ec;
  border-left: 5px solid #2c3e50;
}
.article-body .post .cta-box--workout a {
  color: #2c3e50;
  text-decoration: underline;
}
.article-body .post .cta-box--workout a:hover {
  color: #1a252f;
}
.article-body .post .cta-box--vascular {
  background: #e8f5e9;
  border: 1px dashed #2e7d32;
  border-radius: var(--radius);
}
.article-body .post .cta-box--vascular a {
  color: #2e7d32;
  font-weight: 700;
  text-decoration: none;
}
.article-body .post .cta-box--vascular a:hover {
  color: #1b5e20;
  text-decoration: underline;
}
.article-body .post .cta-box--metabolic {
  background: #fff9f0;
  border: 2px solid #ffcc80;
  border-radius: 10px;
}
.article-body .post .cta-box--metabolic a {
  color: #ef6c00;
  font-weight: 700;
  text-decoration: underline;
}
.article-body .post .cta-box--metabolic a:hover {
  color: #e65100;
}
.article-body .post .highlight-good {
  font-weight: 700;
  color: #27ae60;
  background-color: #e9f7ef;
  padding: 2px 4px;
}
.article-body .post .highlight-bad {
  font-weight: 700;
  color: #c0392b;
  background-color: #fdedec;
  padding: 2px 4px;
}
.article-body .post .highlight-warm {
  font-weight: 700;
  color: #c0392b;
  background-color: #fdf2e9;
  padding: 2px 4px;
}
.article-body .post .donation-box {
  background: #fdf6f5;
  padding: 18px;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid rgba(220, 101, 95, 0.25);
}
.article-body .post .donation-box .donation-figure {
  margin: 0 0 16px;
}
.article-body .post .donation-box .donation-figure img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.article-body .post .donation-box .donation-caption {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}
.article-body .post .story-box {
  background-color: #fdf2e9;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border: 1px solid #fad7a1;
}
.article-body .post .story-box p:last-child {
  margin-bottom: 0;
}
.article-body .post .post-top-link {
  margin: 0 0 20px;
}
.article-body .post .post-top-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.article-body .post .post-top-link a:hover {
  text-decoration: underline;
}
.article-body .post .ad-placeholder {
  background-color: #f8f9fa;
  border: 1px dashed #ccc;
  text-align: center;
  padding: 40px 20px;
  margin: 30px 0;
  color: #888;
  font-size: 0.9em;
}
.article-body .post .info-box {
  background: #ebf5fb;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border-top: 3px solid #2980b9;
}
.article-body .post .info-box h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
  margin: 0 0 12px;
  font-size: 17px;
}
.article-body .post .info-box ul {
  margin-bottom: 0;
}
.article-body .post .info-box--violet {
  background: #f4ecf7;
  border-top-color: #8e44ad;
}
.article-body .post .info-box--violet p {
  margin-bottom: 12px;
}
.article-body .post .info-box--neutral {
  background: #f4f6f7;
  border-top-color: #7f8c8d;
}
.article-body .post .info-box--savings {
  background: #fcf3cf;
  border-top-color: #f1c40f;
}
.article-body .post .recipe-box {
  background-color: #fdfefe;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border: 1px solid #d5dbdb;
}
.article-body .post .recipe-box ul {
  margin-bottom: 0;
}
.article-body .post .highlight {
  font-weight: 700;
  color: #d35400;
  background-color: #fef9e7;
  padding: 2px 4px;
}
@media (min-width: 768px) {
  .article-body .post .post-title { font-size: 28px; }
}

/* ── 로딩 / 에러 ── */
.loading { text-align: center; padding: 80px 0; color: var(--muted); font-size: 15px; }
.error-box { text-align: center; padding: 80px 0; }
.error-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.error-desc { font-size: 14px; color: var(--muted); }

/* ── 반응형 ── */
@media (min-width: 768px) {
  .article-title { font-size: 32px; }
  .article-body { font-size: 17px; }
  .list-intro-title { font-size: 32px; }
}

/* Index list – professional minimal */
.index-page-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.index-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text);
}
.index-lede {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 40rem;
}
.index-list { list-style: none; margin: 0; padding: 0; }
.index-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.index-item:first-child { padding-top: 0; }
.index-item time {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.index-item h1 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 12px;
}
.index-item h1 a { color: var(--text); text-decoration: none; }
.index-item h1 a:hover { color: var(--accent); }
.index-excerpt { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.index-read { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.index-read:hover { text-decoration: underline; }
.article-back { text-decoration: none; }

.trust-section {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card2);
}
.trust-section h2 {
  font-size: 16px;
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
}
.trust-section p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}
.trust-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.trust-links a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}
.trust-links a:hover { text-decoration: underline; }
.trust-links span {
  color: var(--muted);
  font-size: 12px;
}
.trust-section--index { margin-top: 28px; }
