/*
 * Bear Activewear — design tokens
 * Palette, type scale, spacing scale, and global resets.
 * Load this file first, before storefront.css / dashboard.css.
 */

:root {
    /* Colors */
    --bear-off-black: #111111;
    --bear-black: #000000;
    --bear-white: #FFFFFF;
    --bear-beige: #F0F1F2;
    --bear-beige-light: #EDEEF0;
    --bear-beige-dark: #BEC2C6;
    --bear-muted: #797E84;
    --bear-error: #B3261E;
    --bear-error-bg: #F7E8E7;
    --bear-success: #3F6B4A;
    --bear-success-bg: #E9EFE9;
    --bear-info-bg: #EDEEF0;
    --bear-info-border: #BEC2C6;

    /* Homepage / storefront-component additions (Bear Activewear homepage) */
    --bear-gray: #E5E5E5;
    --bear-black-40: rgba(17, 17, 17, .4);
    --bear-black-70: rgba(17, 17, 17, .7);
    --bear-white-70: rgba(255, 255, 255, .7);
    --bear-white-50: rgba(255, 255, 255, .5);
    --bear-white-20: rgba(255, 255, 255, .2);

    /* Bootstrap 4 custom property overrides (partial support in BS4, kept
       for any component that does read them / for our own use) */
    --primary: var(--bear-off-black);
    --secondary: var(--bear-beige-dark);
    --success: var(--bear-success);
    --danger: var(--bear-error);
    --light: var(--bear-beige-light);
    --dark: var(--bear-off-black);

    /* Typography
       Manrope (Google Fonts, SIL Open Font License — free/open, unlike
       the previous Neue Haas Grotesk / Helvetica Neue stack) is loaded
       via <link> in layout.html / dashboard/layout.html, weights
       400/600/700/800. Manrope has no separate "display" cut, so
       heading/subtitle/body all share one family and are differentiated
       by font-weight only (see h1-h6/.h1-.h6, .subtitle, and .btn rules
       in storefront.css/dashboard.css). */
    --font-heading: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-subtitle: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Manrope', -apple-system, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing scale (8px base unit) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    /* Radius */
    --radius-storefront: 0;
    --radius-dashboard: 2px;
}

/* Global resets / base element styling */
html, body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--bear-off-black);
    background-color: var(--bear-white);
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--bear-off-black);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-3);
}

/* Manrope weight tiers: H1/Hero ExtraBold, H2 Bold, H3-H6 SemiBold
   (stepping down from H2's 700, matching the .subtitle tier below —
   the brand spec didn't call out a weight for H3-H6 specifically). */
h1, .h1 { font-size: 40px; font-weight: 800; }
h2, .h2 { font-size: 32px; font-weight: 700; }
h3, .h3 { font-size: 24px; font-weight: 600; }
h4, .h4 { font-size: 20px; font-weight: 600; }
h5, .h5 { font-size: 16px; font-weight: 600; }
h6, .h6 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

small, .small {
    font-size: 12px;
    font-weight: 400;
}

/* Subtitle utility — Manrope SemiBold (600), used for hero
   subtitles, section "kicker" labels, and product-card meta text.
   See .home-hero__subtitle / .section-kicker / .product-card__meta in
   storefront.css, which consume this token directly. */
.subtitle {
    font-family: var(--font-subtitle);
    font-weight: 600;
}

a {
    color: var(--bear-off-black);
}

a:hover,
a:focus {
    color: var(--bear-black);
}

::selection {
    background: var(--bear-beige);
    color: var(--bear-off-black);
}
