/* ATELIER editorial 톤 — SKINCARE GUIDES 본문 공통 스타일.
   skincare-layering-order, spf-pa-explained, aha-bha-pha-guide, cleanser-types-compared,
   acne-care-cosmetics-vs-medicine, pregnancy-safe-skincare, ingredient-list-1-percent-rule,
   cosmetic-expiration-pao 8편 공통.
*/

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

:root {
  --gold: #b88a3d;
  --gold-deep: #8c6726;
  --burgundy: #600016;
  --cream: #f6f7f9;
  --cream-soft: #f1f3f6;
  --cream-deep: #e8ebef;
  --ink: #1c1b1b;
  --ink-soft: #475569;
  --line: #e2e8f0;
}

.article-page {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── 상단 back ───────────────────────────────────────────── */
.article-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 24px 0; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding: 8px 0;
}
.article-back:hover { color: var(--ink); }

/* ── 인트로 ─────────────────────────────────────────────── */
.article-intro {
  max-width: 800px; margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
}
.article-eyebrow {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  color: var(--burgundy);
  font-size: 16px;
  margin-bottom: 16px;
  display: block;
}
.article-h1 {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
@media (min-width: 768px) { .article-h1 { font-size: 56px; line-height: 1.15; } }
.article-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 20px;
}
.article-meta {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ── 인라인 이미지 ──────────────────────────────────────── */
.article-image {
  width: 100%;
  max-width: 1100px;
  margin: 32px auto 56px;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-image__frame {
  position: absolute; left: -16px; bottom: -16px;
  width: 96px; height: 96px;
  border: 0.5px solid var(--gold);
  display: none;
}
@media (min-width: 768px) { .article-image__frame { display: block; left: -24px; bottom: -24px; width: 144px; height: 144px; } }

/* ── 본문 영역 ─────────────────────────────────────────── */
.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 0 24px;
}
.article-body h2 {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 72px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .article-body h2 { font-size: 32px; } }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 32px 0 10px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li {
  font-size: 16px; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 8px;
}
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }

/* ── 단계 그리드 — 시안 numbered 패턴 ──────────────────── */
.step-grid { margin: 32px 0 40px; }
.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 0.5px solid rgba(184, 138, 61, 0.4);
  align-items: start;
}
.step-row:first-child { padding-top: 0; }
.step-num {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-top: 4px;
  min-width: 44px;
}
.step-name {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ── 핵심 원칙 — 원형 아이콘 영역 ─────────────────────── */
.principle-grid {
  max-width: 1100px;
  margin: 80px auto;
  padding: 64px 24px;
  background: var(--cream-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  text-align: center;
}
.principle-grid__head { text-align: center; margin-bottom: 8px; }
.principle-grid__head .article-eyebrow { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; color: var(--ink-soft); }
.principle-grid__head h3 {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 8px;
}
@media (min-width: 768px) {
  .principle-grid { grid-template-columns: repeat(2, 1fr); padding: 96px 64px; gap: 48px; }
  .principle-grid--three { grid-template-columns: repeat(3, 1fr); }
  .principle-grid__head { grid-column: 1 / -1; }
}
.principle-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.principle-icon {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 0.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--gold);
}
.principle-card__eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.principle-card__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}
.principle-card__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 320px;
}

/* ── Key Card (기존 박스) → editorial-tip 톤 ──────────── */
.article-body .key-card {
  background: transparent;
  border-left: 1px solid var(--gold);
  border-radius: 0;
  padding: 8px 0 8px 24px;
  margin: 24px 0;
}
.article-body .key-card p {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.article-body .key-card p strong { font-style: normal; color: var(--ink); font-weight: 600; }
.article-body .warn-card {
  background: var(--cream-soft);
  border-left: 1px solid var(--gold);
  border-radius: 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.article-body .warn-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* ── Editorial Tip 박스 (시안 Ten-Second Rule 패턴) ───── */
.editorial-tip {
  max-width: 1100px;
  margin: 80px auto;
  padding: 64px 24px;
  background: var(--cream-soft);
}
.editorial-tip__inner {
  max-width: 720px; margin: 0 auto;
  border: 0.5px solid var(--gold);
  padding: 40px 28px;
  position: relative;
  background: var(--cream);
}
@media (min-width: 768px) { .editorial-tip__inner { padding: 56px 48px; } }
.editorial-tip__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--cream-soft);
  padding: 4px 16px;
  position: absolute;
  top: -12px; left: 28px;
}
.editorial-tip__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 20px;
}
.editorial-tip__quote {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.editorial-tip__cite {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── 표 ─────────────────────────────────────────────── */
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 12px 14px 0;
  text-align: left;
  background: transparent;
  border-bottom: 0.5px solid rgba(184, 138, 61, 0.5);
}
.article-body td {
  padding: 14px 12px 14px 0;
  border-bottom: 0.5px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
  background: transparent;
}
.article-body td:first-child { font-weight: 600; color: var(--ink); }

/* ── Skin Warning + 참고 + 면책 ────────────────────────── */
.skin-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 0.5px solid rgba(184, 138, 61, 0.5);
  align-items: start;
}
.skin-warning__icon { color: var(--gold); padding-top: 4px; }
.skin-warning__label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.skin-warning__body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.article-body .source-box {
  margin: 56px 0 0;
  padding: 32px 0 0;
  background: transparent;
  border: none;
  border-top: 0.5px solid var(--line);
  border-radius: 0;
}
.article-body .source-box .source-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.article-body .source-box ul { padding-left: 18px; margin: 0; }
.article-body .source-box li { font-size: 13px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 6px; }
.article-body .disclaimer {
  margin: 48px 0 0;
  padding: 20px 24px;
  background: var(--cream-soft);
  border: none;
  border-left: 0.5px solid var(--gold);
  border-radius: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.article-body .disclaimer strong { color: var(--ink); font-weight: 600; }

/* ── Continue Exploring 카드 그리드 ────────────────────── */
.continue-explore {
  max-width: 1100px;
  margin: 96px auto 0;
  padding: 0 24px 80px;
}
.continue-explore__head { margin-bottom: 40px; }
.continue-explore__eyebrow {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  color: var(--burgundy);
  font-size: 15px;
  margin-bottom: 8px;
  display: block;
}
.continue-explore__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
}
.continue-explore__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .continue-explore__grid { grid-template-columns: repeat(3, 1fr); } }
.continue-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.continue-card__image { width: 100%; aspect-ratio: 1/1; background: var(--cream-soft); overflow: hidden; }
.continue-card__image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); transition: filter .5s; }
.continue-card:hover .continue-card__image img { filter: grayscale(0); }
.continue-card__eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.continue-card__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .3s;
}
.continue-card:hover .continue-card__title { color: var(--gold); }

/* ── Editorial CTA — 사이트 cream 톤 일관, 다크 버튼만 ──── */
.article-cta {
  background: #fdf8f7;
  color: #1c1b1b;
  padding: 80px 24px;
  text-align: center;
  margin-top: 96px;
  border-top: 0.5px solid #b88a3d;
  border-bottom: 0.5px solid #b88a3d;
}
.article-cta__eyebrow {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  font-size: 15px;
  color: #600016;
  margin-bottom: 12px;
  display: block;
}
.article-cta__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  color: #1c1b1b;
  margin-bottom: 16px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.article-cta__lead {
  font-size: 15px;
  line-height: 1.7;
  color: #484740;
  max-width: 480px;
  margin: 0 auto 32px;
}
.article-cta__btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1c1b1b; color: #fdf8f7;
  padding: 18px 36px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s;
}
.article-cta__btn:hover { opacity: 0.85; }

/* ─────────────────────────────────────────────────────────
   SCIENCE EXPLAINERS 전용 영역
   분자 다이어그램 + 3 카드(Synthesis of Wisdom) + 데이터 표 + 큰 인용
   ───────────────────────────────────────────────────────── */

/* ── 분자 다이어그램 ──────────────────────────────────── */
.molecule-image {
  width: 100%;
  max-width: 480px;
  margin: 48px auto 64px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
}
.molecule-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.molecule-image__caption {
  display: block;
  margin-top: 16px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Synthesis of Wisdom — 3 카드 그리드 ───────────────── */
.science-trio {
  max-width: 1100px;
  margin: 80px auto;
  padding: 64px 24px;
  background: var(--cream-soft);
}
.science-trio__head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.science-trio__eyebrow {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  
  color: var(--burgundy);
  font-size: 15px;
  margin-bottom: 12px;
  display: block;
}
.science-trio__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .science-trio__title { font-size: 32px; } }
.science-trio__lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.science-trio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) { .science-trio__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trio-card {
  background: var(--cream);
  border-top: 0.5px solid var(--gold);
  padding: 28px 24px;
}
.trio-card__eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.trio-card__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.trio-card__body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ── 데이터 표 강화 (SCIENCE 전용 — 표 위 캡션 + 작은 footnote) ───── */
.data-table {
  margin: 40px 0;
}
.data-table__caption {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.data-table__title {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.data-table__footnote {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 12px;
  
}

/* ── 큰 인용 영역 ─────────────────────────────────────── */
.science-quote {
  max-width: 880px;
  margin: 80px auto;
  padding: 64px 24px;
  text-align: center;
}
.science-quote__mark {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-size: 96px;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  margin-bottom: 24px;
}
.science-quote__body {
  font-family: 'Hanken Grotesk', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 32px;
}
@media (min-width: 768px) { .science-quote__body { font-size: 28px; } }
.science-quote__cite {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-soft);
}
.science-quote__cite::before, .science-quote__cite::after {
  content: '';
  width: 24px; height: 0.5px;
  background: var(--gold);
}
