/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: var(--fs-body);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
}

.text-caption {
  font-size: var(--fs-caption);
  color: var(--color-ink-soft);
}

.text-soft {
  color: var(--color-ink-soft);
}

.font-display {
  font-family: var(--font-display);
}

/* 모바일 웹앱 기준 레이아웃 컨테이너: 데스크톱에서도 폰처럼 중앙 정렬 */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-surface);
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding: var(--space-5) var(--space-8) calc(var(--bottom-nav-offset, var(--bottom-nav-height)) + var(--space-8));
}

/* display를 지정하는 클래스(.list-card 등)와 함께 쓰여도 항상 숨겨지도록 보장 */
[hidden] {
  display: none !important;
}
