/* ============================================================
   DISEÑO NUEVO — limpio: página blanca, sin texturas ni efectos.
   Dos tamaños de texto, interlineado 1, todo en minúsculas.
   Se aplica con body.is-clean (ver theme_is_clean en functions.php).
   ============================================================ */

.is-clean {
    --fs-big:  44px;
    --fs:      20px;
    --sheet:   #FFFFFF;
    --black:   #000000;
    --light:   #9C9C9C;   /* texto en español */
    --chip:    #D9D9D9;   /* casillas sin marcar */
    --pad:     16px;
}

html:has(body.is-clean) {
    background: var(--sheet);
}

body.is-clean {
    background: var(--sheet);
    color: var(--black);
    font-family: var(--sans);
    font-size: var(--fs);
    line-height: 1;
    letter-spacing: 0;
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
}

/* Lo que escribe cada cual se ve tal cual */
.is-clean input,
.is-clean textarea {
    text-transform: none;
}

.is-clean h1,
.is-clean h2,
.is-clean h3,
.is-clean h4,
.is-clean h5,
.is-clean h6,
.is-clean p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

/* Enlaces y botones: negro, sin relleno, pegado al texto.
   La caja va de la ascendente (en Cassette, a la altura de la mayúscula) a la
   línea de base, no del alto de línea. Chrome y Safari lo hacen solos con
   text-box-edge. Para los demás, el fondo es un degradado recortado a mano
   con medidas de la fuente: en línea, el área de contenido empieza 1,11em
   sobre la base y la ascendente está a 0,72em, 0,38em más abajo; en un bloque
   con interlineado 1, empieza 0,17em más arriba. */
.is-clean .hl,
.is-clean .btn,
.apply-chips span {
    --box:     var(--black);
    --box-top: 0.38em;
    background: linear-gradient(var(--box), var(--box)) 0 var(--box-top) / 100% 0.73em no-repeat;
}

.is-clean button.btn,
.apply-chips span {
    --box-top: 0.21em;
}

@supports (text-box: trim-both cap alphabetic) {
    .is-clean .hl,
    .is-clean .btn,
    .apply-chips span {
        background: var(--box);
        text-box: trim-both cap alphabetic;
    }
}

.is-clean .hl,
.is-clean .btn {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--sheet);
    font: inherit;
    line-height: 1;
    text-transform: inherit;   /* los button no lo heredan solos */
    text-decoration: none;
    cursor: pointer;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.is-clean button.btn {
    display: inline-block;
    -webkit-appearance: none;
    appearance: none;
}

.is-clean .t-big {
    font-size: var(--fs-big);
}

.is-clean .t-light {
    color: var(--light);
}

/* Texto normal justo debajo de uno grande */
.is-clean :is(h1, h2, h3, h4, h5, h6, .t-big) + p {
    margin-top: 6px;
}


/* ============================================================
   HOJA
   ============================================================ */

.sheet {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--pad);
}

.sheet > main {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* Cabecera editable: los títulos en grande, los párrafos en normal */
.site-header h1,
.site-header h2,
.site-header h3,
.site-header h4,
.site-header h5,
.site-header h6 {
    font-size: var(--fs-big);
}

/* Portada: el bloque del open call en mitad de la hoja */
.home-call {
    margin: auto 0;
    padding: 64px 0;
}

.home-apply {
    margin-top: 8px;
}

/* Páginas sueltas: el estilo anterior las colocaba en absoluto sobre el papel */
.is-clean #main > article {
    position: static;
    margin-top: 112px;
}

.site-logo {
    display: inline-block;
    margin-right: 6px;
    vertical-align: -0.12em;
}

.site-logo svg {
    display: block;
    width: auto;
    height: 0.9em;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 96px;
}

.site-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: var(--fs-big);
}

.site-organized {
    display: flex;
    align-items: flex-end;
    gap: 56px;
}

.site-organized p {
    align-self: flex-start;
    margin-right: 4px;
}

.site-organized svg,
.site-organized img {
    display: block;
    width: auto;
}

.logo-lm svg { height: 60px; }
.logo-lce img { height: 56px; }


@media only screen and (max-width: 768px) {

    /* En móvil el grande va con el ancho: así la cabecera parte en
       "libros mutantes / madrid art book fair / 23-25 april 2027 at / la casa encendida".
       Con tope de 48px: en tablet 10.5vw llegaría a 80px */
    .is-clean {
        --fs-big: min(10.5vw, 48px);
        --pad:    16px;
    }

    .logo-lm svg,
    .logo-lce img { height: 32px; }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 64px;
    }

    .site-organized {
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-organized p {
        flex-basis: 100%;
    }

}
