/* ── CSS Custom Properties (Design Tokens) ──────────────────────────────── */

:root {
    /* Core colors */
    --color-black: #000000;
    --color-soft-black: #262626;
    --color-white: #FFFFFF;
    --color-off-white: #FAFAFA;

    /* Text colors */
    --color-text-primary: #171717;
    --color-text-secondary: #525252;
    --color-text-tertiary: #A3A3A3;

    /* Neutral scale */
    --color-neutral-50: #FAFAFA;
    --color-neutral-100: #F5F5F5;
    --color-neutral-200: #E5E5E5;
    --color-neutral-300: #D4D4D4;
    --color-neutral-400: #A3A3A3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;

    /* Default accent (overridden per-product via inline style) */
    --color-accent: #7CB4D2;

    /* Typography */
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-narrow: 720px;
    --gap: 2rem;
    --gap-sm: 1rem;
    --gap-xs: 0.5rem;

    /* Border radius */
    --radius: 0.25rem;
}

/* ── Minimal Reset ──────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.625;
    color: var(--color-text-primary);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-text-primary);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--color-text-primary);
}

p {
    margin-top: 0;
}

/* ── Typography Scale ───────────────────────────────────────────────────── */

.display-sm {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.heading-xl {
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.heading-md {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.body-lg {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.625;
    letter-spacing: 0;
}

.body-md {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.625;
    letter-spacing: 0;
}

.body-sm {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.body-xs {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.label-md {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Responsive Typography ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .display-sm {
        font-size: 28px;
    }

    .heading-xl {
        font-size: 24px;
    }

    .heading-lg {
        font-size: 20px;
    }
}
