/* 나그네캠프 — 공용 스타일
   간격: 0 2 4 8 12 16 24 32 40 48 64 80 96
   글자: 12/16 14/20 16/24 18/28 20/28 24/32 30/36 36/40 48/1 60/1 72/1
   모서리: 4 6 8 12 16 24 999 */

:root {
  --paper: #FBF8F3;
  --paper-2: #F3EEE6;
  --card: #FFFFFF;
  --ink: #1E1914;
  --ink-2: #5B524A;
  --ink-3: #8F857B;
  --line: #ECE5DA;
  --line-strong: #DCD2C3;
  --orange: #D4561A;
  --orange-hover: #BC4812;
  --orange-ink: #A8410E;
  --orange-soft: #FCE7D9;
  --shadow-sm: 0 2px 8px rgba(30, 25, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 25, 20, 0.08);
  --shadow-lg: 0 24px 64px rgba(30, 25, 20, 0.12);
  --night: #131209;
  --night-2: #1F1F1F;
  --ok: #2F6B3B;
  --ok-soft: #DCEBD8;
  --err: #B3261E;
  --err-soft: #F7DCD8;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Toss Product Sans", "Pretendard Variable", "Pretendard", "Tossface", -apple-system, BlinkMacSystemFont, "Bazier Square", "Noto Sans KR", "Segoe UI", "Apple SD Gothic Neo", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange-soft); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--ink); color: var(--card);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-64px);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.btn i { font-size: 20px; }
.btn:active { transform: scale(0.96); }
.btn-lg { padding: 12px 24px; }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 12px; border-radius: 8px; }
.btn-sm i { font-size: 16px; }
.btn-primary { background: var(--orange); color: #FFFFFF; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-dark:hover { background: #3A2E25; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: transparent; color: var(--err); border-color: #E3B5B0; }
.btn-danger:hover { background: var(--err-soft); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-light { background: var(--card); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; }

/* ── 상단 내비게이션 ── */
.nav-wrap {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 210, 195, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-lg); }
.nav-logo { display: flex; align-items: center; border-radius: 8px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--paper-2); font-weight: 600; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 96px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease), visibility 0s; }
.mobile-menu a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; color: var(--ink);
  opacity: 0; transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.mobile-menu a.btn { display: flex; justify-content: center; border-bottom: 0; margin-top: 24px; font-size: 16px; line-height: 24px; padding: 12px 24px; color: #FFFFFF; }
.mobile-menu.open a { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .nav { gap: 8px; width: 100%; justify-content: space-between; }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ── 섹션 공통 ── */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--orange-ink);
}
.eyebrow i { font-size: 16px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin-top: 12px; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 30px; line-height: 36px; }
  .section-head p { font-size: 16px; line-height: 24px; }
}

/* ── 스크롤 등장 ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 600ms linear; }
  .mobile-menu a { transform: none; }
  .nav-toggle span, .btn, .skip-link { transition-duration: 200ms; }
}

/* ── 푸터 ── */
.footer { background: var(--night); color: #CFC6B8; padding: 48px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #F4ECDD; font-weight: 600; }
.footer-brand img { width: 40px; height: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; text-decoration: none; color: #CFC6B8;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.footer-links a:hover { background: #272727; color: #FFFFFF; }
.footer-copy { width: 100%; font-size: 12px; line-height: 16px; color: #8F877B; }

/* ── 문서 페이지(약관 등) ── */
.doc { max-width: 720px; margin: 0 auto; padding: 96px 24px; }
.doc h1 { margin-top: 32px; font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.doc .doc-meta { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.doc h2 { margin-top: 40px; font-size: 20px; line-height: 28px; }
.doc p, .doc li { margin-top: 12px; color: var(--ink-2); }
.doc ul { padding-left: 24px; margin: 0; }
.doc .back { margin-top: 48px; }
