/* Pretendard v1.3.9 기반, OFL 예약 이름 때문에 이름을 바꾼 변경본(Dalendar Web Sans). OFL 1.1, fonts/LICENSE.txt. 서브셋·이름 바꾸기: subset-fonts.sh. 같은 출처에서만 받는다. */
@font-face { font-family: "Dalendar Web Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/DalendarWebSans-Light.woff2") format("woff2"); }
@font-face { font-family: "Dalendar Web Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/DalendarWebSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Dalendar Web Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/DalendarWebSans-SemiBold.woff2") format("woff2"); }
/* 배치: 첫 화면만 "겉"(먹색 방사형, system.md 6.3), 나머지는 "속"(앱 토큰, 보는 사람 라이트·다크, 6.10). 좁은 화면은 media query. */
:root {
  /* 앱 토큰 (tokens.md 1장, A안) — 라이트 */
  --panel: #FAF8F3; --cell: #FFFEFB; --outside: #F5F2EA; --story: #F5F2EA;
  --text: #111318; --text2: #5C574E; --grid: #E7E2D7; --cborder: #DFD9CC; --cbg: #FFFEFB; --pborder: #CEC9BD;
  --shadow: rgba(0,0,0,.08);
  --show-light: block; --show-dark: none;
  /* 겉(첫 화면)은 모드와 상관없이 같다 */
  --ink: #111318; --moon: #EFE6D2; --btn: #D8CFBC; --btn-hover: #E0D7C4; --btn-press: #C4BCAC;
  --font: "Dalendar Web Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root {
  --panel: #15171C; --cell: #1B1E24; --outside: #17191E; --story: #111318;
  --text: #EFE6D2; --text2: #A39D91; --grid: #2E3138; --cborder: #373A43; --cbg: #21242B; --pborder: #34373F;
  --shadow: rgba(0,0,0,.4); --show-light: none; --show-dark: block; color-scheme: dark } }

body { margin: 0; background: var(--panel); color: var(--text); font-family: var(--font); font-synthesis: none; }
* { box-sizing: border-box; }

.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 40px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

/* ---------- 첫 화면 (6.3) ---------- */
.hero { background: radial-gradient(ellipse 70% 80% at 50% 34%, #1A1E2A 0%, #111318 60%, #070708 100%); color: var(--moon); text-align: center; padding-block: 112px 120px; }
.hero > * { display: block; margin-inline: auto; }
.hero .icon { width: 160px; height: 160px; }
.hero .wm { width: 178px; height: auto; margin-top: 32px; }
.hero h1 { margin: 24px 0 0; font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.hero .sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: rgba(239,230,210,.7); }
.dl { text-decoration: none; margin-top: 32px; display: inline-block; height: 40px; line-height: 40px; padding-inline: 28px; border-radius: 10px; background: var(--btn); color: var(--ink); font: 600 15px/40px var(--font); border: 0; cursor: pointer; }
.dl:hover { background: var(--btn-hover); } .dl:active { background: var(--btn-press); }
.hero .fine { margin: 12px 0 0; font-size: 12px; color: rgba(239,230,210,.5); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .hero { padding-block: 72px 80px; } }
/* 처음 한 번만 아이콘 → 로고 → 문구 → 버튼 페이드 (0.3초, 0.15초 간격) */
.f { animation: fade .3s ease-out both; }
.f2 { animation-delay: .15s; } .f3 { animation-delay: .3s; } .f4 { animation-delay: .45s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .f { animation: none; } }

/* ---------- 속 공통 글 (6.10) ---------- */
.inner { font-size: 16px; line-height: 1.6; }
.inner h2 { font-size: 28px; font-weight: 600; line-height: 1.3; margin: 0 0 16px; text-wrap: balance; }
.inner h3 { font-size: 17px; font-weight: 600; line-height: 1.45; margin: 0; }
.inner p, .inner li { margin: 0; }
.inner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inner code { font-family: var(--mono); font-size: 14px; }
.inner kbd { font-family: var(--font); font-size: 13px; padding: 1px 6px; border: 1px solid var(--cborder); border-radius: 4px; background: var(--cbg); white-space: nowrap; }

/* ---------- 세 약속 ---------- */
.promises { padding-block: 120px 0; display: grid; gap: 120px; }
.promise { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.promise .txt { grid-column: 1 / span 5; min-width: 0; }
.promise .pic { grid-column: 6 / span 7; min-width: 0; }
.promise.flip .txt { grid-column: 8 / span 5; grid-row: 1; }
.promise.flip .pic { grid-column: 1 / span 7; grid-row: 1; }
.promise ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--text); }
.promise ul li { padding-left: 14px; position: relative; }
.promise ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 4px; height: 4px; border-radius: 50%; background: var(--text2); }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--pborder); box-shadow: 0 10px 24px var(--shadow); background: var(--panel); }
.shot img { display: block; width: 100%; height: auto; }
.shot .l { display: var(--show-light); } .shot .d { display: var(--show-dark); }
.cap { margin-top: 10px; font-size: 12px; color: var(--text2); }
@media (max-width: 760px) {
  .promises { gap: 88px; padding-block: 88px 0; }
  .promise, .promise.flip { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .promise .txt, .promise .pic, .promise.flip .txt, .promise.flip .pic { grid-column: 1; grid-row: auto; }
  .inner h2 { font-size: 24px; }
}

.quiet { text-align: center; padding-block: 160px; }
.quiet .moon { width: 24px; height: 24px; color: var(--text2); display: block; margin: 0 auto 20px; }
.quiet ul { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 34em; margin-inline: auto; }
@media (max-width: 760px) { .quiet { padding-block: 120px; } }

/* ---------- 작은 것들 ---------- */
.small { border-top: 1px solid var(--grid); padding-block: 80px; }
.small ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.small li { min-width: 0; }
.small b { font-weight: 600; }
@media (max-width: 640px) { .small ul { grid-template-columns: minmax(0, 1fr); } .small { padding-block: 64px; } }

/* ---------- 이야기 ---------- */
.story { background: var(--story); text-align: center; padding-block: 200px; }
.story p { font-size: 20px; font-weight: 300; line-height: 1.5; margin: 0; }
.story .lines { display: grid; gap: 48px; }
@media (max-width: 640px) { .story { padding-block: 140px; } .story .lines { gap: 36px; } }

/* ---------- 설치 ---------- */
.install { padding-block: 96px 80px; }
.install .measure { max-width: 40em; }
.install ol { padding-left: 1.3em; display: grid; gap: 8px; margin: 0 0 28px; }
.install ol li::marker { color: var(--text2); font-variant-numeric: tabular-nums; }
.brew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.brew .lbl { color: var(--text); }
.brew .cmdbox { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.brew code { font-family: var(--mono); font-size: 13px; padding: 5px 10px; background: var(--cell); border: 1px solid var(--grid); border-radius: 6px; overflow-x: auto; white-space: nowrap; min-width: 0; }
.copy { height: 28px; padding-inline: 12px; border-radius: 6px; border: 1px solid var(--cborder); background: var(--cbg); color: var(--text); font: 400 13px var(--font); cursor: pointer; flex: none; }
.copy:hover { filter: brightness(.97); }
.notes { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--text); }
.req { margin-top: 24px !important; color: var(--text2); font-size: 15px; }
.req b { color: var(--text); font-weight: 600; }

/* ---------- 자주 묻는 것 ---------- */
.faq { border-top: 1px solid var(--grid); padding-block: 80px 96px; }
.faq dl { margin: 0; display: grid; gap: 28px; max-width: 40em; }
.faq dt { font-weight: 600; }
.faq dd { margin: 4px 0 0; }
.sel { user-select: all; }

/* ---------- 바닥 줄 ---------- */
.foot { border-top: 1px solid var(--grid); padding-block: 28px 32px; font-size: 13px; color: var(--text2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.foot a { color: var(--text2); }
.foot .dot { opacity: .6; }
.foot .tm { margin: 8px auto 0; font-size: 12px; color: var(--text2); }

/* ---------- 틀이 없는 실제 페이지 ---------- */
main.inner { background: var(--panel); }
.shot.ph-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 640 / 694; color: var(--text2); font-size: 14px; border-style: dashed; }
/* 머리 줄(6.10): 높이 56, 먹색 */
.top { background: #111318; color: #EFE6D2; }
.top .wrap { height: 56px; display: flex; align-items: center; gap: 10px; }
.top a { color: rgba(239,230,210,.7); text-decoration: none; font-size: 14px; }
.top a:hover { color: #EFE6D2; }
.top .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.top .brand img { height: 24px; width: auto; }
.top .brand .wm { height: 15px; }
.doc { padding-block: 64px 96px; }
.doc .measure { max-width: 40em; }
.doc h1 { font-size: 28px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc b { font-weight: 600; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--text2); font-size: 14px; margin-bottom: 32px; }
.doc section + section { margin-top: 48px; }
.doc section > h2:first-child { margin-top: 0; }

/* 포커스 링(키보드). 먹색 바탕(첫 화면, 머리 줄)에서는 달빛 색 */
a:focus-visible, .copy:focus-visible, .dl:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.hero a:focus-visible, .hero .dl:focus-visible, .top a:focus-visible { outline-color: var(--moon); }
/* 첫 화면 페이드는 세션 안에서 한 번만(6.3). head 의 작은 스크립트가 두 번째 방문부터 seen 을 붙인다. 스크립트가 없으면 늘 돈다. */
.seen .f { animation: none; }
/* 이름표(제목 위, 작게) */
.inner .tag { margin: 0 0 8px; font-size: 13px; color: var(--text2); }
