/* 색은 앱 apps/mobile/src/constants/theme.ts의 브랜드 토큰과 같다. 바꾸면 둘을 같이 고친다. */
:root {
  color-scheme: light dark;
  --paper: #FAF5ED;
  --surface: #FFFCF7;
  --border: #E7DED4;
  --ink: #352A25;
  --ink-secondary: #756861;
  --link: #A95135;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211B18;
    --surface: #2D2521;
    --border: #493C34;
    --ink: #FAF5ED;
    --ink-secondary: #BEB0A5;
    --link: #E8B49F;
  }
}

* { box-sizing: border-box; }

/* 앱은 Pretendard를 쓰지만 웹은 글꼴 파일을 받지 않는다 — 외부 요청 없이 바로 뜨게. 설치돼 있으면 쓴다. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  /* 한글은 단어(띄어쓰기) 단위로 줄바꿈한다(10-ui). 한 줄보다 긴 단어만 글자 단위로 끊는다. */
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 3px; }

/* 첫 화면 */
.intro {
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.intro-icon { width: 96px; height: 96px; border-radius: 22px; }
.intro-headline { margin: 28px 0 12px; font-size: 28px; line-height: 1.4; font-weight: 700; }
.intro-name { margin: 0; color: var(--ink-secondary); font-size: 15px; font-weight: 600; }
.intro-links { margin-top: 56px; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; }
.intro-links a { display: inline-block; padding: 10px 4px; }
.intro-contact { margin: 4px 0 0; color: var(--ink-secondary); font-size: 14px; }

/* 읽는 문서(방침·지원) */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.doc-home { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.doc-home img { width: 28px; height: 28px; border-radius: 7px; }
.doc h1 { margin: 24px 0 4px; font-size: 26px; line-height: 1.4; }
.doc-meta { margin: 0 0 24px; color: var(--ink-secondary); font-size: 14px; }
.doc section {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px;
}
.doc h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.doc h3 { margin: 16px 0 4px; font-size: 15px; }
.doc p { margin: 0; }
.doc p + p, .doc p + ul, .doc ul + p, .doc .table-wrap + p, .doc p + .table-wrap { margin-top: 10px; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li + li { margin-top: 4px; }
.note { color: var(--ink-secondary); }
.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 8px 12px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; white-space: nowrap; }
.doc tr:last-child td { border-bottom: none; }
.doc-footer { margin-top: 32px; text-align: center; font-size: 14px; color: var(--ink-secondary); }
