/* 코드노트 공통 테마 — 각 페이지 <style> 뒤에 읽어서 색·글꼴·기본 부품을 하나로 맞춘다.
   원칙: 종이(악보 노트) 바탕 + 잉크 검정, 강조는 만년필 파랑 하나, 로고의 피크 노랑은 표시용.
   그라데이션·그림자·둥근 알약 남발 없이 1px 선과 여백으로 구분한다. */
:root {
  --bg: #f6f3ec; --card: #fffdf8; --border: #e4dfd3; --border-strong: #cdc6b5;
  --text: #1d1b16; --text2: #6b665b; --muted: #6b665b;
  --accent: #2a4d8f; --accent-bg: #e8eef8;
  --ok: #1f6f63; --warn: #c77700; --bad: #b3261e; --off: #9a9486;
  --cn-ink: #1d1b16; --cn-ink2: #6b665b; --cn-acc: #2a4d8f; --cn-acc-bg: #e8eef8;
  --cn-line: #e4dfd3; --cn-sun: #e7a93a; --cn-mint: #1f6f63; --cn-rose: #b5452b;
  --font: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); letter-spacing: -0.005em; }
button, input, select, textarea { font-family: inherit; }
::selection { background: #f6dfae; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 제목 줄 */
.titlebar { border-bottom: 1px solid var(--border-strong); }
.titlebar h1, .titlebar input { font-family: var(--font) !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--text); }
.titlebar input::placeholder { color: #b4ad9d; font-weight: 600; }

/* 칸 */
.block { background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: none; }
.block-head { font-size: 13px; color: var(--text2); }
.block-head > span:first-child { color: var(--text); font-weight: 600; }
.block h2 { color: var(--text); }

/* 버튼 — 기본은 종이색, 주요 동작은 잉크 검정 */
button, .btn, .icon-btn, .nav-link {
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
  border-radius: 6px; box-shadow: none; transition: background .12s, border-color .12s;
}
button:hover:not(:disabled), .btn:hover:not(:disabled), .icon-btn:hover:not(:disabled), .nav-link:hover { background: #f1ede3; border-color: #a9a291; }
button:disabled, .btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.primary, button.primary, .new-score-btn { background: var(--text) !important; border-color: var(--text) !important; color: #fff !important; }
.btn.primary:hover:not(:disabled), .new-score-btn:hover:not(:disabled) { background: #3a362d !important; }
.btn.on, .seg button.on, .seg .on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

/* 입력 */
input[type=text], input[type=number], input:not([type]), select, textarea {
  border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text);
}
input[type=text]:focus, input[type=number]:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-bg); }
.titlebar input:focus { box-shadow: none; }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea::placeholder, input::placeholder { color: #a8a192; }

/* 안내 띠 */
.notice-banner { background: #fbf6e8 !important; border: 1px solid #ead9ad !important; border-radius: 8px !important; color: #5a4f33 !important; }
.notice-banner b { color: #3d3420 !important; }

.empty { border-radius: 8px; border-color: var(--border-strong); }
.hint-text, .muted { color: var(--text2); }
.save-msg { color: var(--ok); font-weight: 600; }
.titlebar input { border: 0 !important; background: transparent !important; border-radius: 0 !important; padding-left: 0 !important; }
a { color: var(--accent); }
