/* Metamatics — metamatics.kr */

:root {
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  /* 가장 긴 문장(618px)이 한 줄에 들어가는 폭. 좌우 여백 3rem을 빼면 본문 672px라
     폰트가 대체돼 조금 넓어져도 줄이 접히지 않는다. */
  max-width: 45rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  background: #fff;
  color: #000;
  font-family: "Pretendard Variable", Pretendard, -apple-system,
               BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
               system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #000;
  text-underline-offset: 3px;
}

p { margin: 0 0 1.6em; }

.name {
  /* 한 줄만 띄운다 — 본문 줄높이(1.9)와 같은 값 */
  margin: 0 0 1.9rem;
  font-size: 1.25rem;
  font-weight: 600;
}

h1, h2 {
  margin: 0 0 1.6em;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
}

section + section {
  margin-top: 4rem;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  margin-bottom: 0.4em;
}

/* 제목과 내용을 한 줄에 나란히 둔다 — 사이에서 줄이 바뀌지 않게 */
.row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1.5rem;
}

.row h2,
.row p,
.row ul {
  margin: 0;
}

@media (max-width: 480px) {
  body { padding: 3rem 1.25rem 4rem; }
  section + section { margin-top: 3rem; }
}
