/* ==========================================================================
   reset.css - 브라우저 기본 스타일 초기화

   여기에는 "브라우저마다 다른 기본값을 지우는 규칙"만 둔다.
   색상·글꼴·간격 등 프로젝트의 디자인 값은 style.css에서 다룬다.

   불러오는 순서 : reset.css → font.css → style.css
   ========================================================================== */

/* 여백·테두리를 폭에 포함시켜 계산을 단순하게 만든다 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* 모바일 가로/세로 전환 시 글자가 임의로 커지는 것을 막는다 */
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

/* 제목·문단·목록의 기본 마진을 없앤다.
   h4~h6를 빠뜨리면 브라우저 기본 마진(약 25px)이 남아 카드 안이 벌어진다 */
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
dl, dd,
ol, ul {
	margin: 0;
}

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

/* 이미지를 인라인이 아닌 블록으로 두어 아래 여백이 생기지 않게 한다 */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

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

address {
	font-style: normal;
}

/* 폼 요소는 글꼴을 물려받지 않으므로 명시한다 */
button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}