:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #2b2521;
  --muted: #7a6f66;
  --line: #e8e0d6;
  --accent: #b5532f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e7df;
  --ok: #2f7a4f;
  --ok-soft: #e4f2e9;
  --err: #b3261e;
  --err-soft: #fbe5e3;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.site-header nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: 15px; }
main.wrap { padding-top: 28px; padding-bottom: 60px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }

h1 { font-size: 30px; line-height: 1.3; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 36px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

.hero { padding: 36px 0 12px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.product .price { font-size: 28px; font-weight: 800; margin: 6px 0; }
.product ul { padding-left: 20px; margin: 10px 0 18px; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.btn { display: inline-block; border: 0; border-radius: 10px; padding: 13px 22px; font-size: 17px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-danger { background: var(--err); }
.btn-block { display: block; width: 100%; text-align: center; }
button[disabled], .btn[disabled] { opacity: .45; cursor: not-allowed; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; background: var(--accent-soft); }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--err-soft); color: var(--err); }
.errors { background: var(--err-soft); color: var(--err); border-radius: 10px; padding: 12px 16px 12px 34px; }

form .field { margin: 0 0 18px; }
label.title { display: block; font-weight: 700; margin-bottom: 6px; }
.help { color: var(--muted); font-size: 14px; margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: #fff; cursor: pointer; font-size: 15px; }
.choices input { margin-right: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.check input { margin-top: 6px; }

.status-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0; list-style: none; }
.status-bar li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #efe9e2; color: var(--muted); }
.status-bar li.done { background: var(--ok-soft); color: var(--ok); }
.status-bar li.now { background: var(--accent); color: #fff; font-weight: 700; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photos form { position: absolute; top: 6px; right: 6px; }

.song { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; background: #fff; }
.song audio, .song video { width: 100%; margin-top: 8px; }
.song.selectable { cursor: pointer; }
.song.selectable:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.draft-banner { background: #fff4cc; border: 1px solid #f0d77a; border-radius: 10px; padding: 10px 14px; font-size: 15px; }

/* 관리자 */
body.admin { font-size: 15px; }
body.admin .wrap { max-width: 1100px; }
.admin-tabs a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; border-radius: 999px; background: #efe9e2;
  color: var(--ink); text-decoration: none; font-size: 14px; }
.admin-tabs a.on { background: var(--accent); color: #fff; }
.two-col { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } h1 { font-size: 25px; } }
.inline { display: inline; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
pre.lyrics { white-space: pre-wrap; background: #faf7f2; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: inherit; }
textarea.mono { font-family: Consolas, "D2Coding", monospace; font-size: 14px; min-height: 320px; }
