@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');


/* 코트라 희망체 — KOTRA 제공 폰트. 상업적 사용 가능 / 수정·재배포 금지이므로
   파일을 복사하지 않고 눈누 CDN 주소에서 그대로 불러온다(서브셋·변형 금지). */
@font-face {
  font-family: 'KotraHope';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2110@1.0/KOTRAHOPE.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}
/* 폰트 로딩 전 임시 글꼴: 기기에 있는 한글 고딕을 희망체 글자 폭(약 76%)에 맞춰 보여줘서
   폰트가 바뀔 때 제목 줄바꿈이 흔들리지 않게 한다. */
@font-face {
  font-family: 'KotraHope Fallback';
  src: local('AppleSDGothicNeo-Regular'), local('Apple SD Gothic Neo'), local('Malgun Gothic'), local('MalgunGothic'), local('NotoSansKR-Regular'), local('Noto Sans KR'), local('NotoSansCJKkr-Regular'), local('Noto Sans CJK KR');
  size-adjust: 76%;
}

:root {
  --cream: #fff5e8;
  --cream-2: #fbead3;
  --paper: #ffffff;
  --ink: #29251f;
  --muted: #8c8378;
  --line: #efe2cf;
  --pink: #ff7185;
  --pink-deep: #ee5a70;
  --pink-soft: #ffe4e8;
  --yellow: #ffc94a;
  --yellow-soft: #fff1c9;
  --green: #3c9a66;
  --green-soft: #dff3e7;
  --sky-soft: #e6f2fa;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(120, 85, 30, 0.08);
  --shadow-lg: 0 12px 40px rgba(120, 85, 30, 0.16);
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --hope: 'KotraHope', 'KotraHope Fallback', var(--font);
  --caps: 'Jost', var(--font);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }
img { display: block; }
a { color: inherit; }
.hidden { display: none !important; }

/* 브랜드 워드마크 */
.brand { font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; box-shadow: 10px 0 0 -1px var(--yellow); margin-right: 8px; }
.brand span { font-weight: 400; color: var(--muted); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(255, 113, 133, .38); }
.btn.primary:hover { background: var(--pink-deep); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn.yellow { background: var(--yellow); box-shadow: none; }
.btn.danger { color: var(--pink-deep); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 카드·입력 */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
label.field { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
label.field > span { display: block; margin-bottom: 6px; }
label.field small { font-weight: 500; }
.input, textarea.input, select.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf9; outline: none; transition: border .15s, box-shadow .15s; font-weight: 500; }
.input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
textarea.input { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 12px; } .row > * { flex: 1; min-width: 0; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--yellow-soft); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.pink { background: var(--pink-soft); color: var(--pink-deep); }
.chip.sky { background: var(--sky-soft); color: #2a6f9b; }
.chip.gray { background: #f1ebe2; color: var(--muted); }

/* 토스트 */
#toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .25s; z-index: 100; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 모달 */
.modal-bg { position: fixed; inset: 0; background: rgba(41, 37, 31, .45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; animation: fade .2s; }
.modal { background: var(--paper); border-radius: 22px; padding: 28px; width: 100%; max-width: 500px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2, 1.2, .4, 1); }
.modal h2 { font-family: var(--hope); font-weight: 400; font-synthesis: none; font-size: 24px; margin-bottom: 4px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96) translateY(10px); opacity: 0; } }

/* 로고 이미지 (JW 엠블럼 + 별). 배경 투명 PNG */
.brand .mark { height: 36px; width: auto; display: block; }
.brand-full { display: block; margin: 0 auto; width: min(220px, 60%); height: auto; }
@media (max-width: 640px) { .brand .mark { height: 30px; } }
