/* =========================
   DISTRITO EVENTS V2
   BASE
========================= */


/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background-color: var(--color-black);
    color: var(--color-white);

    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);

    overflow-wrap: break-word;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================
   TEXTOS
========================= */

h1,
h2,
h3,
h4 {
    font-weight: 500;
    line-height: var(--line-height-heading);
}


h1 {
    font-size: var(--font-size-h1);
}


h2 {
    font-size: var(--font-size-h2);
}


h3 {
    font-size: var(--font-size-h3);
}


h4 {
    font-size: var(--font-size-h4);
}


p {
    max-width: 70ch;
}


strong {
    font-weight: 600;
}


/* =========================
   ENLACES
========================= */

a {
    color: inherit;
    text-decoration: none;
}


a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================
   BOTONES
========================= */

button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    background: none;
    color: inherit;

    cursor: pointer;
}


button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
}


/* =========================
   IMÁGENES Y VÍDEOS
========================= */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}


img {
    height: auto;
}


/* =========================
   LISTAS
========================= */

ul,
ol {
    list-style: none;
}


/* =========================
   FORMULARIOS
========================= */

input,
textarea,
select,
button {
    color: inherit;
}


input,
textarea,
select {
    max-width: 100%;
}


textarea {
    resize: vertical;
}


/* =========================
   SELECCIÓN DE TEXTO
========================= */

::selection {
    background-color: var(--color-champagne);
    color: var(--color-black);
}


/* =========================
   FOCUS
========================= */

:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 4px;
}


/* =========================
   ACCESIBILIDAD
========================= */

.visually-hidden {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    html,
    html:focus-within {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}