
/* ============================================================ *
   SETTINGS

   The Settings layer contains definitions for colours, fonts,
   layouts, typography and anything that can be later used within
   a style. This layer is a configuration for the CSS project.
   No CSS should be outputted from this layer.
 * ============================================================ */

:root {
    /* -------------------- SITE SETTINGS -------------- */
    --viewport-spacing: min(calc(1.5 * 3vw), 3rem); /* outer spacing */
    --content-padding: min(calc(1.5 * 5vw), 5rem); /* inner spacing */
    --content-max-width: 2000px;
    --section-margin-top: 1rem;
    --section-margin-bottom: 10rem;
    --section-gap: calc(1.5rem + 2vw);
    --full-height-shift: 6rem; /* Equalise header height */

    /* -------------------- FONTS -------------------- */
    --font-family: "Poppins", "Open Sans", "Helvetica Neue", "Helvetica", "Trebuchet MS", "Arial", sans-serif;
    --font-size-base: 16px;
    --font-size-small: 0.85rem;
    --font-size-factor: min(1vw, 1rem);
    --font-size-bodycopy: calc(0.75rem + 0.5 * var(--font-size-factor));
    --font-weight-light: 300; /* headings */
    --font-weight-base: 300; /* bodycopy */
    --font-weight-bolder: 400; /* footer */
    --font-weight-semibold: 500; /* inline-links */
    --font-weight-bold: 600; /* strong */
    --font-max-width: 37em;
    --line-height-base: 1.5;
    --letter-spacing-base: 0.1em;
    --letter-spacing-strong: 0.05em;
    --type-letter-spacing: 0.05em;
    --type-line-height: 1.4;

    /* -------------------- UI COLORS -------------------- */
    --color-ui-bg: var(--cd-grey-10); /* Site background */
    --color-ui-bg-base: var(--color-ui-bg);
    --color-ui-inverted: var(--cd-cold-grey-20);
    --color-ui-navigation: var(--cd-grey-10);
    --color-ui-navigation-opacity: 0.9;
    --color-ui-borders: var(--cd-grey-30);
    --color-ui-1: var(--cd-grey-100); /* Block on site background */
    --color-brand-dark: var(--cd-orange-60);
    --color-brand-light: var(--cd-orange-70);
    --color-brand-gradient: linear-gradient(45deg, var(--color-brand-light), var(--color-brand-dark));

    /* -------------------- CONTENT COLORS -------------------- */
    --color-headings: var(--cd-grey-90);
    --color-content-1: var(--cd-grey-90); /* Bodycopy */
    --color-content-2: var(--cd-grey-40);
    --color-content-darken: var(--cd-black);
    --color-content-lighten: var(--color-ui-inverted);
    --color-content-branded: var(--cd-grey-10);

    /* -------------------- LINKS -------------------- */
    --link-color: currentColor; /* stylelint-disable-line value-keyword-case */
    --link-color-hover: var(--color-brand-dark);
    --link-color-underline: var(--color-brand-dark);
    --link-color-active: var(--color-brand-light);
    --link-color-active-underline: var(--color-brand-light);
    --link-text-decoration: underline;

    /* -------------------- Z-INDEX -------------------- */
    --z-index-back: -1;
    --z-index-front: 1;
    --z-index-header: 10;
    --z-index-overlay: 2;
    --z-index-hybrid-button: 3;

    /* -------------------- MEDIA QUERIES -------------------- *
    *  Since CSS Variables can't be used in media query selectors
    *  we list them here as reference
    */
    --media-xs: 480px;
    --media-sm: 768px;
    --media-md: 1024px;
    --media-lg: 1260px;
    --media-xl: 1800px;

    /* -------------------- ANIMATIONS -------------------- */
    --transition-property: all;
    --transition-timing-function: ease;
    --transition-duration: 300ms;
    --transition-default: var(--transition-property) var(--transition-timing-function) var(--transition-duration);
}
