/* MARGIN design tokens: fonts, colors, type, spacing, motion */

@font-face {
    font-family: "Fraunces";
    src: url("../../fonts/margin/fraunces.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../../fonts/margin/fraunces-italic.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../../fonts/margin/instrument-sans.ttf") format("truetype");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand colors */
    --mg-cream: #F3EFE6;
    --mg-ink: #171512;
    --mg-terracotta: #C2391B;
    --mg-olive: #5E6144;
    --mg-stone: #CFC6B6;

    /* Supporting shades */
    --mg-white: #FFFFFF;
    --mg-paper: #FAF8F3;
    --mg-sand: #E7DFD0;
    --mg-muted: #5C554C;
    --mg-field-border: #7D7466;
    --mg-terracotta-dark: #9F2D14;

    /* Typography */
    --mg-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --mg-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --mg-text-xs: 0.75rem;
    --mg-text-sm: 0.875rem;
    --mg-text-base: 1rem;
    --mg-text-lg: 1.1875rem;
    --mg-text-h3: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);
    --mg-text-h2: clamp(2.125rem, 1.35rem + 3.2vw, 4.5rem);
    --mg-text-h1: clamp(3rem, 1.4rem + 6.8vw, 8.5rem);

    /* Spacing */
    --mg-space-1: 0.25rem;
    --mg-space-2: 0.5rem;
    --mg-space-3: 0.75rem;
    --mg-space-4: 1rem;
    --mg-space-5: 1.5rem;
    --mg-space-6: 2rem;
    --mg-space-7: 3rem;
    --mg-space-section: clamp(4rem, 2rem + 8vw, 9rem);
    --mg-gutter: clamp(1.25rem, 0.4rem + 3.4vw, 4rem);
    --mg-max: 90rem;

    /* Shape, depth and motion */
    --mg-radius: 2px;
    --mg-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mg-fast: 200ms;
    --mg-slow: 700ms;
    --mg-shadow: 0 18px 50px rgba(23, 21, 18, 0.16);
}
