/* V3 리셋·타이포·버튼 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Nanum Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 450;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

input, select, textarea, button {
  font-family: inherit;
  font-size: 15px;
  color: inherit;
  font-weight: 450;
}
input, select, textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #ffccbc;
  border-color: var(--peach);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  background: var(--surface);
  color: var(--text);
  transition: transform .1s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--peach); color: #fff; box-shadow: var(--sh-cta); }
.btn.primary:hover { background: var(--peach-2); }
.btn.ghost { background: var(--surface); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--berry); color: #fff; }
.btn.sm { padding: 6px 18px; font-size: 12.5px; border-radius: var(--r-sm); min-width: 60px; justify-content: center; }

.grid { display: grid; gap: var(--sp-4); }
.flex { display: flex; gap: var(--sp-3); align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.spacer { flex: 1; }
.mt-4 { margin-top: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-4); }
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden { display: none !important; }
