/* Paleta de cores */
:root {
    --color-negro: #1d1d1b;
    --color-azul: #3488a3;
    --color-fondo: #efeee9;
    --color-azul-claro: #6fafc2;
    --color-gris: #6e7b83;
}

/* Tipografías */

@font-face {
    font-family: 'CheddarGothic';
    src: url('../fonts/CheddarGothicRough-Regular.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-family: 'EBGaramond';
    src: url('../fonts/EBGaramond-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 700;
    font-style: normal;
}

@font-face {
    font-family: 'EBGaramond';
    src: url('../fonts/EBGaramond-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 700;
    font-style: italic;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opsz\,wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

body {
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--color-fondo);

    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Corta o contido */
.background-wrapper {
    position: relative;
    overflow: hidden;
}

/* Gravado de xesta */
.background-wrapper::before {
    content: '';
    position: absolute;

    transform: translate(-50%, -150px);
    overflow-x: hidden;
    width: clamp(40rem, 150vw, 70rem);
    aspect-ratio: 1 / 1;

    background-image: url('../images/xesta-gravado.svg');
    background-repeat: no-repeat;
    background-size: contain;

    opacity: 0.9;

    pointer-events: none;
    z-index: 0;
}

/* Superpoñer elementos ao gravado */
main, header, footer {
    position: relative;
    z-index: 1;
}

main {
    width: clamp(5rem, 90vw, 50rem);
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}

header {
    padding: 40px
}

section {
    padding: 40px 20px;
}

/* Título 1 */
h1 {
    font-family: 'CheddarGothic', sans-serif;
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-style: normal;
    font-weight: normal;

    margin: 20px auto;
    text-align: center;

    color: var(--color-azul);
}

/* Título 2 */
h2 {
    font-family: 'Inter', serif;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 6vw, 3rem);
    font-style: normal;
    font-weight: 900;

    margin: 20px auto;
    text-align: center;

    color: var(--color-azul);
}

/* Parágrafo con texto */
p {
    font-family: 'EBGaramond', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-style: normal;

    margin: 10px auto;

    color: var(--color-negro);
}

/* Hipervínculos */
a {
    font-family: 'EBGaramond', serif;
    font-weight: bold;
    font-size: clamp(1.5rem, 4vw, 2rem);

    text-decoration: none;
    text-decoration:underline;
    display: inline-block;

    margin: 10px auto;

    color: var(--color-azul-claro);
}

/* Logo superior de Xesta */
.logo {
    pointer-events: none;
    max-width: 700px;

    width: 100%;
}

/* Estrela có logo de Xesta */
.logo-pequeno {
    padding: 50px;
    width: clamp(5rem, 5vw, 12rem);
}

form {
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

input,
textarea,
button {
    font-family: 'EBGaramond', serif;
    font-size: 1.2rem;
    padding: 1rem;
    border: none;
    box-sizing: border-box;
}

textarea {
    min-height: 10rem;
    resize: vertical;
}

button {
    cursor: pointer;
    background-color: var(--color-azul);
    color: white;
}

label {
    font-family: 'EBGaramond', serif;
    font-size: 1.2rem;
    text-align: left;
    border: none;
    box-sizing: border-box;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

.oculto {
    display: none;
}
