/*
Theme Name: AMA Richmond (Block Theme)
Theme URI: https://wordpress.org/themes/amarichmondblocktheme/
Author: COLAB
Author URI: https://www.teamcolab.com
Description: AMA Richmond (Block Theme) is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. AMA Richmond (Block Theme) comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 6.0
Tested up to: 6.5.2
Requires PHP: 7.0
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amarichmondblocktheme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
	/* Text tokens */
	--color-text-primary: var(--wp--preset--color--navy);
	--color-text-secondary: var(--wp--preset--color--light-navy);
	--color-text-inverse: var(--wp--preset--color--white);
	--color-text-highlight: var(--wp--preset--color--red);

	/* Surface tokens */
	--color-surface-neutral: var(--wp--preset--color--beige);
	--color-surface-white: var(--wp--preset--color--white);
	--color-surface-blue: var(--wp--preset--color--navy);
	--color-surface-red: var(--wp--preset--color--red);
	--color-surface-highlight: var(--wp--preset--teal);

	/* Border tokens */
	--color-border-navy: var(--wp--preset--color--navy);
	--color-border-white: var(--wp--preset--color--white);
	--color-border-accent: var(--wp--preset--color--red);

    /* Old palette colors */
    --wp--preset--color--base: #f9f9f9;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--contrast: #1f304f;
    --wp--preset--color--custom-red-700: #b22b25;
    --wp--preset--color--custom-red-900: #8a2c27;
    --wp--preset--color--custom-blue-500: #43a9d4;
    --wp--preset--color--custom-blue-700: #0071a5;
    --wp--preset--color--custom-blue-900: #19314f;
    --wp--preset--color--custom-beige-100: #f3f2ee;
    --wp--preset--color--custom-grey-100: #e4e4e4;
    --wp--preset--color--custom-grey-300: #cccccc;
    --wp--preset--color--custom-grey-500: #959090;
    --wp--preset--color--custom-grey-700: #646464;
    --wp--preset--color--custom-grey-900: #201c0e;
    --wp--preset--color--custom-teal: #69b5a4;
    --wp--preset--color--custom-orange: #e87531;
    --wp--preset--color--custom-purple: #533b6b;
    --wp--preset--color--custom-yellow: #e8a32a;
    --wp--preset--color--custom-green: #476d3d;
    --wp--preset--color--custom-light-green: #7cbc6b;

    /* mapping the old spacing to new values */
    --wp--preset--spacing--10: 1rem;
    --wp--preset--spacing--20: min(1.5rem, 2vw);
    --wp--preset--spacing--30: min(2.5rem, 3vw);
    --wp--preset--spacing--40: min(4rem, 5vw);
    --wp--preset--spacing--50: min(6.5rem, 8vw);
    --wp--preset--spacing--60: min(10.5rem, 13vw);

    /* old font size */
    --wp--preset--font-size--xx-large: var(--wp--preset--font-size--husky); /* 3.27rem → 3.75rem */

    /* fix for utility classes assigned per old colors */
    /* Background colors */
    .has-base-background-color { background-color: var(--wp--preset--color--base) !important; }
    .has-white-background-color { background-color: var(--wp--preset--color--white) !important; }
    .has-contrast-background-color { background-color: var(--wp--preset--color--contrast) !important; }
    .has-custom-red-700-background-color { background-color: var(--wp--preset--color--custom-red-700) !important; }
    .has-custom-red-900-background-color { background-color: var(--wp--preset--color--custom-red-900) !important; }
    .has-custom-blue-500-background-color { background-color: var(--wp--preset--color--custom-blue-500) !important; }
    .has-custom-blue-700-background-color { background-color: var(--wp--preset--color--custom-blue-700) !important; }
    .has-custom-blue-900-background-color { background-color: var(--wp--preset--color--custom-blue-900) !important; }
    .has-custom-beige-100-background-color { background-color: var(--wp--preset--color--custom-beige-100) !important; }
    .has-custom-grey-100-background-color { background-color: var(--wp--preset--color--custom-grey-100) !important; }
    .has-custom-grey-300-background-color { background-color: var(--wp--preset--color--custom-grey-300) !important; }
    .has-custom-grey-500-background-color { background-color: var(--wp--preset--color--custom-grey-500) !important; }
    .has-custom-grey-700-background-color { background-color: var(--wp--preset--color--custom-grey-700) !important; }
    .has-custom-grey-900-background-color { background-color: var(--wp--preset--color--custom-grey-900) !important; }
    .has-custom-teal-background-color { background-color: var(--wp--preset--color--custom-teal) !important; }
    .has-custom-orange-background-color { background-color: var(--wp--preset--color--custom-orange) !important; }
    .has-custom-purple-background-color { background-color: var(--wp--preset--color--custom-purple) !important; }
    .has-custom-yellow-background-color { background-color: var(--wp--preset--color--custom-yellow) !important; }
    .has-custom-green-background-color { background-color: var(--wp--preset--color--custom-green) !important; }
    .has-custom-light-green-background-color { background-color: var(--wp--preset--color--custom-light-green) !important; }

    /* Text colors */
    .has-base-color { color: var(--wp--preset--color--base) !important; }
    .has-white-color { color: var(--wp--preset--color--white) !important; }
    .has-contrast-color { color: var(--wp--preset--color--contrast) !important; }
    .has-custom-red-700-color { color: var(--wp--preset--color--custom-red-700) !important; }
    .has-custom-red-900-color { color: var(--wp--preset--color--custom-red-900) !important; }
    .has-custom-blue-500-color { color: var(--wp--preset--color--custom-blue-500) !important; }
    .has-custom-blue-700-color { color: var(--wp--preset--color--custom-blue-700) !important; }
    .has-custom-blue-900-color { color: var(--wp--preset--color--custom-blue-900) !important; }
    .has-custom-beige-100-color { color: var(--wp--preset--color--custom-beige-100) !important; }
    .has-custom-grey-100-color { color: var(--wp--preset--color--custom-grey-100) !important; }
    .has-custom-grey-300-color { color: var(--wp--preset--color--custom-grey-300) !important; }
    .has-custom-grey-500-color { color: var(--wp--preset--color--custom-grey-500) !important; }
    .has-custom-grey-700-color { color: var(--wp--preset--color--custom-grey-700) !important; }
    .has-custom-grey-900-color { color: var(--wp--preset--color--custom-grey-900) !important; }
    .has-custom-teal-color { color: var(--wp--preset--color--custom-teal) !important; }
    .has-custom-orange-color { color: var(--wp--preset--color--custom-orange) !important; }
    .has-custom-purple-color { color: var(--wp--preset--color--custom-purple) !important; }
    .has-custom-yellow-color { color: var(--wp--preset--color--custom-yellow) !important; }
    .has-custom-green-color { color: var(--wp--preset--color--custom-green) !important; }
    .has-custom-light-green-color { color: var(--wp--preset--color--custom-light-green) !important; }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* override fix for images */
.entry-content {
    figure.wp-block-image {
        max-width: var(--wp--style--global--content-size);

        &.alignwide {
            max-width: var(--wp--style--global--wide-size);
        }
        &.alignfull {
            max-width: 100vw;
        }
    }
    &:not(.has-background) {
        padding-top: var(--wp--preset--spacing--40);
    }
    &:not(:has(> .wp-block-cover:first-child)) {
        padding-top: var(--wp--preset--spacing--40);
    }
    &:has(> .wp-block-cover:first-child) {
        padding-top: 0;
        padding-bottom: 0;
    }
    :has(> :first-child[style*="padding"]) {
        padding-top: 0;
        padding-bottom: 0;
    }
}

