/* ==========================================================================
   자연향기조경 — base.css
   리셋 · 타이포그래피 · 디자인 토큰(CSS 변수)
   ========================================================================== */

:root {
    /* Color — 정원석/이끼/소나무에서 가져온 딥그린 베이스 + 화강암 스톤 톤 */
    --c-primary:      #2f6b3a;
    --c-primary-dark: #1f4a29;
    --c-primary-soft: #e7efe4;
    --c-accent:       #8fbf6a;
    --c-stone:        #8a8478;
    --c-stone-dark:   #5c574d;
    --c-earth:        #a9825c;

    --c-text:    #20241f;
    --c-muted:   #6b7570;
    --c-line:    #e3e2dd;

    --c-bg:      #ffffff;
    --c-bg-soft: #f5f4ef;
    --c-bg-deep: #14180f;

    --c-white: #ffffff;

    /* Typography */
    --font-display: 'Noto Serif KR', serif;
    --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;

    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: clamp(2.25rem, 4vw + 1rem, 3.5rem);

    /* Spacing scale (8px 기준) */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4.5rem;
    --sp-7: 6.5rem;

    --radius: 4px;
    --radius-lg: 8px;
    --container: 1200px;
    --container-narrow: 860px;

    --shadow-sm: 0 1px 2px rgba(20, 24, 15, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 24, 15, 0.08);
    --shadow-lg: 0 20px 48px rgba(20, 24, 15, 0.14);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 180ms;
    --dur-base: 280ms;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

/* 포커스 접근성 */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.sound_only {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    border: 0; padding: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography 유틸 --------------------------------------------------------- */
.ns-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-primary);
}
.ns-eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: var(--c-primary);
}
.ns-heading {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ns-lede {
    color: var(--c-muted);
    font-size: var(--fs-md);
    line-height: 1.75;
}

/* 버튼 --------------------------------------------------------------------- */
.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 52px;
    padding: 0 1.75rem;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 1px solid transparent;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
    white-space: nowrap;
}
.ns-btn:hover { transform: translateY(-1px); }
.ns-btn--primary { background: var(--c-primary); color: var(--c-white); }
.ns-btn--primary:hover { background: var(--c-primary-dark); }
.ns-btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.55); }
.ns-btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--c-white); }
.ns-btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.ns-btn--outline:hover { background: var(--c-primary); color: var(--c-white); }
.ns-btn--sm { height: 42px; padding: 0 1.25rem; font-size: var(--fs-xs); }

.ns-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }
.ns-container--narrow { max-width: var(--container-narrow); }

@media (max-width: 480px) {
    .ns-container { padding: 0 var(--sp-2); }
}
