/* Explain: Base reset, typography, and accessible page defaults for the website. - */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background-color);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
    background: var(--background-color);
}

img {
    display: block;
    max-width: 100%;
}

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

/* Ensure buttons are fully responsive and wrap long text instead of clipping */
.btn:not(.btn-square):not(.btn-circle) {
    white-space: normal;
    height: auto;
    line-height: 1.3;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

:focus-visible {
    outline: 3px solid rgba(6, 214, 160, 0.45);
    outline-offset: 3px;
}

::selection {
    color: var(--secondary-color);
    background: var(--primary-color);
}