/* Kor-sona 사이트 공용 스타일: 한지 바탕, 먹 글씨, 붉은 낙관 */
:root {
  --bg: #f5f1e8;
  --surface: #fbf8f2;
  --text: #1d1b18;
  --muted: #5f5850;
  --accent: #b3352b;
  --accent-strong: #9a2a21;
  --line: #e4dccd;
  --placeholder-bg: #fff2c2;
  --placeholder-text: #6b4e00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181614;
    --surface: #221f1c;
    --text: #f1ece3;
    --muted: #bdb3a6;
    --accent: #e0675b;
    --accent-strong: #f08a7f;
    --line: #37322c;
    --placeholder-bg: #4a3d12;
    --placeholder-text: #ffe8a3;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body { line-break: strict; }

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 머리 */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.site-nav a:hover { color: var(--text); }

.lang-nav { display: flex; gap: 4px; font-size: 14px; }
.lang-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-nav a[aria-current="true"] { color: var(--text); border-color: var(--text); font-weight: 700; }

.nav-group { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }

/* 본문 */
main { padding: 40px 0 56px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); }

/* 첫 페이지 */
.hero { text-align: center; padding: 16px 0 8px; }
.hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 8px 24px rgba(29, 27, 24, 0.16); }
.hero h1 { margin-top: 20px; font-size: 36px; }
.hero .subtitle { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.badge {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 12px;
  margin-top: 4px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0;
}
.steps strong { display: block; margin-bottom: 2px; }

/* 요약 상자 */
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 8px;
}
.summary ul { margin: 0; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }

/* 사용자가 채울 칸 */
.placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* 발 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  main { padding-top: 28px; }
}
