/* ==========================================================
   base.css — 모든 페이지(홈 + 서브페이지) 공통 스타일
   리셋, 색상 변수, 기본 타이포, header/footer, wrap 컨테이너
   ========================================================== */

:root {
  --bg: #FBFAF7;
  --panel: #FFFFFF;
  --panel-2: #F4F2EC;
  --ink: #1A1815;
  --ink-soft: #6E6B64;
  --line: #E6E3DB;
  --accent: #3B6E91;
  --accent-soft: rgba(59,110,145,0.12);
  --radius: 3px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.mono {
  font-family: 'Pretendard', sans-serif;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 캔버스 등 배경 장식 위에 항상 콘텐츠가 오도록 */
header,
.hero,
section,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,247,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo .dot {
  color: var(--accent);
}
nav.links {
  display: flex;
  gap: 4px;
}
nav.links a {
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .15s ease;
}
nav.links a:hover {
  color: var(--ink);
}
nav.links a.active {
  color: var(--ink);
}
nav.links a.active::after {
  content:"";
  position:absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

@media (max-width: 860px) {
  nav.links {
    display: none;
  }
}

/* ---------- Footer ---------- */
footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .mono {
  letter-spacing: .02em;
}
