/* Explain: Base reset and typography, optimized for mobile. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-padding-top: 6rem;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(200, 161, 90, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 16%, rgba(11, 31, 51, 0.10), transparent 30rem),
        linear-gradient(180deg, var(--background-color), #FFFCF7 42%, var(--background-color));
    color: var(--text-color);
    font-feature-settings: "kern" 1, "liga" 1;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: '';
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(11, 31, 51, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 31, 51, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

img {
    height: auto;
}

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

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

button {
    font: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

input,
select,
textarea {
    font-size: 16px;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--text-muted) 76%, transparent);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(200, 161, 90, 0.72);
    outline-offset: 3px;
}

table {
    border-collapse: collapse;
}

[x-cloak] {
    display: none !important;
}

details summary::-webkit-details-marker {
    display: none;
}

::-webkit-scrollbar {
    width: 0.75rem;
    height: 0.75rem;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(11, 31, 51, 0.24);
    border: 3px solid var(--background-color);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 31, 51, 0.38);
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}