/* 강주명 레슨 — 공통 디자인 값과 부품 */
:root {
  --ivory: #F6F5F1;
  --ink: #141311;          /* 짙은 우드 블랙 */
  --maple: #9A5F22;        /* 포인트 */
  --maple-on-dark: #D59A52;
  --ball-blue: #2E54D4;    /* 예약·확정 버튼 전용 */
  --line: #E3E1D9;
  --sub: #5F636C;
  --white: #FFFFFF;
  --danger: #A3341F;
  --f-title: 'Noto Serif KR', serif;
  --f-body: 'Noto Sans KR', system-ui, sans-serif;
  --f-num: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ink);   /* 체크박스·라디오도 파란색 대신 우드 블랙 (파란색은 예약·확정 버튼 전용) */
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* 브랜드 */
.brand { text-align: center; }
.brand-name { font-family: var(--f-title); font-weight: 900; font-size: 2rem; margin: 0; letter-spacing: 0.02em; line-height: 1.3; }
.brand-sub { font-family: var(--f-num); color: var(--maple); letter-spacing: 0.08em; margin: 0.2rem 0 0; }
.hero-photo { display: block; width: 100%; max-width: 420px; margin: 0 auto; background: #fff; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 32px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.num { font-family: var(--f-num); letter-spacing: 0.02em; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 900; line-height: 1.35; margin: 0; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn-blue { background: var(--ball-blue); border-color: var(--ball-blue); color: #fff; }
.btn-danger { color: var(--danger); border-color: #E6C9C1; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--maple); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 입력 */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white);
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus { outline: 2px solid var(--maple); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.radios input:checked + span { font-weight: 700; }
.radios label:has(input:checked) { border-color: var(--ink); }

/* 카드·목록 */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--sub); white-space: nowrap; }
.badge-maple { color: var(--maple); border-color: #E7D3BD; background: #FBF5EE; }
.plus { color: var(--maple); }
.minus { color: var(--ink); }
.empty { padding: 24px 0; text-align: center; color: var(--sub); }
.error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
.notice { padding: 10px 12px; border-radius: var(--radius); background: #FBF5EE; border: 1px solid #E7D3BD; font-size: 14px; }

/* 대화상자 */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--ivory); color: var(--ink); }
dialog::backdrop { background: rgba(20, 19, 17, 0.45); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.dlg-body { padding: 8px 16px 16px; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 16px 16px; flex-wrap: wrap; }
.dlg-x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--sub); }
