/* Photomelier 사이트. 외부 폰트 없음 — 시스템 글꼴만 (방문자 IP가 글꼴 서버로 나가지 않게). */

:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #1e1a1b;
  --muted: #6b5f62;
  --line: #eadfd6;
  --wine: #8c2f45;
  --wine-ink: #ffffff;
  --gold: #ffc21a;
  --cream: #fff6d6;
  --link: #8c2f45;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171214;
    --surface: #221a1d;
    --ink: #f4ece6;
    --muted: #b3a5a8;
    --line: #3a2e32;
    --wine: #a23a54;
    --wine-ink: #ffffff;
    --cream: #3a3020;
    --link: #f0a3b6;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(ja) body, body:lang(ja) { font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; word-break: normal; }
body:lang(zh-Hans) { font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; word-break: normal; }
body:lang(zh-Hant) { font-family: -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; word-break: normal; }

a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; text-wrap: balance; }
.muted { color: var(--muted); }
mark.todo { background: #ffe58a; color: #3a2a00; padding: 0 4px; border-radius: 4px; }

.draft {
  background: #ffe58a; color: #3a2a00; text-align: center; font-size: 14px; padding: 6px 16px;
}

/* ---------- 머리 ---------- */
.top {
  max-width: 1040px; margin: 0 auto; padding: 16px;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand span { white-space: nowrap; }
.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--link); }
.links a[aria-current="page"] { color: var(--link); font-weight: 600; }
/* 좁은 화면: 메뉴는 둘째 줄로 내려 전부 보인다. */
@media (max-width: 560px) {
  .links { order: 3; width: 100%; gap: 20px; padding-top: 4px; border-top: 1px solid var(--line); padding: 10px 2px 0; }
}

.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); white-space: nowrap; font-size: 15px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; color: var(--muted); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 190px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.12);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.langs li a:hover, .langs li a:focus-visible { background: var(--bg); }
.langs li a[aria-current="true"] { font-weight: 700; color: var(--link); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- 첫 화면 ---------- */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px 0 48px; }
.hero-icon { border-radius: 22px; box-shadow: 0 16px 40px rgb(140 47 69 / 0.28); }
.eyebrow { margin: 20px 0 8px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); letter-spacing: -0.02em; }
.slogan {
  display: inline-block; margin: 4px 0 20px; padding: 6px 16px; border-radius: 999px;
  background: var(--wine); color: var(--wine-ink); font-weight: 700;
}
.lead { max-width: 560px; margin: 0 0 16px; font-size: 18px; color: var(--muted); }
.store { font-size: 15px; color: var(--muted); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .lead { margin-inline: auto; }
}

/* 앱 화면: 휴대폰 틀. 캡처가 없으면 같은 크기의 빈 틀. */
.phone {
  margin: 0 auto; width: min(280px, 72vw); aspect-ratio: 402 / 874; border-radius: 40px; padding: 8px;
  background: #1b1517; box-shadow: 0 24px 60px rgb(30 26 27 / 0.22), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone img, .phone picture { display: block; width: 100%; height: 100%; border-radius: 32px; object-fit: cover; }
.phone-empty { display: grid; place-items: center; text-align: center; }
.phone-empty span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 32px; padding: 24px;
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--bg) 14px 28px);
  color: var(--muted); font-size: 14px;
}
.phone-empty code { font-size: 12px; }
.doc .phone { width: min(260px, 70vw); margin: 20px auto 28px; }

.features ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

/* 기능 한 줄: 글 + 화면, 줄마다 좌우가 바뀐다. */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0 0; }
.row.flip .row-text { order: 2; }
.row h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.01em; }
.row .eyebrow { margin-top: 0; color: var(--link); }
.row ul { padding-left: 1.2em; }
.row li { margin: 6px 0; }
@media (max-width: 800px) {
  .row { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .row.flip .row-text { order: 0; }
}
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

.callout {
  margin: 72px 0 0; padding: 32px 24px; border-radius: var(--radius); text-align: center;
  background: var(--cream); border: 1px solid var(--line);
}
.callout p { max-width: 640px; margin: 0 auto 16px; }
.button {
  display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--wine); color: var(--wine-ink);
  text-decoration: none; font-weight: 600;
}

.home-faq { max-width: 760px; margin: 64px auto 0; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 17px; margin-bottom: 6px; }
.qa p { margin: 6px 0; }
.closing { text-align: center; margin: 64px auto 0; max-width: 640px; }
.closing img { border-radius: 16px; }

/* ---------- 문서 ---------- */
.doc { max-width: 760px; padding-top: 24px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); }
.doc h2 { font-size: 21px; margin-top: 2em; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; margin-top: 1.6em; }
.crumb { margin: 0 0 4px; font-size: 15px; }
.crumb a { text-decoration: none; }
.crumb a::before { content: "← "; }
.tagline { font-size: 18px; color: var(--muted); margin-top: 0; }
.note { padding: 12px 16px; border-left: 4px solid var(--wine); background: var(--surface); border-radius: 0 10px 10px 0; }
.guide-cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.guide-cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.guide-cards a:hover { border-color: var(--wine); }
.guide-cards strong { display: block; margin-bottom: 4px; }
.guide-cards span { color: var(--muted); font-size: 15px; }
.more-guides { margin-top: 56px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.summary { margin: 24px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.summary h2 { margin-top: 0; font-size: 18px; }
.summary ul { margin: 0; }
.toc ol { padding-left: 1.3em; columns: 2 260px; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; background: var(--surface); }
.facts dt { padding: 10px 14px; font-weight: 600; background: var(--bg); }
.facts dd { margin: 0; padding: 10px 14px; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; } }

/* ---------- 바닥 ---------- */
.foot { max-width: 1040px; margin: 56px auto 0; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------- 뿌리(언어 고르기) ---------- */
.chooser { text-align: center; padding: 72px 16px; }
.chooser img { border-radius: 22px; }
.chooser ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chooser li a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; }

/* ---------- 출시 준비 중 (soon.mjs) ---------- */
.soon { max-width: 640px; text-align: center; padding: 48px 16px 24px; }
.soon .hero-icon { display: block; margin: 0 auto; border-radius: 26px; box-shadow: 0 16px 40px rgb(140 47 69 / 0.28); }
.soon-badge {
  display: inline-block; margin: 28px 0 14px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600;
}
.soon h1 { font-size: clamp(30px, 6vw, 48px); letter-spacing: -0.02em; }
.soon .lead { margin-inline: auto; }
.soon-foot { text-align: center; border-top: 0; margin-top: 24px; }
