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

html {
    scroll-behavior: smooth;
    line-height: var(--leading-normal);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select,
button {
    outline: none;
    font-family: inherit;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.is-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background-color: var(--color-accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #ececec;
}

::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6f6f6f;
}

html.dark::-webkit-scrollbar-track,
html.dark ::-webkit-scrollbar-track,
.dark::-webkit-scrollbar-track,
.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

html.dark::-webkit-scrollbar-thumb,
html.dark ::-webkit-scrollbar-thumb,
.dark::-webkit-scrollbar-thumb,
.dark ::-webkit-scrollbar-thumb {
    background: #6a6a6a;
    border-radius: 999px;
}

html.dark::-webkit-scrollbar-thumb:hover,
html.dark ::-webkit-scrollbar-thumb:hover,
.dark::-webkit-scrollbar-thumb:hover,
.dark ::-webkit-scrollbar-thumb:hover {
    background: #8f8f8f;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #9a9a9a #ececec;
}

html.dark {
    scrollbar-color: #6a6a6a #1a1a1a;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #9a9a9a transparent;
}

html.dark *,
.dark * {
    scrollbar-color: #6a6a6a transparent;
}

.ticker-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.mono-image {
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease;
}
.mono-image:hover { filter: grayscale(80%) contrast(1.1) brightness(1); }
