/***** Dynamic sizes using clamp() *****/

/** All sizes are currently clamped using min screen width of 1024px and 2176px with 1600px in the middle. All calculations assume 1rem = 10px. **/

/*
Example of calculating clamp preferred value for 1.2rem @ 1024px -> 1.6rem @ 2176px

minFontSizeRem = 1.2
maxFontSizeRem = 1.6
minWidthRem = 1024 => 102.4rem
maxWidthRem = 2176 => 217.6rem

slope = (maxFontSizeRem - minFontSizeRem) / (maxWidthRem - minWidthRem)
slope = (1.6 - 1.2) / (217.6 - 102.4)
slope = 0.00347222222222222222222222222222

yAxisIntersection = -minWidth * slope + minFontSize
yAxisIntersection = -102.4 * 0.00347222222222222222222222222222 + 1.2
yAxisIntersection = 0.84444444444444444444444444444467

preferredValue = yAxisIntersection[rem] + (slope * 100)[vw]
*/

:root {
    /** Developer variables */

    /* Icon variables */
    --icon-l: 4rem;
    --icon-m: 2.4rem;
    --icon-s: 1.8rem;

    /* Padding variables */
    --pad-xxl: 3.2rem;
    --pad-xl: 2.4rem;
    --pad-l: 2rem;
    --pad-m: 1.6rem;
    --pad-s: 0.8rem;
    --pad-xs: 0.4rem;
}

:root {
    --shape-small: 4px;
    --shape-medium: 4px;
    --shape-large: 24px;
}

:root {
    --core-drawer-width: 300px;
}

:root {
    /* DO NOT USE - INTERNAL MATERIAL THEMING */
    /* Material theme defaults - guide https://github.com/material-components/material-components-web-components/blob/master/docs/theming.md */

    --mdc-theme-primary: var(--primary);
    --mdc-theme-secondary: var(--secondary);
    --mdc-theme-background: var(--background);
    --mdc-theme-surface: var(--surface);

    --mdc-theme-on-primary: var(--on-primary);
    --mdc-theme-on-secondary: var(--on-secondary);
    --mdc-theme-on-surface: var(--on-surface);

    --mdc-theme-error: var(--error);
    --mdc-theme-on-error: var(--on-error);

    --mdc-ripple-color: var(--primary);
}

:root {
    --core-button-density: 0;
    --core-input-density: -3;
    --core-list-item-density: -4;
    --core-grid-density: -3;
}
