/* ============================================================
   pincha 웹 — 공통 브랜드 스타일
   컬러 토큰 출처: pincha-app/lib/core/theme/pincha_colors.dart
   타이포: pincha-app/docs/design.md §3 (Pretendard / Instrument Serif Italic)
   ============================================================ */

:root {
  /* Primary */
  --dark: #182018;       /* 브랜드 목소리 — 다크 섹션 배경 */
  --forest: #3D5440;     /* 브랜드 컬러 — CTA, 활성 */
  --forest-light: #6A8A6E;
  --gold: #C4A55A;       /* 포인트 — 심볼 중심, 뱃지, 프리미엄 */
  /* Neutral */
  --parchment: #F5F0E4;  /* 라이트 배경 (페이지 기본) */
  --light-sand: #E8E1CF; /* 서브 배경, 보더, 카드 */
  --muted: #7A7B6A;      /* 설명 텍스트, 플레이스홀더 */
  --text-dark: #1E2118;  /* 본문 텍스트 (라이트 배경) */

  --max: 1120px;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text-dark);
  background: var(--parchment);
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 워드마크 (Instrument Serif Italic — 라틴 브랜드 모멘트) */
.wordmark {
  font-family: 'Instrument Serif', 'Pretendard', serif;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ---------- 헤더 / 네비 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 228, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(24, 32, 24, 0.07);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-lockup .symbol { width: 26px; height: 26px; color: var(--forest); }
.brand-lockup .wordmark { font-size: 24px; color: var(--text-dark); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.site-nav a:hover { opacity: 1; }

.nav-dl {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--parchment) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-dl:hover { background: var(--dark); transform: translateY(-1px); }

/* 로그인 — 다운로드(주 CTA)보다 한 단계 약하게. 테두리만 있는 버튼. */
.nav-login {
  padding: 9px 16px;
  border: 1px solid var(--line, #e5e2dc);
  border-radius: 999px;
  font-weight: 600 !important;
  opacity: 1 !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-login:hover { border-color: var(--forest); color: var(--forest) !important; }

/* 로그인 상태일 때만 스크립트가 붙인다 */
.nav-logout {
  font-size: 13px;
  opacity: 0.7 !important;
}

@media (max-width: 720px) {
  /* 좁은 화면에선 로그인(또는 계정)·다운로드만 남긴다 */
  .site-nav a:not(.nav-dl):not(.nav-login):not(.nav-logout) { display: none; }
  .nav-login {
    padding: 8px 13px;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ---------- 푸터 (다크 밴드, 다운로드 CTA 포함) ---------- */
.site-footer {
  background: var(--dark);
  color: var(--parchment);
}
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 64px 24px 56px;
  border-bottom: 1px solid rgba(245, 240, 228, 0.10);
}
.footer-cta .symbol { width: 40px; height: 40px; color: var(--parchment); }
.footer-cta h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-cta p { font-size: 15px; color: var(--light-sand); line-height: 1.6; }
.footer-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.footer-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }

.footer-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 12.5px;
  color: rgba(122, 123, 106, 0.85);
}
.footer-meta-info { display: flex; flex-direction: column; gap: 5px; line-height: 1.5; }
.footer-meta-info .biz { font-size: 12px; opacity: 0.82; }
.footer-meta a { color: var(--forest-light); text-decoration: none; }
.footer-meta nav { display: flex; gap: 18px; }
