/* ---------------- 글꼴: 제목은 고운돋움, 본문은 프리텐다드 ---------------- */
/* 고운돋움은 굵기가 하나(400)뿐이라 제목은 400으로 쓰고 크기·자간으로 위계를 준다(가짜 굵게 방지). */

:root {
  --font-heading: 'Gowun Dodum', 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-body: var(--font);
  --font-hand: 'Nanum Pen Script', var(--font-heading);
  --serif: var(--font-heading);          /* 예전에 명조로 보이던 질문·인용 글자도 고운돋움으로 */

  /* 질문(프롬프트) 화면의 따뜻한 색 */
  --warm-text: #4D4038;
  --warm-muted: #85766D;
  --warm-bg: #FCF8F3;
  --warm-accent: #D99A91;
  --warm-accent-ink: #A8564B;          /* 흰 바탕에서 읽히는 진한 강조색(글자용) */
  --warm-line: #EDE3DA;
  --warm-card: #FFFFFF;
}
:root[data-theme="dark"] {
  --warm-text: #EDE3DA;
  --warm-muted: #B3A398;
  --warm-bg: #1C1916;
  --warm-accent: #D99A91;
  --warm-accent-ink: #E8B1A9;
  --warm-line: #3A322C;
  --warm-card: #25201C;
}

body { word-break: keep-all; }

/* 제목들 */
.side-brand, .band-title, .head-title, .today-date b, .sched-title, .notes-title, .notes-view-title, .task-col-head h3,
.modal-head h2, .pack-head h2, .section-title, .journal-info h1, .journal-info h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.side-brand, .band-title { letter-spacing: -0.04em; }

/* 일기 본문: 읽기 좋은 줄 간격, 제목 줄은 고운돋움 */
.ed { font-family: var(--font-body); line-height: 1.8; }
.ed > :first-child:is(p), .ed h1, .ed h2, .ed h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.03em; }
.card-title { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.02em; }
.note-title, .note-editor .nc-title { font-family: var(--font-heading); font-weight: 400; }

/* ---------------- 프롬프트(질문) — 따뜻한 종이 느낌 ---------------- */

/* 질문 글자는 손글씨(나눔손글씨 펜). 글자가 작게 보이는 서체라 1.3배쯤 키운다. */
.prompt-text { font-family: var(--font-hand); font-weight: 400; font-size: 1.6rem; line-height: 1.35; letter-spacing: 0; }
.prompt-card .prompt-text { font-size: 1.85rem; }

/* 오른쪽: 오늘의 질문 */
.detail-empty.prompt-detail { background: var(--warm-bg); color: var(--warm-text); gap: 18px; }
.prompt-detail .prompt-detail-label { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--warm-muted); }
.prompt-detail .prompt-text.big {
  font-family: var(--font-hand);
  font-size: clamp(34px, 5.2vw, 50px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--warm-text);
  max-width: 16em;
}
.prompt-detail .btn.link { color: var(--warm-accent-ink); font-size: 16px; }
.prompt-detail .muted { color: var(--warm-muted); font-size: 15px; }

/* 왼쪽: 팩 안의 질문 목록 → 카드(답 고르기 칸 모양) */
.app[data-section="prompts"] .listpane { background: var(--warm-bg); }
.app[data-section="prompts"] .pack-head { background: var(--warm-bg); border-bottom-color: var(--warm-line); }
.prompt-row {
  width: auto;
  margin: 10px 14px;
  padding: 16px 20px;
  border: 1px solid var(--warm-line);
  border-radius: 18px;
  background: var(--warm-card);
  color: var(--warm-text);
  transition: border-color .15s, box-shadow .15s;
}
.prompt-row:first-of-type { margin-top: 14px; }
.prompt-row:hover { background: var(--warm-card); border-color: var(--warm-accent); box-shadow: 0 2px 10px rgba(77, 64, 56, .06); }
.prompt-row:focus-visible { outline: 2px solid var(--warm-accent); outline-offset: 2px; }
.prompt-row-text { font-family: var(--font-hand); font-size: 23px; line-height: 1.35; letter-spacing: 0; font-weight: 400; color: var(--warm-text); }
.prompt-row-go { color: var(--warm-accent-ink); font-family: var(--font-body); }

/* 프롬프트 갤러리 목록도 같은 바탕 */
.app[data-section="prompts"] .tabs { background: var(--warm-bg); }
.app[data-section="prompts"] .section-title { color: var(--warm-text); }
.app[data-section="prompts"] .pack-link { color: var(--warm-text); }
.app[data-section="prompts"] .pack-link:hover { background: rgba(217, 154, 145, .10); }
.detail:has(.prompt-detail) { background: var(--warm-bg); }
.detail:has(.prompt-detail) .detail-head { background: var(--warm-bg); border-bottom-color: transparent; }
