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

html {
    min-width: 320px;
    background: var(--kc-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% -5%, rgba(220, 174, 79, .08), transparent 30rem),
        radial-gradient(circle at 92% 5%, rgba(115, 169, 255, .07), transparent 26rem),
        var(--kc-bg);
    color: var(--kc-text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

img,
svg {
    max-width: 100%;
}

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

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

a {
    color: inherit;
    text-decoration-color: rgba(220, 174, 79, .52);
    text-underline-offset: .2em;
}

a:hover {
    text-decoration-color: var(--kc-gold);
}

button,
input,
select,
textarea {
    color: var(--kc-text);
}

::selection {
    background: rgba(220, 174, 79, .28);
}

:focus-visible {
    outline: 3px solid rgba(115, 169, 255, .75);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(2.15rem, 7vw, 4.6rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.35rem);
}

h3 {
    font-size: 1.05rem;
}

p {
    color: var(--kc-text-soft);
}

small {
    color: var(--kc-muted);
}

.kc-container {
    width: min(calc(100% - 2rem), var(--kc-container));
    margin-inline: auto;
}

.kc-main {
    min-height: calc(100vh - var(--kc-header-height));
    scroll-margin-top: calc(var(--kc-header-height) + 1rem);
}

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

.kc-skip-link {
    position: fixed;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    transform: translateY(-180%);
    padding: .7rem 1rem;
    border-radius: var(--kc-radius-sm);
    background: var(--kc-text);
    color: var(--kc-bg);
    font-weight: 800;
}

.kc-skip-link:focus-visible {
    transform: none;
}

@media (max-width: 680px) {
    .kc-container {
        width: min(calc(100% - 1.25rem), var(--kc-container));
    }
}


@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
