/* 페이퍼크래프트 디자인 시스템 · 토큰
   문서: design-system/papercraft/MASTER.md (대비값 계산표 포함). 값을 바꾸면 문서의 표도 다시 계산한다.
   글꼴은 이 저장소의 파일만 쓴다. 부크크명조는 원본 TTF 그대로(수정·서브셋 금지), 나머지는 OFL 서브셋. */

@font-face { font-family: 'Bookk'; src: url(/sample/assets/fonts/BookkMyungjo_Light.ttf) format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Maru'; src: url(/sample/assets/fonts/MaruBuri-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Maru'; src: url(/sample/assets/fonts/MaruBuri-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Maru'; src: url(/sample/assets/fonts/MaruBuri-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url(fonts/Pretendard-Medium.subset.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(/sample/assets/fonts/Cinzel.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(/sample/assets/fonts/CormorantGaramond.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  /* 종이 */
  --paper: #f7f1e6;          /* 크림 종이: 기본 바탕 */
  --paper-deep: #efe6d6;     /* 한 톤 깊은 종이: 구역 나눔 */
  --card: #fffaf1;           /* 카드·입력 묶음 */
  --white: #ffffff;          /* 입력 칸 */
  /* 먹 */
  --ink: #2f2820;            /* 짙은 먹색: 본문·제목 */
  --ink-soft: #5f5446;       /* 보조 글 */
  --night: #211c16;          /* 어두운 구역 바탕 */
  --on-dark: #fbf3e2;        /* 어두운 바탕 위 글 */
  --on-dark-soft: #cbbfa9;   /* 어두운 바탕 위 보조 글 */
  /* 금박 */
  --gold: #b0874a;           /* 장식 선·아이콘 전용(글자에 쓰지 않는다) */
  --gold-light: #dcc08a;     /* 어두운 바탕 위 금색 글·선 */
  --gold-ink: #7a5c28;       /* 금색 글자·포커스 링 */
  --foil: linear-gradient(100deg, #8a6a36 0%, #dcc08a 22%, #fff4d6 34%, #c9a35f 48%, #8a6a36 62%, #ead29c 80%, #a37f45 100%);
  /* 왁스 실링 */
  --seal: #8f2f2a;           /* 가장 중요한 버튼 하나, 오류 */
  --seal-deep: #74231f;
  --on-seal: #fff4ea;
  /* 상태 */
  --ok: #35603c;
  --warn: #7d5010;
  --ok-bg: #e7efe2;
  --warn-bg: #f6ead0;
  --danger-bg: #f6e2dc;
  /* 선 */
  --line: #e0d2ba;           /* 카드 테두리·구분선(장식) */
  --field-line: #9a8463;     /* 입력 칸 테두리(3:1 이상) */

  /* 글꼴 */
  --font-display: 'Bookk', 'Maru', 'Apple SD Gothic Neo', serif;
  --font-body: 'Maru', 'Apple SD Gothic Neo', 'Noto Serif KR', serif;
  --font-ui: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-caps: 'Cinzel', 'Cormorant', serif;
  --font-latin: 'Cormorant', 'Maru', serif;
  /* 글자 크기 */
  --fs-display: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  --fs-h1: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h2: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-tiny: .8125rem;
  --lh-tight: 1.35;
  --lh-body: 1.75;

  /* 간격(4px 배수) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 34em;           /* 본문 한 줄 길이 */
  --touch: 48px;             /* 누르는 영역 최소 높이(기준 44px 이상) */

  /* 모서리·그림자 */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(60, 45, 20, .06), 0 4px 14px rgba(60, 45, 20, .06);
  --shadow-2: 0 2px 6px rgba(60, 45, 20, .08), 0 18px 48px rgba(60, 45, 20, .14);

  /* 움직임: 차분하게 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: .15s; --dur-2: .3s; --dur-3: .7s;

  /* 포커스 */
  --focus: var(--gold-ink);
  --seal-shape: polygon(50% 0, 61% 3%, 72% 1%, 80% 9%, 91% 12%, 95% 24%, 100% 35%, 97% 47%, 100% 60%, 94% 70%, 92% 82%, 81% 88%, 72% 98%, 60% 96%, 50% 100%, 39% 96%, 28% 99%, 19% 89%, 8% 84%, 5% 72%, 0 61%, 3% 48%, 0 36%, 6% 25%, 9% 12%, 20% 9%, 29% 1%, 40% 4%);
}
