@charset "utf-8";

/*
 * File    : blocks-typo.css
 * Author  : STUDIO-JT
 *
 * 편집자가 고른 크기 프리셋을 모든 본문 블록에 적용한다.
 * 문단은 wp-block-paragraph 클래스가 없을 수도 있어 크기 클래스로 판별한다.
 * 크기는 코어의 !important 규칙, 행간·자간은 theme.json 토큰을 사용한다.
 * 굵기는 기존 블록 기본값과 편집자의 strong/인라인 서식을 유지한다.
 * 이 파일은 sub-*·rwd-* 뒤에 로드된다. 기본 타이포는 (0,1,0), 선택값은
 * (0,2,0) 이하로 두어 !important 추가 없이 선택한 서식이 우선하게 한다.
 */

/* 바깥 블록의 크기를 내부 텍스트에 전달한다. 자체 크기를 고른 자식은 제외한다.
   제목의 기본 굵기와 strong/b 같은 인라인 강조는 그대로 둔다.
   캡션은 미디어별 기본 타이포를 유지한다. 이미지 래퍼의 font-size: 0을 상속하면 숨겨진다.
   캡션에 직접 고른 크기는 아래 프리셋 규칙으로 적용한다. */
:is(.jt-blocks, .privacy-policy__blocks) [class*="-font-size"] :where(p, li, cite, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, th, td, .wp-block-group, .wp-block-columns, .wp-block-column):where(:not([class*="-font-size"])) { font-size: inherit; line-height: inherit; letter-spacing: inherit; }
:is(.jt-blocks, .privacy-policy__blocks) [class*="-font-size"] :where(p, li, cite, ul, ol, .wp-block-group, .wp-block-columns, .wp-block-column) { font-weight: inherit; }

/* 프리셋을 자식에 직접 선택하면 바깥 블록의 상속보다 우선한다. */
:is(.jt-blocks, .privacy-policy__blocks) .has-xx-large-font-size { line-height: var(--wp--custom--typography--line-height--xx-large); letter-spacing: var(--wp--custom--typography--letter-spacing--xx-large); }
:is(.jt-blocks, .privacy-policy__blocks) .has-x-large-font-size { line-height: var(--wp--custom--typography--line-height--x-large); letter-spacing: var(--wp--custom--typography--letter-spacing--x-large); }
:is(.jt-blocks, .privacy-policy__blocks) .has-large-font-size { line-height: var(--wp--custom--typography--line-height--large); letter-spacing: var(--wp--custom--typography--letter-spacing--large); }
:is(.jt-blocks, .privacy-policy__blocks) .has-medium-font-size { line-height: var(--wp--custom--typography--line-height--medium); letter-spacing: var(--wp--custom--typography--letter-spacing--medium); }
:is(.jt-blocks, .privacy-policy__blocks) .has-small-font-size { line-height: var(--wp--custom--typography--line-height--small); letter-spacing: var(--wp--custom--typography--letter-spacing--small); }
:is(.jt-blocks, .privacy-policy__blocks) .has-x-small-font-size { line-height: var(--wp--custom--typography--line-height--x-small); letter-spacing: var(--wp--custom--typography--letter-spacing--x-small); }
:is(.jt-blocks, .privacy-policy__blocks) .has-xx-small-font-size { line-height: var(--wp--custom--typography--line-height--xx-small); letter-spacing: var(--wp--custom--typography--letter-spacing--xx-small); }
