/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pretendard Font - CDN stylesheet에서 자동으로 로드됨 */
/* application.html.erb의 pretendard-dynamic-subset.min.css가 폰트를 제공 */

/* 한글 폰트 렌더링 최적화 */
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  word-break: keep-all; /* 한글 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
}

/* Hero 텍스트 굵기 강제 적용 */
.text-hero {
  font-weight: 700 !important;
}

/* 한글 타이포그래피 최적화 */
h1, h2, h3, h4, h5, h6 {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  letter-spacing: -0.02em;
}

/* 본문 텍스트 가독성 향상 */
p, .text-body {
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* 작은 텍스트 가독성 */
small, .text-sm, .text-xs {
  letter-spacing: 0;
}

/* Reveal animation fallback 포함 */
@import "reveal_fallback.css";
