/**
 * Colors: every color of the theme as a custom property. Variables only.
 *
 * This is the file a project edits. The rules that apply these variables to
 * elements live in base.css; blocks read them with var().
 *
 * Three palettes:
 *   :root                     default section (.color-section)
 *   .wrapper-alternate-color  dark section
 *   .wrapper-extra-color      light neutral section
 * A palette wrapper only redefines what changes, everything else inherits.
 *
 * Names describe the role, not the color, so they stay true when a project
 * changes the values.
 *
 * The editor palette and GeneratePress global colors are generated from the
 * :root block of this file (includes/setup/palette.php): only hex values
 * count, and Customizer edits to global colors are ignored. A swatch picked
 * in the editor is stored as var(--slug), so it follows this file.
 */

:root {
    /* Surfaces and text */
    --body-bg-clr: #ffffff;
    --bg-clr: #ffffff;
    --font-clr: #15171c;
    --heading-clr: #15171c;

    /* Links and lines. Dark blue is the color of action: links and buttons. */
    --link-clr: #00599b;
    --link-hover-clr: #15171c;
    --border-clr: #b3dcf2;

    /* Accents and helpers. Light blue is the brand color (pallets, corners,
       large surfaces). It does not carry white text: text on it is ink. */
    --accent-clr: #4f99c9;
    --accent-soft-clr: #c1eafc;
    --neutral-clr: #e4f5fd;
    --placeholder-clr: #5c6068;

    /* Parcel color: the small frame, the P label, the square in the corner mark */
    --pak-clr: #00599b;

    /* Rating stars (testimonials, feedback form) */
    --rating-clr: var(--link-clr);

    /* Primary button */
    --btn-bg: #00599b;
    --btn-font-clr: #ffffff;
    --btn-hover-bg: #004478;
    --btn-hover-font: #ffffff;

    /* Text-link button (.btn-no-bg) */
    --no-bg-btn-clr: #00599b;
    --no-bg-btn-hover-clr: #15171c;

    /* Header and navigation: white bar, page text colors */
    --header-bg-clr: #ffffff;
    --header-font-clr: var(--font-clr);
    --header-link-clr: var(--font-clr);
    --header-link-hover-clr: var(--link-clr);
    --submenu-bg-clr: #ffffff;

    /* Header on top of a hero: not used on this site (the hero is white),
       kept readable on the dark palette in case a page needs it. */
    --header-on-hero-font-clr: #ffffff;
    --header-on-hero-link-clr: #ffffff;
    --header-on-hero-link-hover-clr: #6db6f2;

    /* Media: lightbox and video backgrounds, text on top of images */
    --media-bg-clr: #15171c;
    --on-media-clr: #ffffff;
    --on-media-dark-clr: #15171c;

    /* Form messages */
    --success-clr: #15803d;
    --error-clr: #b91c1c;

    /* Off-canvas menu */
    --slideout-bg-clr: #ffffff;
    --slideout-link-clr: var(--font-clr);
    --slideout-accent-clr: var(--link-clr);
    --slideout-border-clr: var(--border-clr);
    --slideout-subitem-bg-clr: var(--neutral-clr);

    /* Deprecated aliases, kept until blocks and skills use the role names. */
    --grey: var(--neutral-clr);
    --light-blue: var(--accent-soft-clr);
}

/* Dark section: ink */
.wrapper-alternate-color {
    --bg-clr: #15171c;
    --font-clr: #e6e6ea;
    --heading-clr: #ffffff;
    --link-clr: #6db6f2;
    --link-hover-clr: #ffffff;
    --accent-clr: #6db6f2; /* the accent, readable on ink */
    --rating-clr: var(--link-clr);
    --border-clr: #34373f;
    --accent-soft-clr: #1e2128;
    --neutral-clr: #1e2128;
    --placeholder-clr: #a7a9b3;
    --pak-clr: #c1eafc;
    --btn-bg: #6db6f2;
    --btn-font-clr: #15171c;
    --btn-hover-bg: #ffffff;
    --btn-hover-font: #15171c;
    --no-bg-btn-clr: #ffffff;
    --no-bg-btn-hover-clr: #6db6f2;
}

/* Light neutral section: ice */
.wrapper-extra-color {
    --bg-clr: #e4f5fd;
    --neutral-clr: #ffffff;
    --accent-soft-clr: #c1eafc;
}
