/* 공통 디자인 토큰 · 폰트 · 버튼 — 먹(검정) · 한지(미색) · 주홍(낙관) · 금박 */
@import url('/fonts/east-sea-dokdo/korean-400.css');
@import url('/fonts/song-myung/korean-400.css');
@import url('/fonts/song-myung/latin-400.css');
@import url('/fonts/nanum-pen-script/korean-400.css');
@import url('/fonts/gowun-batang/400.css');
@import url('/fonts/gowun-batang/700.css');
@import url('/fonts/black-han-sans/korean-400.css');

:root {
  --ink: #120d0a;
  --ink-2: #1d1612;
  --ink-3: #2a201a;
  --paper: #f4ead3;
  --paper-2: #e9dbbd;
  --text-on-paper: #2b1f17;
  --text-on-ink: #f1e4c8;
  --muted: #a8977f;
  --red: #c23b22;
  --red-2: #8e2414;
  --red-glow: #ff6b4a;
  --gold: #d6a85a;
  --gold-2: #9b7330;
  --wood: #6b4423;
  --radius: 16px;
  --brush: 'East Sea Dokdo', 'Song Myung', serif;
  --serif: 'Song Myung', 'Gowun Batang', serif;
  --body: 'Gowun Batang', serif;
  --pen: 'Nanum Pen Script', 'Gowun Batang', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--body); color: var(--text-on-ink); background: var(--ink); -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* 붉은 낙관 도장 */
.stamp {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 6px;
  background: var(--red); color: #fff3e6; font-family: var(--brush); font-size: 26px; line-height: 1;
  transform: rotate(-5deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 2px 0 var(--red-2);
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 22px; cursor: pointer;
  font-family: var(--serif); font-size: 17px; letter-spacing: .5px; line-height: 1.2;
  background: linear-gradient(180deg, #e2563a, #b9341d); color: #fff4ea;
  box-shadow: 0 4px 0 var(--red-2), 0 10px 24px rgba(0,0,0,.35); transition: transform .1s, box-shadow .1s, filter .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-2); }
.btn.gold { background: linear-gradient(180deg, #f0c477, #cf9a44); color: #3b2108; box-shadow: 0 4px 0 #8a5d1c, 0 10px 24px rgba(0,0,0,.35); }
.btn.ghost { background: transparent; color: var(--text-on-ink); border: 1.5px solid rgba(214,168,90,.55); box-shadow: none; }
.btn.ghost:hover { background: rgba(214,168,90,.12); }
.btn.sm { padding: 9px 14px; font-size: 14.5px; border-radius: 10px; }
.btn.block { width: 100%; }

/* 붓 밑줄 */
.brushline { display: block; width: 180px; height: 12px; margin: 6px auto 0; background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C40 4 70 16 110 9 S190 6 230 10 S285 8 297 11 L295 15 C260 13 240 18 200 15 S120 19 80 16 S20 20 5 17Z' fill='%23c23b22'/%3E%3C/svg%3E"); }

/* 오행 색 */
.el-wood { background: #3d7f55; } .el-fire { background: #c2412d; } .el-earth { background: #b58a35; } .el-metal { background: #8a929c; } .el-water { background: #2c4a7d; }
