/* 두쫀쿠 어디 디자인 토큰: 코코아 · 피스타치오 · 크림 */
:root {
    color-scheme: light;

    --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

    --bg: #F7F3EC;
    --surface: #FFFFFF;
    --surface-2: #F3EEE6;
    --surface-3: #E9E2D7;
    --border: #E7DFD3;
    --border-strong: #D5C9B8;

    --text: #221914;
    --text-2: #62554B;
    --text-3: #8E8176;

    --primary: #93C572;
    --primary-hover: #86BA63;
    --primary-fg: #172710;
    --brand-strong: #3E7519;
    --brand-soft: #EAF3DE;
    --brand-line: rgba(106, 160, 64, 0.38);

    --cocoa: #2B1E17;
    --cocoa-fg: #FFF6EA;
    --caramel: #D39A5B;

    --danger: #C8412F;
    --danger-soft: #FBE8E4;

    --header-bg: rgba(247, 243, 236, 0.88);
    --glass: rgba(255, 255, 255, 0.86);
    --backdrop: rgba(30, 20, 14, 0.44);

    --marker-bg: #2B1E17;
    --marker-fg: #FFF6EA;
    --map-bg: #F2EFE9;

    --shadow-xs: 0 1px 2px rgba(43, 30, 23, 0.06);
    --shadow-sm: 0 1px 2px rgba(43, 30, 23, 0.05), 0 6px 16px -6px rgba(43, 30, 23, 0.12);
    --shadow-md: 0 2px 6px rgba(43, 30, 23, 0.05), 0 18px 36px -14px rgba(43, 30, 23, 0.22);
    --shadow-lg: 0 30px 70px -24px rgba(43, 30, 23, 0.4);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --focus-ring: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand-strong);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #110D0A;
    --surface: #1A1410;
    --surface-2: #231C17;
    --surface-3: #2E251F;
    --border: #2F261F;
    --border-strong: #463a30;

    --text: #F5EEE5;
    --text-2: #C3B5A8;
    --text-3: #8D8075;

    --primary: #A5D47F;
    --primary-hover: #B4DC93;
    --primary-fg: #13200A;
    --brand-strong: #B4DE8C;
    --brand-soft: rgba(165, 212, 127, 0.13);
    --brand-line: rgba(165, 212, 127, 0.36);

    --cocoa: #F5EEE5;
    --cocoa-fg: #1A130F;
    --caramel: #E2AD6F;

    --danger: #F08270;
    --danger-soft: rgba(240, 130, 112, 0.14);

    --header-bg: rgba(17, 13, 10, 0.86);
    --glass: rgba(29, 23, 18, 0.88);
    --backdrop: rgba(0, 0, 0, 0.58);

    --marker-bg: #F5EEE5;
    --marker-fg: #1A130F;
    --map-bg: #1E1A17;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 16px -6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 36px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.75);
}

/* ─── 기본 ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss06';
    letter-spacing: -0.005em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
ol,
ul {
    margin: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
}

@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;
    }
}
