/* Semantic roles of the Aura theme, mirroring the --app-* block of lumo-theme.css.
   The roles are what the shared stylesheets (static-page.css, ...) use, so those stay free of theme
   specific colours; each theme fills them with its own. Aura keeps its own surfaces and text
   (blue-grey based), but its accent - the highlight - is the orange of the Lumo palette, so the
   app looks the same whichever theme is active.
   Only what the components ported so far need is mapped yet; the rest follows when the theme
   itself is worked on. */

/* Aura's accent is blue by default; these two are the only place it is defined. Everything the
   accent is used for (text, the label on top of it, surfaces, borders, the focus ring) is derived
   from them, so both themes now carry the same highlight: Lumo's coral flame orange, and the
   lighter tint Lumo uses in dark mode. */
html,
body {
    --aura-accent-color-light: #F05D3D;
    --aura-accent-color-dark: #F48064;
}

html,
body,
body[theme~="dark"] {
    /* Surfaces and text of Aura's surface scale. */
    --app-background: var(--aura-background-color);
    --app-surface: var(--aura-surface-color-solid);
    --app-surface-secondary: color-mix(in srgb, var(--aura-surface-color-solid) 50%, var(--aura-background-color));
    --app-border: var(--vaadin-border-color-secondary);
    --app-ink: var(--vaadin-text-color);
    --app-secondary: var(--vaadin-text-color-secondary);

    /* Aura floats the whole app layout in a frame, inset from the window edge,
       so the drawer pull-tabs follow that inset instead of hugging the edge. */
    --app-drawer-inset: var(--aura-app-layout-inset, 0px);

    /* Aura's accent (the orange above): the primary action and the accent details, with the
       contrast colour Aura derives for a label on it. */
    --app-highlight: var(--aura-accent-color);
    --app-cta-text: var(--aura-accent-contrast-color);
    --app-accent: var(--aura-accent-color);
    --app-link: var(--aura-accent-text-color);

    /* The form label (see FormLabel) keeps the body size and uses the primary
       text colour, as Aura's FormLayout label does. */
    --form-label-font-size: var(--aura-font-size-m);
    --form-label-color: var(--vaadin-text-color);

    /* The page title in the navbar (see any-theme.css) is one step larger than the
       body text, from Aura's own type scale. */
    --app-page-title-font-size: var(--aura-font-size-l);
}

/* A card uses the theme's large radius, as it does in the Lumo theme (Aura's card would default
   to its medium one). The rest of the card's look is set per page or component. */
vaadin-card {
    --vaadin-card-border-radius: var(--vaadin-radius-l);
}
