/* W.Deluna Atelier — 편집기 공통 스타일 */
@font-face { font-family: "Pretendard"; src: url(../fonts/Pretendard-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url(../fonts/Pretendard-Medium.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/CormorantGaramond-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/CormorantGaramond-LightItalic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --paper: #f4f0e8; --paper-2: #ece6da; --card: #fbf9f5; --ink: #1a1916; --ink-2: #4a463f; --mute: #8b8378;
  --line: #e2dacd; --line-2: #d4cbbb; --lune: #b08d57; --lune-2: #8a6c3e; --lune-soft: #efe5d3;
  --night: #121318; --night-2: #1c1d24; --ok: #4f7a5a; --warn: #b5603f;
  --serif: "Cormorant", "Gowun Batang", Georgia, serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --r: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 300; }
.it { font-style: italic; }
.eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }
.hidden { display: none !important; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 500; font-size: 14px; transition: .2s var(--ease); white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.ink:hover { background: #000; }
.btn.lune { background: linear-gradient(135deg, #c9a774, #a0804e); color: #fff; border: 0; box-shadow: 0 6px 20px -8px #8a6c3e; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: var(--paper-2); color: var(--ink-2); }
.chip.sig { background: #1a1916; color: #e9d9b8; }
.chip.lock::before { content: ""; width: 9px; height: 10px; background: currentColor; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 10"><path d="M2 4V3a2.5 2.5 0 0 1 5 0v1h1v6H1V4h1Zm1 0h3V3a1.5 1.5 0 0 0-3 0v1Z"/></svg>') center/contain no-repeat; }

/* 입력 */
.field { display: grid; gap: 6px; margin: 0 0 18px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field > small { color: var(--mute); font-size: 12px; }
.input, .field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.75; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lune); box-shadow: 0 0 0 4px #b08d5722; }
.field input::placeholder, .field textarea::placeholder { color: #b9b1a4; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; margin: 0; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px #0003; }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { left: 16px; }

/* 모달 */
.scrim { position: fixed; inset: 0; background: #0d0d10b3; backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .25s; }
.sheet { width: min(760px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--paper); border-radius: 24px; padding: 34px; position: relative; box-shadow: 0 40px 120px -30px #000; animation: rise .35s var(--ease); }
.sheet h2 { font: 300 38px/1.1 var(--serif); margin: 6px 0 8px; letter-spacing: -.01em; }
.sheet .x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* 요금제 카드 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 22px; }
.plan { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; transition: .2s var(--ease); }
.plan:hover { border-color: var(--ink); transform: translateY(-2px); }
.plan.hot { background: var(--night); color: #eee6d8; border-color: var(--night); }
.plan.hot .mute { color: #a59d90; }
.plan b { font: 300 26px/1 var(--serif); letter-spacing: -.01em; }
.plan .price { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.plan .was { text-decoration: line-through; color: var(--mute); font-size: 13px; margin-left: 6px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.plan li::before { content: "— "; color: var(--lune); }
.mute { color: var(--mute); }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 80; box-shadow: 0 10px 30px #0004; animation: rise .3s var(--ease); max-width: calc(100vw - 40px); }
