/* ==========================================================
   base.css — 모든 페이지(홈 + 서브페이지) 공통 스타일
   리셋, 색상 변수, 기본 타이포, header/footer, wrap 컨테이너
   ========================================================== */

:root {
  --bg: #FAF9F5;
  --panel: #FFFFFF;
  --panel-2: #EFE9DE;
  --ink: #141413;
  --ink-soft: #6C6A64;
  --line: #E6DFD8;
  --accent: #CC785C;
  --accent-active: #A9583E;
  --accent-soft: rgba(204,120,92,0.12);
  --font-display: 'Noto Serif KR', 'Cormorant Garamond', serif;

  --radius: 8px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --surface-dark: #181715;
  --on-dark: #FAF9F5;
  --on-dark-soft: #A09D96;

  --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;
}
.none {
  display: none;
}

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-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo .dot {
  color: var(--accent);
}
nav.links {
  display: flex;
  gap: 4px;
}
nav.links a {
  font-family: var(--font-display);
  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(--accent);
}
nav.links a.active::after {
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  content:"";
  border-radius: 2px;
  background: var(--accent);
}

@media (max-width: 860px) {
  nav.links {
    display: none;
  }
}

/* ---------- Footer ---------- */
footer {
  color: var(--on-dark-soft);
  padding: 30px 0;
  margin-top: 60px;
  background: var(--surface-dark);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--on-dark-soft);
}
.footer-bottom .mono {
  letter-spacing: .02em;
}
