/* ==========================================================================
   IntelliMind — 표시용 서체 (마지막에 로드되어 다른 규칙을 덮는다)
   제목: "Instrument Serif" → 한글은 "MaruBuri" → 시스템 명조
   본문: Pretendard
   ========================================================================== */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20AB, U+2100-214F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20AB, U+2100-214F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'MaruBuri';
  src: url('fonts/MaruBuri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MaruBuri';
  src: url('fonts/MaruBuri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.hero-title,
.hero__title,
.panel__title,
.section-title,
.statement__text,
.start__title,
.breath__phase,
.safety__card h2,
.help__card h2,
.simalt__card h3,
.report__card h3,
.scene-card h3,
.step h3 {
  font-family: 'MaruBuri', 'Apple SD Gothic Neo', 'Nanum Myeongjo', 'Noto Serif KR', serif !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: -0.012em;
}

.hero-title, .hero__title { line-height: 1.38; }
.panel__title { line-height: 1.42; }
.statement__text, .section-title { line-height: 1.42; }
.breath__phase { font-size: clamp(26px, 3.9vw, 38px); }
.hero-title .hero__em, .hero__title .hero__em, .statement__text em { font-style: italic; }


/* 언어별 우선순위 — 한글 제목은 MaruBuri, 영문 제목은 Instrument Serif.
   (두 서체 모두 로컬 파일이며, 없으면 시스템 명조로 내려간다.) */
html[lang='en'] .hero-title,
html[lang='en'] .hero__title,
html[lang='en'] .panel__title,
html[lang='en'] .section-title,
html[lang='en'] .statement__text,
html[lang='en'] .start__title,
html[lang='en'] .breath__phase,
html[lang='en'] .safety__card h2,
html[lang='en'] .help__card h2,
html[lang='en'] .simalt__card h3,
html[lang='en'] .scene-card h3,
html[lang='en'] .step h3,
html[lang='en'] .report__card h3 {
  font-family: 'Instrument Serif', 'MaruBuri', serif !important;
}

/* 한글 줄바꿈 — 단어 중간에서 끊기지 않도록(예: '마음'이 '마/음'으로 갈라지는 문제).
   좁은 화면에서 끊을 곳이 없을 때만 overflow-wrap 이 예외적으로 처리한다. */
html[lang='ko'] body,
html[lang='ko'] p,
html[lang='ko'] h1,
html[lang='ko'] h2,
html[lang='ko'] h3,
html[lang='ko'] li,
html[lang='ko'] button {
  word-break: keep-all;
  overflow-wrap: break-word;
}
