/*
 * B9 Website Core
 *
 * Public Web core styles.
 *
 * Responsibilities:
 * - provide the base B9Web document styling;
 * - apply global theme tokens;
 * - provide safe element defaults;
 * - keep component-specific styling out of the core layer.
 *
 * Component, layout and module styles belong in their own assets.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--b9-color-background);
    color: var(--b9-color-text);
    font-family: var(--b9-font-body);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--b9-color-background);
    color: var(--b9-color-text);
    font-family: var(--b9-font-body);
    line-height: 1.5;
}

.b9-web {
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--b9-font-heading);
    color: var(--b9-color-text);
}

p {
    margin-top: 0;
}

a {
    color: inherit;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}
