/* Editorial Hub Network — magazine-style design system
   v1 2026-05-23
   Per-hub: --accent + --serif + --sans differ via body.hub-{slug}
*/

/* ── Reset + base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 17px; line-height: 1.65; }
body { margin: 0; font-family: var(--sans, 'Inter'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text, #1a1a18); background: var(--bg, #fafaf8); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent, #d4af37); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: white; padding: 0.5rem 1rem; }

/* ── Per-hub palettes ──────────────────────────────────────────── */
body.hub-koreabeautyjournal     { --accent: #d4af37; --accent-soft: rgba(212,175,55,.08); --serif: 'Playfair Display'; --sans: 'Inter'; }
body.hub-koreaaestheticjournal  { --accent: #1a3a52; --accent-soft: rgba(26,58,82,.08);  --serif: 'Didot', 'EB Garamond'; --sans: 'Inter'; }
body.hub-koreawomenhealth       { --accent: #7a5f7e; --accent-soft: rgba(122,95,126,.08);--serif: 'Lora'; --sans: 'DM Sans'; }
body.hub-seoulbeautyjournal     { --accent: #c85a54; --accent-soft: rgba(200,90,84,.08); --serif: 'EB Garamond'; --sans: 'Inter'; }
body.hub-seoulaestheticguide    { --accent: #2a7f7e; --accent-soft: rgba(42,127,126,.08);--serif: 'Crimson Text'; --sans: 'Inter'; }
body.hub-koreabeautydigest      { --accent: #c98080; --accent-soft: rgba(201,128,128,.08);--serif: 'Jost'; --sans: 'Inter'; }
body.hub-koreabeautymagazine    { --accent: #2a6f4e; --accent-soft: rgba(42,111,78,.08); --serif: 'IBM Plex Serif'; --sans: 'Inter'; }

:root {
  --bg: #fafaf8;
  --text: #1a1a18;
  --muted: #6b6b66;
  --border: #e6e3dd;
  --max-content: 65ch;
  --max-wide: 92ch;
  --max-page: 1200px;
}

/* ── Site header ───────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--border); background: white; position: sticky; top: 0; z-index: 50; }
.site-header__inner { max-width: var(--max-page); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.site-logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.site-nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.site-nav a { color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Article shell ─────────────────────────────────────────────── */
main { max-width: var(--max-page); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.article { display: block; }

.article__hero { margin: 0 -1.5rem 2rem; }
.article__hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article__hero figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.5rem 1.5rem; font-style: italic; }

.article__header { max-width: var(--max-wide); margin: 0 auto 2.5rem; }
.article__breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.article__breadcrumbs a { color: var(--muted); }
.article__breadcrumbs a:hover { color: var(--accent); }

.article__h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 1rem;
}
.article__lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 60ch; line-height: 1.55; }

.article__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  font-size: 0.9rem;
}
.article__meta strong { font-weight: 600; }
.byline__label, .medical-review__label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.15rem; }
.byline__jobtitle, .reviewer__creds { color: var(--muted); font-size: 0.85rem; }
.article__reading-time { color: var(--muted); font-size: 0.85rem; }

/* ── TL;DR ─────────────────────────────────────────────────────── */
.tldr {
  max-width: var(--max-wide); margin: 0 auto 2rem;
  background: var(--accent-soft);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}
.tldr h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.75rem; }
.tldr ul { margin: 0; padding-left: 1.5rem; }
.tldr li { margin-bottom: 0.5rem; }

/* ── Table of Contents ─────────────────────────────────────────── */
.toc {
  max-width: var(--max-wide); margin: 0 auto 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.toc__heading { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.toc ol { margin: 0; padding-left: 1.5rem; column-count: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.4rem; break-inside: avoid; }
@media (max-width: 720px) { .toc ol { column-count: 1; } }

/* ── Body sections ─────────────────────────────────────────────── */
.article__body { max-width: var(--max-content); margin: 0 auto; font-size: 1.05rem; }
.article__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.article__body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.article__body p { margin: 0 0 1.25rem; }
.article__body ul, .article__body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article__body li { margin-bottom: 0.5rem; }

/* Pull quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}
.pull-quote cite { display: block; font-style: normal; font-size: 0.9rem; margin-top: 0.75rem; color: var(--muted); }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.comparison-table caption { font-family: var(--serif); font-weight: 600; text-align: left; margin-bottom: 0.75rem; font-size: 1.05rem; }
.comparison-table th { background: var(--accent-soft); padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--accent); font-family: var(--serif); font-weight: 600; }
.comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.comparison-table tr:hover td { background: var(--accent-soft); }

/* Figures inline */
.article__body figure { margin: 2rem 0; }
.article__body figure img { border-radius: 2px; }
.article__body figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.5rem; font-style: italic; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { max-width: var(--max-wide); margin: 3rem auto; }
.faq h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.faq__item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq__item h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.faq__item p { margin: 0; color: var(--text); }

/* ── Related ───────────────────────────────────────────────────── */
.related { max-width: var(--max-wide); margin: 3rem auto; padding: 1.5rem 1.75rem; background: var(--accent-soft); border-radius: 2px; }
.related h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 1rem; }
.related ul { margin: 0; padding-left: 1.5rem; }
.related li { margin-bottom: 0.5rem; }

/* ── Article footer ────────────────────────────────────────────── */
.article__footer { max-width: var(--max-wide); margin: 4rem auto 0; }
.medical-disclosure, .sources, .author-bio {
  padding: 1rem 1.25rem;
  background: #faf9f6;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
/* <details> collapsible — DOM에 텍스트 존재 (bot 읽음) + visual 축약 */
.medical-disclosure, .sources {
  font-size: 0.72rem;
  background: transparent;
  border: 0;
  border-top: 1px dashed var(--border);
  padding: 0.75rem 0 0;
  margin-bottom: 0.5rem;
}
.medical-disclosure summary, .sources summary {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.medical-disclosure summary:hover, .sources summary:hover { opacity: 1; }
.medical-disclosure summary::before, .sources summary::before {
  content: '+ '; display: inline-block; font-weight: 600; margin-right: 0.25rem;
}
.medical-disclosure[open] summary::before, .sources[open] summary::before { content: '− '; }
.medical-disclosure p, .sources li { font-size: 0.72rem; line-height: 1.55; margin: 0.5rem 0; color: var(--muted); }
.medical-disclosure__kor { font-size: 0.7rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--border); opacity: 0.8; }
.sources ol { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.sources li { margin-bottom: 0.3rem; }
.author-bio h3 {
  font-family: var(--serif); font-size: 1rem; margin: 0 0 0.5rem; color: var(--text);
}
.author-bio strong { color: var(--text); }

/* ── Sticky newsletter CTA ─────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: white;
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: center; z-index: 80;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.sticky-cta p { margin: 0; font-size: 0.95rem; flex: 1; min-width: 0; }
.sticky-cta form { display: flex; gap: 0.5rem; align-items: center; }
.sticky-cta input[type=email] { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 2px; font-size: 0.95rem; min-width: 200px; }
.sticky-cta button[type=submit] { background: var(--accent); color: white; padding: 0.55rem 1rem; border: 0; border-radius: 2px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.sticky-cta__close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); padding: 0 0.5rem; }
@media (max-width: 640px) { .sticky-cta { flex-direction: column; align-items: stretch; padding: 0.75rem 1rem; } .sticky-cta form { width: 100%; } .sticky-cta input[type=email] { flex: 1; min-width: 0; } }

/* ── Site footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 2rem 1.5rem; background: #f5f3ef; color: var(--muted); font-size: 0.9rem; }
.site-footer__inner { max-width: var(--max-page); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer__nav { display: flex; gap: 1.25rem; }
.site-footer__nav a { color: var(--muted); }

/* ── Print/accessibility ──────────────────────────────────────── */
@media print { .sticky-cta, .site-header, .site-footer { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
