@font-face {
    font-family: 'Sofia Sans';
    font-display: swap;
    font-weight: bold;
    src:
        local('Sofia Sans'),
        url('/static/assets/font-sofiasans-extrabold.woff2') format('woff2');
}


@keyframes detect-overflow-x {
    from,
    to {
        --overflows-x: 1;
    }
}

@keyframes detect-overflow-y {
    from,
    to {
        --overflows-y: 1;
    }
}

:root {
    --font-family:
        ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';

    --font-family-alt:
        'Sofia Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
        'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

    --heading-size-xxxl: 2rem;
    --heading-size-xxl: 1.5625rem;
    --heading-size-xl: 1.375rem;
    --heading-size-l: 1.25rem;
    --heading-size-m: 1rem;
    --heading-size-s: 0.875rem;

    --page-padding: 1rem;
    --dialog-padding: 1.5rem;
    --sidebar-padding: var(--page-padding);
    --sidebar-width: 16rem;
    --header-height: 2.75rem;
    --hero-height: 26rem;

    --color-background: #fff;
    --color-background-alt: #f1f4f6;
    --color-background-panel: #fff;
    --color-foreground: #404247;
    --color-foreground-alt: #000;
    --color-edge: #dee3e6;
    --color-edge-dark: #ced4d8;
    --edge-backdrop-filter: blur(10px) brightness(0.9) saturate(1.5);

    --color-button: #dee3e6;
    --color-button-foreground: #404247;

    --color-accent: #0eb4f4;
    --color-accent-alt: #1be1e4;

    --color-link: #299bde;

    --color-info: #299bde;
    --color-warning: #eba70a;
    --color-danger: #e40606;

    --color-shadow: rgba(66, 77, 84, 0.15);

    --color-input: var(--color-background);
    --color-overlay: rgb(48 61 68 / 50%);
    --color-dialog: var(--color-background);

    --color-mark: #000;

    --image-filter: invert(0);

    --brand-gradient: linear-gradient(45deg, var(--color-accent), var(--color-accent-alt));

    
    --button-border: none;
    --button-icon-size: 1.25em;

    --button-color: #5c5e64;
    --button-background-color: #e2e5eb;

    
    --field-color: #5c5e64;
    --field-box-shadow: none;
    --field-background-color: #fff;

    scrollbar-gutter: stable;
}

:root[data-theme='dark'] {
    --color-edge: #414953;
    --color-edge-dark: #353d45;
    --edge-backdrop-filter: blur(10px) saturate(1) brightness(1.5);

    --color-background: #22262c;
    --color-background-alt: #171a1e;
    --color-background-panel: #373c43;

    --color-foreground: #fff;
    --color-foreground-alt: #fff;
    --color-button: #3f4146;
    --color-button-foreground: #fff;
    --color-input: #171a1e;
    --color-overlay: rgba(0, 0, 10, 0.8);

    --color-link: #31c6ff;
    --color-mark: #ffe148;

    --pagefind-ui-primary: #fff;
    --pagefind-ui-text: #fff;
    --pagefind-ui-background: #152028;
    --pagefind-ui-border: #152028;
    --pagefind-ui-tag: #152028;

    --image-filter: invert(1);

    color-scheme: dark;

    & .pintura-editor {
        --color-background: 34, 38, 44;
        --color-foreground: 255, 255, 255;
    }

    
    --button-color: #fff;
    --button-background-color: #433a5d;

    --field-color: #fff;
    --field-background-color: #433a5d;

    
    & .button-cta {
        --button-background-color: #21f8dd;
    }
}

@media (width > 50em) {
    :root {
        --header-height: 3.5rem;
        --sidebar-padding: 1.5rem;
        --page-padding: 3rem;

        --heading-size-xxxl: 2.5rem;
        --heading-size-xxl: 2.125rem;
        --heading-size-xl: 1.875rem;
        --heading-size-l: 1.375rem;
        --heading-size-ml: 1.25rem;
        --heading-size-m: 1rem;
        --heading-size-s: 0.875rem;
    }
}

:root {
    min-height: 100vh;
}


::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 1em;
    height: 1em;
}

::-webkit-scrollbar-corner {
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-edge);
    background-clip: padding-box;
    border: 0.25em solid transparent;
    border-radius: 1em;
    corner-shape: squircle;
}

html,
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

html {
    scroll-padding: calc(var(--header-height) + var(--page-padding));
    color: var(--color-foreground);
    background-color: var(--color-background);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html,
button,
textarea,
input,
select {
    line-height: 1.5;
    font-family: var(--font-family);
}

button {
    font-size: 0.875em;
}

p {
    text-wrap: pretty;
}

code {
    font-family: monospace;
    -webkit-text-size-adjust: none;
}

a:not(pre *) {
    color: var(--color-link);
}

a {
    color: currentColor;
    text-decoration-color: rgb(from currentColor r g b / 0.5);
    text-underline-offset: 1.5px;
    text-underline-thickness: 1.5px;
}

:where(.h, h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-family-alt);
    line-height: 1.25;
    font-weight: 800;
    color: var(--color-heading);

    & > a[href*='#'] {
        max-width: 80%;
        color: currentColor;
        text-decoration: none;

        &:hover::after {
            position: absolute;
            content: '#';
            margin-left: 0.25em;
            color: rgb(from currentColor r g b / 0.5);
        }
    }

    &[id]:not(h1) {
        margin-top: 2em;
    }
}

h1 {
    font-size: var(--heading-size-xxl);
    line-height: 1;
}

h2 {
    font-size: var(--heading-size-xl);
}

h3 {
    font-size: var(--heading-size-l);
}

h4 {
    font-size: var(--heading-size-m);
}

dialog {
    width: 36em;
    max-width: 70vw;
    border: 0;
    padding: 0;
    box-shadow: 0 0.5em 1.5em var(--color-shadow);
    background: var(--color-dialog);
    color: var(--color-foreground);

    &::backdrop {
        background-color: var(--color-overlay);
        backdrop-filter: saturate(25%);
    }

    & > div {
        padding: var(--dialog-padding);
        width: 100%;
        background-color: inherit;
        box-sizing: border-box;
    }

    
    --s: 1.5em;
    --tl: 2em;
    border-radius: var(--tl);

    @supports (corner-shape: squircle) {
        & {
            --s: 2em;
            --tl: 3em;
            corner-shape: squircle;
        }
    }

    
    @supports (animation-timeline: scroll(x self)) {
        & {
            --overflows-x: 0;
            --overflows-y: 0;
            animation: detect-overflow-x, detect-overflow-y;
            animation-timeline: scroll(x self), scroll(y self);

            --tr: calc(var(--tl) - (var(--overflows-y) * var(--s)));
            --br: calc(var(--tl) - (max(var(--overflows-x), var(--overflows-y)) * var(--s)));
            --bl: calc(var(--tl) - (var(--overflows-x) * var(--s)));

            border-radius: var(--tl) var(--tr) var(--br) var(--bl);
        }
    }
}

.implicit {
    position: absolute;
    overflow: hidden;
    height: 1px;
    width: 1px;
    padding: 0;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.logo {
    display: inline-flex;
    vertical-align: bottom;
    align-items: center;
    color: var(--color-foreground);

    &,
    & a {
        color: currentColor;
    }

    & svg {
        display: block;
        width: auto;
        height: 1.9375em;
    }
}

.version {
    display: block;
    font-size: 0.6875em;
    font-weight: 500;
    margin-left: 2px;
    padding-top: 0.5em;
    letter-spacing: 0.5px;
    opacity: 0.75;
    white-space: nowrap;
}

.no-bullets {
    list-style: none;
    padding: 0;
}

table-wrapper {
    display: block;
    max-width: 100%;
    overflow: auto;
}

table {
    border-collapse: collapse;

    & td,
    & th {
        padding: 0.3125em 0.5em;
        text-align: left;
        border: 1px solid var(--color-edge);
    }

    & th {
        white-space: nowrap;
    }

    & td:has(img) {
        white-space: nowrap;
    }

    & th:not([style]) {
        padding-right: 2em;
    }

    & img {
        translate: 0 0.06125em;
        vertical-align: baseline;
        width: 1em;
        height: 1em;
        margin-right: 0.25em;
    }
}

:root[data-theme='dark'] table img.bw {
    filter: invert(100%);
}

.max-content {
    box-sizing: border-box;
    width: 64rem;
    max-width: 100%;
    margin: 0 auto;
}

.s,
.xs,
.m,
.l,
.xl {
    max-width: 100%;
}

.xs {
    width: 30rem;
}

.s {
    width: 40rem;
}

.m {
    width: 45rem;
}

.l {
    width: 55rem;
}

.xl {
    width: 65rem;
}

.linear-mask {
    mask: linear-gradient(
        to bottom,
        transparent,
        black var(--padding-top),
        black calc(100% - var(--padding-bottom)),
        transparent 100%
    );
}

.right {
    clear: both;
    float: right;
}

.section {
    
    position: relative;
    padding-top: var(--padding-top);
    padding-bottom: var(--padding-bottom);
    contain: layout;
}

.section-heading {
    font-size: 2em;
    margin-bottom: 2rem;
}

.section-background-alt {
    background-color: var(--color-edge);
}

.margin-v-xl {
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.margin-t-xl {
    margin-top: 8rem;
}

.margin-t-l {
    margin-top: 4rem;
}

.padding-v-l {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.padding-v-xl {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.expanded-block {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.centered-block {
    margin: 0 auto;
}

.centered-content {
    text-align: center;
}

.content-tile {
    padding: 0 1em;
}

.split-content,
.split-content-middle {
    display: flex;
    flex-direction: column;
    gap: 1em;

    & > form {
        margin-top: -1em;
    }

    & > demo-stage {
        margin-top: 0;
    }

    & > * {
        min-width: 0;

        & > h2 {
            margin-top: 0;
        }
    }

    & .span {
        grid-column: 2/4;
        justify-self: stretch;
    }
}

.split-narrow-reverse {
    flex-direction: column-reverse;
}

@media (min-width: 36em) {
    .split-content,
    .split-content-middle {
        display: grid;
        gap: 2em;
        grid-template-columns: 1fr 1fr;

        & > * {
            align-self: start;
        }
    }
}

@media (min-width: 50em) {
    .split-content,
    .split-content-middle {
        gap: 3em;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .split-content-middle {
        grid-template-columns: 1fr 1fr;
    }
}

.panel {
    border-radius: 0.6875em;
    @supports (corner-shape: squircle) {
        border-radius: 2em;
        corner-shape: squircle;
    }
}

.panel.fit {
    width: fit-content;
}

.pane {
    padding: 1.5rem;
    background: var(--color-pane, white);
    border-radius: 0.75em;

    & > *:first-child {
        margin-top: 0;
    }

    & > *:last-child {
        margin-bottom: 0;
    }

    & h3 + p {
        margin-top: -0.75em;
    }
}

code-tools {
    --offset: 1.25rem;
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: clip;

    & .button-group {
        position: absolute;
        right: var(--offset);
        top: var(--offset);
        display: flex;
        gap: 0.5em;
    }

    & .button {
        font-family: monospace;
        backdrop-filter: blur(10px);
        box-shadow: 0 0.125em 0.25em var(--color-background);
        transition: background-color 0.2s ease-in-out;

        &:hover {
            background-color: rgb(from currentColor r g b / 0.2);
        }

        & .alt {
            position: absolute;
            opacity: 0;
            scale: 0.9;
            transition: all 0.15s ease-out;
        }

        &.state-alt .alt {
            opacity: 1;
            scale: 1;
        }
    }
}

pre::-webkit-scrollbar-thumb {
    corner-shape: round;
}

pre {
    & summary {
        list-style: none;
        margin-left: -1rem;
        padding-left: 1rem;
        cursor: pointer;

        &::before {
            position: absolute;
            content: '';
            margin-left: -1rem;
            margin-top: 0.5rem;

            width: 0.3125rem;
            height: 0.3125rem;
            transform-origin: center center;
            transform: rotate(-45deg);
            border-right: 1px solid var(--summary-marker-color, currentColor);
            border-bottom: 1px solid var(--summary-marker-color, currentColor);

            transition: transform 0.15s ease-in-out;
        }
    }

    & details[open] summary::before {
        transform: rotate(45deg);
    }
}


pre code {
    font-size: 0.75rem;
}

@media (min-width: 40rem) {
    pre code {
        font-size: 0.875rem;
    }
}

pre {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    box-sizing: border-box;
    width: fit-content;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow: auto;
    border-radius: 0.25em;
    background-color: var(--color-background);
    border: 1px solid var(--color-edge);
    mask: linear-gradient(to right, black, black);

    & code {
        white-space: inherit;
        padding: 0;
        background-color: transparent;
    }

    & > code {
        
        position: relative;
        display: block;
        width: fit-content;
    }

    & .mark {
        position: absolute;
        left: 1px;
        right: 1px;
        height: 1lh;
        user-select: none;
        pointer-events: none;
    }

    & [data-focus='off'] {
        &::before,
        &::after {
            content: '';
            position: absolute;
            inset: 0;
        }

        &::after {
            background-color: var(--color-background);
            mix-blend-mode: color;
        }

        &::before {
            background-color: var(--color-background);
            opacity: 0.3;
        }
    }
}

:root[data-theme='dark'] {
    & pre {
        & [data-focus='off'] {
            &::before {
                opacity: 0.5;
            }
        }
    }
}

pre a {
    text-decoration-color: rgb(from currentColor r g b / 0.3);
    transition: text-decoration-color 0.1s ease-out;
    &:hover {
        text-decoration-color: rgb(from currentColor r g b / 0.8);
    }
}




a code {
    background-color: rgb(from currentColor r g b / 0.15);
}

code {
    white-space: nowrap;
    padding: 0.125em 0.25em;
    background-color: var(--color-edge);

    
    border-radius: 0.25em;
    @supports (corner-shape: squircle) {
        border-radius: 1em;
        padding: 0.1875em 0.3125em;
        corner-shape: squircle;
    }
}

code[class*='language'] {
    color: #212121;

    & .comment {
        color: #9398a2;
    }

    & .string {
        color: #d86a1b;
    }

    & .unchanged {
        & .unchanged {
            display: inline-block;
            width: 0;
        }
    }

    & .deleted-sign {
        text-decoration: line-through;
        text-decoration-color: hsl(from currentColor h s 50%);
        filter: grayscale(1);
        opacity: 0.75;

        & .deleted {
            display: none;
        }
    }

    & .inserted-sign {
        & .inserted {
            display: none;
        }
    }
}

.language-bash {
    &::first-letter {
        color: #8f9196;
    }

    & .function {
        color: #de9c0b;
    }
}

.language-tsx,
.language-jsx,
.language-html,
.language-svelte {
    & .punctuation {
        color: #de9c0b;
    }

    & .attr-name {
        color: #db9c0b;
    }

    & .attr-value {
        color: #789c2a;
    }

    & .attr-equals {
        color: #de9c0b;
    }

    & .doctype,
    & .tag {
        color: #db9c0b;
    }

    & .doctype,
    & .attr-value,
    & .tag {
        & > .punctuation {
            color: #ae8630;
        }
    }
}

.language-css {
    & .rule {
        color: #8d30b5;
    }

    & .punctuation {
        color: #777;
    }

    & .property {
        color: #245fc0;
    }

    & .selector {
        color: #d72a65;
    }
}

.language-svelte,
.language-javascript,
.language-jsx,
.language-tsx,
.language-js,
.language-ts,
.language-diff-ts,
.language-diff-js {
    & .function-variable,
    & .punctuation {
        color: #212121;
    }

    & .function {
        color: #5695e1;
    }

    & .operator {
        color: #8f9196;
    }

    & .keyword,
    & .constant {
        color: #8d30b5;
    }

    & .boolean {
        color: #3aa0ce;
    }

    & .builtin,
    & .class-name {
        color: #e1a91a;
    }

    & .number {
        color: #348c38;
    }
}


:root[data-theme='dark'] {
    & code[class*='language'] {
        color: #eee;

        & .comment {
            color: #707985;
        }

        & .string {
            color: #f6a66c;
        }
    }

    & .highlight-line-active {
        --color: #3a3a3b;
    }

    & .language-bash {
        &::first-letter {
            color: #707985;
        }

        & .function {
            color: #f6a66c;
        }
    }

    & .language-svelte,
    & .language-tsx,
    & .language-jsx,
    & .language-html {
        & .attr-name {
            color: #c7d6ec;
        }

        & .attr-equals {
            color: #59677b;
        }

        & .doctype,
        & .tag {
            color: #8fa7c7;

            & .punctuation:first-of-type,
            & .punctuation:last-of-type {
                color: #59677b;
            }
        }

        & .attr-value,
        & .punctuation,
        & .attr-value .punctuation:nth-of-type(2),
        & .attr-value .punctuation:last-of-type {
            color: #f6a66c;
        }
    }

    & .language-svelte,
    & .language-javascript,
    & .language-jsx,
    & .language-tsx,
    & .language-js,
    & .language-ts,
    & .language-diff-ts,
    & .language-diff-js {
        & .function-variable,
        & .punctuation {
            color: #9c9c9c;
        }

        & .function {
            color: #85b7f6;
        }

        & .operator {
            color: #8f9196;
        }

        & .keyword,
        & .constant {
            color: #f699d1;
        }

        & .boolean {
            color: #3aa0ce;
        }

        & .builtin,
        & .class-name {
            color: #f4db86;
        }

        & .number {
            color: #8eb771;
        }

        & .type {
            color: #c7d6ec;
        }
    }

    & .language-tsx,
    & .language-jsx {
        & .class-name {
            color: #788ca8;
        }

        & .token .punctuation {
            color: #59677b;
        }

        & .spread .attr-value {
            color: #c7d6ec;
        }
    }

    & .language-css {
        & .selector {
            color: #ff93b8;
        }

        & .rule {
            color: #e4d18a;
        }

        & .punctuation {
            color: #777;
        }

        & .property {
            color: #b7b7c0;
        }

        & .atrule .property {
            color: #abb7f2;
        }
    }
}


.button {
    display: inline-flex;
    vertical-align: bottom;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    gap: 0.75em;

    
    & svg {
        width: var(--button-icon-size);
        height: var(--button-icon-size);
        flex-shrink: 0;
    }

    
    &:where(:not(.button-text)) {
        font-size: 0.875em;
        font-weight: 500;
        padding: 0.625em 1.25em;

        color: var(--button-color);
        border: var(--button-border);
        background: var(--button-background-color);

        
        border-radius: 1em;
        @supports (corner-shape: squircle) {
            border-radius: 2em;
            corner-shape: squircle;
        }
    }
}

.button-m {
    font-size: 1em;
}

.button-s {
    font-size: 0.875em;
}

.button-xs {
    font-size: 0.75em;
}

.button-transparent {
    background-color: transparent;
}

.button-icon-only {
    --button-icon-size: 1.5em;
    justify-content: center;
    gap: 0;
    padding: 0;
    width: calc(var(--button-icon-size) + 1.25em);
    height: calc(var(--button-icon-size) + 1.25em);
}

.button-text {
    color: currentColor;
    padding: 0;
    gap: 0.5em;
    font-size: 1em;
}

.button-alt {
    --button-color: var(--color-foreground);
    --button-background-color: rgb(from var(--color-foreground) r g b / 0.1);
    font-weight: 400;
}

.button-cta {
    --button-color: #0b131f;
    --button-background-color: #ffe48d;
}


.form {
    display: block;
    margin: 2em 0;

    --field-background-fill: linear-gradient(
        to bottom,
        var(--field-background-color),
        var(--field-background-color)
    );

    &.panel {
        margin-top: 0.25em;
        padding: 0.5em 2.5em 0.5em 1.5em;
    }
}

.form .panel {
    padding: 0.25em;

    border-radius: 0.75em;
    @supports (corner-shape: squircle) {
        border-radius: 1.25em;
        corner-shape: squircle;
    }
}

.panel:has(select:only-child),
.panel:has(input:only-child) {
    margin-top: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    & input {
        display: block;
        top: auto;
    }
}

.panel:has(input[type='checkbox']) {
    position: relative;
    top: 0.25em;
    margin-right: 0.25em;
    display: inline-flex;
}

.form-field {
    display: block;
    margin: 1em 0;

    & label {
        cursor: pointer;
    }
}

fieldset .form-field {
    margin: 0;
}

.form-field-group.panel {
    & label {
        font-size: 0.6125em;
        padding: 0.375rem 0.5rem 0;
        line-height: 1;
        background: var(--field-background-color);
        box-shadow: var(--field-box-shadow);

        
        border-radius: 0.5rem;
        @supports (corner-shape: squircle) {
            border-radius: 1rem;
            corner-shape: squircle;
        }
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    & select {
        margin-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: none;
    }

    & .form-field {
        display: flex;
        flex-direction: column;
    }
}

.form-field-row {
    display: flex;
    gap: 0.315rem;

    & > .form-field {
        flex: 1;
    }

    &:not(.form-field-group) > .form-field {
        margin-top: 0;
        margin-bottom: 0;
    }
}

input,
textarea {
    border: none;
    font-size: 1em;
    margin: 0;
    padding: 0;
    color: var(--field-color);
    background-color: var(--field-background-color);
}

input,
textarea,
select {
    box-shadow: var(--field-box-shadow);
}

select,
input,
button {
    cursor: pointer;
}

select,
input {
    padding: 0.25rem;
    font-size: 0.875em;

    
    border-radius: 0.5rem;
    @supports (corner-shape: squircle) {
        border-radius: 1rem;
        corner-shape: squircle;
    }
}

label {
    font-weight: 500;
    font-size: 0.875em;

    & + select {
        margin-top: 0.325em;
    }

    & + input[type='range'] {
        margin-top: 0.5em;
    }
}

fieldset {
    margin: 1em 0;
    padding: 0;
    border: none;
    min-width: auto;

    
    border-radius: 0.5em;
    @supports (corner-shape: squircle) {
        border-radius: 1em;
        corner-shape: squircle;
    }

    & > legend {
        font-size: 0.875em;
        font-weight: 500;
        margin: 0 0 0.5em;
        padding: 0;
    }

    & > legend + .form-field {
        margin-top: 0;
    }

    & label {
        font-size: 0.75em;
    }
}

select {
    --chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%235c5e64" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6l6 -6" /></svg>');

    display: block;
    appearance: none;
    padding-left: 0.5625em;
    padding-right: 1.75em;
    color: currentColor;
    border: none;
    background-position:
        right 0.5em center,
        0 0;
    background-repeat: no-repeat, repeat;
    background-size:
        0.75em 0.75em,
        auto;
    background-image: var(--chevron), var(--field-background-fill);
}

:where(:root[data-theme='dark']) {
    & select {
        --chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23d7dbdf" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6l6 -6" /></svg>');
    }
}

input[type='checkbox'],
input[type='radio'] {
    appearance: none;
    border: none;
    position: relative;
    padding: 0;
    top: 0.25em;
    width: 1.25em;
    height: 1.25em;
    & + label {
        margin-left: 0.25em;
    }

    border-radius: 0.5em;
    @supports (corner-shape: squircle) {
        border-radius: 1em;
        corner-shape: squircle;
    }
}

input[type='checkbox'] {
    
    background: var(--field-background-color);
    --checkmark: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%235c5e64" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5l10 -10" /></svg>');
    &:checked {
        background-position:
            center center,
            0 0;
        background-repeat: no-repeat, repeat;
        background-size:
            0.75em 0.75em,
            auto;
        background-image: var(--checkmark), var(--field-background-fill);
    }
}

:where(:root[data-theme='dark']) {
    & input[type='checkbox'] {
        --checkmark: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23d7dbdf" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5l10 -10" /></svg>');
    }
}

input[type='range'] {
    --chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%235c5e64" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L12 22" /></svg>');
    --line-color: rgb(from currentColor r g b / 0.1);
    --size: 1.75em;
    box-sizing: border-box;
    appearance: none;
    display: block;
    width: 100%;
    max-width: 14em;
    
    padding: 0;
    border: 0;
    height: var(--size);
    background:
        linear-gradient(to right, var(--line-color), var(--line-color)),
        var(--field-background-fill);
    background-size:
        calc(100% - 1.5em) 1px,
        100% 100%;
    background-position:
        0.75em 50%,
        0 0;
    background-repeat: no-repeat, no-repeat;

    &:focus-visible {
        border: var(--field-border-inset);
    }
}



input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 0;
    width: var(--size);
    height: var(--size);
    background-color: currentColor;

    mask: var(--chevron);
    mask-size: 0.75em 0.75em;
    mask-repeat: no-repeat;
    mask-position: center center;
    
}

input[type='range']:focus-visible::-webkit-slider-thumb {
    background: var(--color-accent);
}

input[type='range']::-moz-range-thumb {
    border: 0;
    border-radius: 1em;
    background: var(--thumb-background);
    box-shadow: var(--thumb-shadow);
}



header {
    --icon-size: 1.125em;

    & .max-content {
        display: flex;
        justify-content: space-between;
        align-items: center;

        height: var(--header-height);
        position: relative;
        z-index: 1;
    }

    & .logo {
        font-weight: 600;
        text-decoration: none;
        grid-column: 1;
        margin-left: var(--page-padding);
    }

    
    & ul {
        display: flex;
        list-style: none;
        gap: 2em;
        margin: 0;
        padding: 0;
    }

    & .button {
        --button-icon-size: var(--icon-size);
    }

    & .max-content {
        & > div:last-of-type {
            display: flex;
            justify-content: flex-end;
            flex: 1;
            gap: 2em;
            margin-right: var(--page-padding);
            container-type: inline-size;

            & theme-switch {
                display: flex;
            }

            
            @container (width < 22em) {
                & .button {
                    width: var(--icon-size);
                    overflow: hidden;
                }

                & ul {
                    gap: 1em;
                }
            }
        }

        
        container-type: inline-size;
        @container (width < 25em) {
            gap: 1em;

            & > div:last-of-type {
                gap: 1em;
            }
        }
    }
}

@media (width <= 50em) {
    header {
        & .logo {
            & svg {
                height: 1.4375em;
            }

            & .version {
                font-size: 0.5625em;
            }
        }
    }
}

footer {
    margin-top: auto;
    padding: var(--page-padding);
    background-color: var(--color-edge);

    & .cols {
        margin-top: 1rem;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

    & a {
        color: currentColor;
    }

    & nav {
        width: 12rem;

        & a {
            text-decoration: none;
        }
    }

    & .h {
        margin: 1em 0;
        font-size: 1em;
        line-height: 1;
    }

    & p {
        font-size: 0.875em;
    }

    & div p {
        margin: 0;
        line-height: 1.5rem;
    }

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

        & a {
            font-size: 0.875em;
        }
    }

    & div p,
    & li {
        margin-bottom: 0.25rem;
    }

    & .links {
        & p {
            font-weight: 600;
        }
    }

    & .logo {
        width: 6em;
    }

    & .tagline {
        margin-top: 0.5em;
    }

    & .symbol {
        width: 1rem;
        line-height: 1rem;
        display: inline-block;
    }

    & .humans {
        height: 1em;
        margin-right: 2em;
        & .symbol {
            font-size: 1.25em;

            
            vertical-align: bottom;
            position: relative;
            top: -0.125em;
        }
    }

    & .art {
        margin-right: 2em;

        & .symbol {
            font-size: 1.3125em;
        }
    }
}

.footer-footer {
    display: flex;
    align-items: baseline;

    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    gap: 2rem;
    row-gap: 0.5rem;

    border-top: 1px solid rgb(from currentColor r g b / 0.05);
    color: rgb(from currentColor r g b / 0.5);

    & a {
        text-decoration: none;
        font-size: 0.875em;
    }

    & .legal {
        margin-left: auto;
        display: flex;
        gap: 2rem;
    }
}

.origin {
    display: inline-block;
    cursor: default;
    background: #ffffff;
    padding: 0.25em 0.25em 0.25em 0.5em;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;

    & img {
        display: block;
        object-fit: cover;
        border-radius: 0.125rem;
        margin-left: 0.5rem;
    }

    & p {
        margin: 0;
        font-weight: 600;
        font-size: 0.75em;
        color: #013399;
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
    }
}

theme-switch {
    user-select: none;
    position: relative;

    & .sun {
        position: absolute;
        right: 0;
    }

    & svg {
        opacity: 0;
        transform: rotate(-90deg);
        transition:
            transform 0.35s ease-in-out,
            opacity 0.15s ease-in;
    }
}

[data-theme='light'] {
    & theme-switch {
        & .moon {
            opacity: 0;
            transform: rotate(-90deg);
        }

        & .sun {
            opacity: 1;
            transform: rotate(0);
        }
    }
}

[data-theme='dark'] {
    & theme-switch {
        & .sun {
            opacity: 0;
            transform: rotate(-90deg);
        }

        & .moon {
            opacity: 1;
            transform: rotate(0);
        }
    }
}
