:root {
    color-scheme: light dark;
    color: #213547;
    font-weight: 400;
    line-height: 1.25;
    background-color: #ffffff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body, pre {
    margin: 0;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    letter-spacing: 0.4px;
}

h2 {
    letter-spacing: 0.3px;
}

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

a {
    font-weight: 500;
    color: #646cff;
    text-decoration: inherit;

    &:hover {
        color: #747bff;
    }
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 10px 18px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    font-family: inherit;
    background-color: rgb(0 0 0 / 0.04);
    transition: border-color 0.25s;

    &[data-primary] {
        color: #f6f6f6;
        background-color: #646cff;
    }

    &[data-small] {
        padding: 4px 10px;
    }

    &:not(:disabled) {
        cursor: pointer;

        &:hover {
            border-color: #646cff;
        }
    }

    &:focus,
    &:focus-visible {
        outline: 4px auto -webkit-focus-ring-color;
    }
}

input {
    padding: 4px 7px;
    font-size: 14px;
    line-height: 18px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color: rgba(255, 255, 255, 0.87);
        background-color: #242424;
    }
    a:hover {
        color: #535bf2;
    }
    button {
        background-color: #1a1a1a;

        &[data-primary] {
            color: #0d0d0d;
            background-color: #646cff;
        }
    }
}


.g-button-reset {
    appearance: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    outline: none;
    text-decoration: none;
    text-align: inherit;
}
