/* ========== Reset + Typography System — Warm Stone ========== */

/* --- Design Tokens --- */
:root {
    /* Font stacks */
    --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-serif: "DM Serif Display", "Noto Serif SC", "Source Han Serif SC",
                  "Songti SC", Georgia, "Times New Roman", serif;
    --font-mono:  "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;

    /* Type scale (modular, 1.25 ratio) */
    --text-3xs: 0.625rem;   /* 10px */
    --text-2xs: 0.6875rem;  /* 11px */
    --text-xs:  0.75rem;    /* 12px */
    --text-sm:  0.8125rem;  /* 13px */
    --text-base: 0.9375rem; /* 15px */
    --text-md:  1.0625rem;  /* 17px */
    --text-lg:  1.1875rem;  /* 19px */
    --text-xl:  1.375rem;   /* 22px */
    --text-2xl: 1.75rem;    /* 28px */
    --text-3xl: 3.25rem;    /* 52px */
    --text-4xl: 5.5rem;     /* 88px */

    /* Letter-spacing scale */
    --track-tight:  -0.025em;
    --track-normal:  0;
    --track-wide:    0.04em;
    --track-wider:   0.08em;
    --track-widest:  0.16em;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--text-base);
    color: #2D2926;
    background: #FAF7F3;
    line-height: 1.7;
    letter-spacing: var(--track-normal);
    overflow: hidden;
    height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

/* Scrollbar — warm thin */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #B0A599; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8F8478; }

/* Text selection */
::selection {
    background: rgba(194, 133, 91, 0.18);
    color: #2D2926;
}
