/* 두드 노트 — 글 읽는 화면.
   notes.css 의 기본 위에 얹는 레이어. 글이 글처럼 보이게 하는 것만 담는다. */

/* ── 머리말 ───────────────────────────────────────── */
.notes-article-heading .notes-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid #c8bed4;
  border-radius: 30px;
  color: #594677;
}
.notes-article h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -.05em;
  margin: 18px 0 24px;
  max-width: 15em;
  text-wrap: balance;
}
.notes-lead {
  font-size: 21px;
  line-height: 1.78;
  color: #413255;
  max-width: 30em;
}
.notes-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dcd6e2;
  font-size: 12px;
  letter-spacing: .01em;
}

/* ── 히어로 ───────────────────────────────────────── */
.notes-article > .notes-article-image {
  margin: 0 auto 64px;
  border-radius: 20px;
}
.notes-article > .notes-article-image img { max-height: 620px; object-fit: cover; }

/* ── 본문 ─────────────────────────────────────────── */
.notes-body > section:first-child > p:first-of-type {
  font-size: 20px;
  line-height: 1.85;
}
.notes-body h2 {
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.4;
  letter-spacing: -.045em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.notes-body section + section,
.notes-body section + figure,
.notes-body figure + section { margin-top: 12px; }
.notes-body section { margin-bottom: 64px; }

.notes-body p { color: #2f2342; }
.notes-body p + p { margin-top: 0; }

/* 문단 안에서 줄을 끊어 쓴 대목은 호흡을 조금 더 준다 */
.notes-body p br { line-height: 2.5; }

/* ── 표 ───────────────────────────────────────────── */
.notes-table-wrap {
  margin: 36px 0 24px;
  border: 1px solid #e3dee9;
  border-radius: 14px;
  overflow: hidden;
}
.notes-table-wrap caption {
  padding: 18px 20px 0;
  color: #655c70;
  font-size: 12px;
}
.notes-table-wrap th, .notes-table-wrap td { padding: 16px 20px; }
.notes-table-wrap tbody tr:last-child th,
.notes-table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ── 본문 삽입 이미지 ─────────────────────────────── */
.notes-body .notes-article-image-inline { margin: 0 0 64px; }
.notes-body .notes-article-image-inline img { border-radius: 16px; }
.notes-body figcaption {
  border-left: 2px solid #c8bed4;
  padding-left: 12px;
  margin-top: 16px;
}

/* ── 주석 ─────────────────────────────────────────── */
.notes-body .notes-small {
  margin-top: 22px;
  padding: 14px 16px;
  background: #f2eff6;
  border-radius: 10px;
}

/* ── 다음 읽을거리 ────────────────────────────────── */
.notes-next {
  margin: 20px 0 76px;
  padding: 34px;
  background: var(--deep, #291640);
  color: #fafaf7;
}
.notes-next .notes-kicker { color: #ddccfb; }
.notes-next h2 { color: #fafaf7; }
.notes-next a {
  color: #fafaf7;
  border-color: rgb(250 250 247 / 45%);
  background: rgb(250 250 247 / 5%);
}
.notes-next a:hover { background: rgb(250 250 247 / 14%); border-color: #ddccfb; }
.notes-next a:focus-visible { outline-color: #ddccfb; }

@media (max-width: 700px) {
  .notes-article-heading { padding: 36px 22px 28px; }
  .notes-article h1 { font-size: 32px; margin: 14px 0 20px; }
  .notes-lead { font-size: 17px; }
  .notes-byline { margin-top: 24px; padding-top: 16px; }
  .notes-article > .notes-article-image { margin-bottom: 42px; border-radius: 14px; }
  .notes-body section { margin-bottom: 48px; }
  .notes-body > section:first-child > p:first-of-type { font-size: 17px; }
  .notes-body .notes-article-image-inline { margin-bottom: 44px; }
  .notes-table-wrap th, .notes-table-wrap td { padding: 13px 12px; }
  .notes-table-wrap caption { padding: 14px 14px 0; }
  .notes-next { padding: 24px 20px; margin-bottom: 52px; }
}

/* 제품 소개 문구 블록 — 확정 카피를 본문 앞에 그대로 세운다 */
.notes-manifesto {
  width: min(820px, calc(100% - 80px));
  margin: 0 auto 56px;
  padding: 36px 0;
  border-top: 1px solid #c8bed4;
  border-bottom: 1px solid #c8bed4;
}
.notes-manifesto p {
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.62;
  letter-spacing: -.04em;
  color: #291640;
  margin: 0;
  text-wrap: balance;
}
.notes-manifesto p + p { margin-top: 22px; }
.notes-manifesto .notes-manifesto-last {
  font-size: clamp(19px, 1.8vw, 22px);
  color: #594677;
}
@media (max-width: 700px) {
  .notes-manifesto { width: calc(100% - 44px); margin-bottom: 40px; padding: 26px 0; }
  .notes-manifesto p { font-size: 20px; }
  .notes-manifesto .notes-manifesto-last { font-size: 17px; }
}

/* ── 타이포 시스템 ───────────────────────────────────
   본문 18px 을 기준으로 위아래 단계를 정리한다.
   한글은 한 줄 40~45자에서 가장 읽기 편하다.
     표제 52 · 리드 21 · 들머리 20 · 본문 18 · 보조 15 · 주석 13   */

.notes-body p { text-wrap: pretty; }

/* 시행으로 끊어 쓴 문단 — 호흡은 주되 폭에 따라 무너지지 않게 */
.notes-stanza {
  line-height: 1.72;
  text-wrap: pretty;
}
.notes-stanza br { line-height: inherit; }

/* 좁은 화면에서는 줄을 풀어 일반 문단처럼 흐르게 한다.
   원문의 <br> 앞에 공백을 두었으므로 띄어쓰기가 유지된다. */
@media (max-width: 560px) {
  .notes-stanza br { display: none; }
  .notes-stanza { line-height: 1.9; }
}

/* 표 — 본문보다 한 단계만 작게 */
.notes-table-wrap table { font-size: 16px; line-height: 1.75; }
.notes-table-wrap caption { font-size: 13px; }

/* 주석·캡션 — 한 단계로 통일 */
.notes-body .notes-small,
.notes-body figcaption { font-size: 13px; line-height: 1.8; }

@media (max-width: 700px) {
  .notes-table-wrap table { font-size: 14px; line-height: 1.7; }
  .notes-body .notes-small,
  .notes-body figcaption { font-size: 12px; }
}
