/* ==========================================================================
   Priductive — design tokens
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-latin-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMMono';
    src: url('/fonts/dmmo-regular-latin.woff2') format('woff2'),
         url('/fonts/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DMMono';
    src: url('/fonts/dmmo-medium-latin.woff2') format('woff2'),
         url('/fonts/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;

    /* Surfaces */
    --bg: #f2ecec;
    --surface: #ffffff;
    --cream: #faf1e8;
    --field: #f5efee;

    /* Ink */
    --ink: #101516;
    --ink-soft: #3e4448;
    --muted: #4d4d4d;
    --line: rgba(0, 0, 0, 0.12);
    --line-strong: rgba(0, 0, 0, 0.22);

    /* Accents — berry palette anchored on #cd378c */
    --green: #2f7d78;
    --pink: #cd378c;
    --yellow: #e8a33d;
    --blue: #3d3a7a;
    --purple: #7b2d6b;
    --focus: #000000;

    /* Buttons */
    --btn-blue: #cd378c;
    --btn-blue-hover: #b02f78;
    --btn-blue-border: #5c1e4a;
    --btn-green: #2f7d78;
    --btn-green-hover: #276b66;
    --btn-green-border: #123f3b;
    --btn-toolbar: #5c1e4a;
    --btn-toolbar-hover: #4a183b;
    --btn-toolbar-border: #2e0f25;
    --btn-shadow: 0 2px 4px rgba(16, 21, 22, 0.24);

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'DMMono', ui-monospace, 'SFMono-Regular', monospace;
    --fs-body: 1.0625rem;
    --lh-body: 1.65;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;

    /* Space */
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 7vw, 6rem);
    --section-y-tight: clamp(2.5rem, 4.5vw, 4rem);

    /* Shape */
    --radius-pill: 999px;
    --radius-card: 14px;
    --radius-media: 10px;
    --radius-field: 12px;
    --toolbar-pad: 0.5rem;
    --toolbar-radius: 1.25rem;
    --control-radius: calc(var(--toolbar-radius) - var(--toolbar-pad));

    /* Elevation */
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04), 0 2px 4px rgba(205, 55, 140, 0.06),
        1px 6px 6px rgba(205, 55, 140, 0.05), 2px 14px 9px rgba(205, 55, 140, 0.03);
    --shadow-pop: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(16, 21, 22, 0.12),
        0 2px 6px rgba(16, 21, 22, 0.08);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-arrow: cubic-bezier(0.25, 0.25, 0.08, 1.08);
}
