/* 다락방 안내 문서(소개 · 개인정보처리방침)가 함께 쓰는 틀.
   loftbear.css 위에 얹습니다. 정문(index.html)이 인라인으로 덮어쓰는
   서체와 낮 팔레트를 여기서도 똑같이 맞춥니다 — loftbear.css 만으로는
   낮 모드가 예전 참나무 갈색으로 나옵니다. */

@font-face {
  font-family: "Eulyoo1945";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Eulyoo1945-Regular.woff2") format("woff2"),
       url("fonts/Eulyoo1945-Regular.woff") format("woff");
}

:root {
  --font-display: "Eulyoo1945", "Inter", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --font-body: "Inter", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

:root[data-lb-theme="light"] {
  --bg: #f6f5f1;
  --bg-raised: #fbfaf7;
  --bg-sunken: #eeece6;
  --surface: #fbfaf7;
  --line: #e0ddd5;
  --line-strong: #b9c7bd;
  --text: #1f3f33;
  --text-muted: #3d5a4d;
  --text-faint: #516a5e;
  --accent: #2f6a4c;
  --logo: #1f3f33;
}

body { background: var(--bg); color: var(--text); }

.doc-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  max-width: 720px; margin-inline: auto;
  padding: var(--sp-6) var(--gutter) 0;
}
/* 로고 파일을 마스크로 써서 테마 색을 입힙니다. <img> 로 넣으면 검정으로 고정됩니다 */
.doc-top__brand {
  display: block; width: 116px; aspect-ratio: 1144 / 262;
  background: var(--logo);
  -webkit-mask: url("loftbear-logo.svg") no-repeat center / contain;
          mask: url("loftbear-logo.svg") no-repeat center / contain;
}
.doc-top__home {
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.08em;
  color: var(--text-faint); text-decoration: none;
}
.doc-top__home:hover { color: var(--accent); }

.doc {
  max-width: 720px; margin-inline: auto;
  padding: var(--sp-8) var(--gutter) var(--sp-9);
}
.doc__eyebrow {
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.16em;
  color: var(--text-faint);
}
.doc h1 {
  margin: var(--sp-3) 0 var(--sp-4);
  font: 400 var(--fs-2xl)/1.3 var(--font-display);
  text-wrap: balance; word-break: keep-all;
}
.doc__lede { margin: 0; font-size: var(--fs-md); line-height: 1.7; color: var(--text-muted); word-break: keep-all; }
.doc__meta {
  margin: var(--sp-4) 0 0;
  font: 400 var(--fs-xs)/1.5 var(--font-mono); letter-spacing: 0.06em;
  color: var(--text-faint);
}

.doc h2 {
  margin: var(--sp-8) 0 var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font: 400 var(--fs-lg)/1.35 var(--font-display);
  word-break: keep-all;
}
.doc h3 { margin: var(--sp-5) 0 var(--sp-2); font: 600 var(--fs-base)/1.4 var(--font-body); }
.doc p, .doc li { line-height: 1.8; word-break: keep-all; }
.doc p { margin: 0 0 var(--sp-3); }
.doc ul, .doc ol { margin: 0 0 var(--sp-3); padding-left: 1.3em; }
.doc li + li { margin-top: 4px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc strong { font-weight: 600; color: var(--text); }

.doc table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0 var(--sp-4); font-size: var(--fs-sm); }
.doc th, .doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.doc th { font: 500 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--text-faint); }
.doc__wide { overflow-x: auto; }

.doc-foot {
  max-width: 720px; margin-inline: auto;
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  font: 400 var(--fs-xs)/1.6 var(--font-mono); letter-spacing: 0.04em;
  color: var(--text-faint);
}
.doc-foot a { color: var(--text-muted); text-decoration: none; }
.doc-foot a:hover, .doc-foot a[aria-current="page"] { color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
